79483263

Date: 2025-03-04 09:50:27
Score: 0.5
Natty:
Report link

I looked at the correct answer and it explains the case very well.

For those who are looking for short answers, simply use the following:

// Not the best performance but it kills the reference
$new = unserialize(serialize($original));

Instead of using $new = clone $original; in the question code.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AboElnouR