3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj1 = new stdClass; $obj1->Sort = 1; $obj1Customised = new stdClass; $obj1->Customised = $obj1Customised; $obj1Customised->Original = $obj1; $obj2 = new stdClass; $obj2->Sort = 1; $obj2Customised = new stdClass; $obj2->Customised = $obj2Customised; $obj2Customised->Original = $obj2; $items = array($obj1, $obj2); $sortOrders = array($obj1->Sort, $obj2->Sort); array_multisort($sortOrders, $items);
based on g3LvZ
Output for 5.0.0 - 7.2.0
Fatal error: Nesting level too deep - recursive dependency? in /in/s9UZM on line 18
Process exited with code 255.
Output for 4.3.0 - 4.4.9