3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = [10, 20, 30]; echo $foo[]++; echo "\n---\n"; var_export($foo); echo "\n---\n"; echo ++$foo[], "\n", --$foo[], "\n"; var_export($foo); echo "\n===\n"; var_export(--$foo[]);
Output for git.master, git.master_jit, rfc.property-hooks
--- array ( 0 => 10, 1 => 20, 2 => 30, 3 => 1, ) --- 1 array ( 0 => 10, 1 => 20, 2 => 30, 3 => 1, 4 => 1, 5 => NULL, ) === NULL

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:
36.76 ms | 405 KiB | 5 Q