3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Modification of ArrayObject during sorting is prohibited in /in/fkbIJ:5 Stack trace: #0 /in/fkbIJ(5): ArrayIterator->unserialize('x:i:1;a:10:{i:0...') #1 [internal function]: badsort(0, 1) #2 [internal function]: uksort(Array, 'badsort') #3 /in/fkbIJ(9): ArrayIterator->uksort('badsort') #4 {main} thrown in /in/fkbIJ on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.64 ms | 401 KiB | 8 Q