3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [123]; unset($array[0]); function changeScope($array){ if($array === []){ // then $array[] = "x"; // will result in assert([0 => "x"] === $array); } } changeScope($array);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught AssertionError: assert([0 => 'x'] === $array) in /in/nJgR8:9 Stack trace: #0 /in/nJgR8(9): assert(false, 'assert([0 => 'x...') #1 /in/nJgR8(13): changeScope(Array) #2 {main} thrown in /in/nJgR8 on line 9
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:
55.7 ms | 405 KiB | 5 Q