3v4l.org

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