3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $it = new ArrayIterator(array_fill(0,10,'X'), 1 ); function badsort($a, $b) { $GLOBALS['it']->unserialize($GLOBALS['it']->serialize()); return TRUE; } $it->uksort('badsort');
Output for 7.0.0 - 7.1.0
Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5
Output for 5.2.0 - 5.2.17, hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined method ArrayIterator::unserialize() in /in/fkbIJ on line 5
Process exited with code 255.
Output for 5.4.32 - 5.6.28
Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5 Warning: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ on line 5
Output for 5.4.0 - 5.4.31
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2067410993 bytes) in /in/fkbIJ on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Output for 5.1.0 - 5.1.6
Fatal error: Call to undefined method ArrayIterator::uksort() in /in/fkbIJ on line 9
Process exited with code 255.
Output for 5.0.4 - 5.0.5

Process exited with code 139.
Output for 5.0.0 - 5.0.3
Warning: Wrong parameter count for __construct() in /in/fkbIJ on line 2 Fatal error: Call to undefined method ArrayIterator::uksort() in /in/fkbIJ on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayiterator in /in/fkbIJ on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayiterator in /in/fkbIJ on line 2