3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [0 => 'one', 1 => 'two']; $array2 = [1 => 'two', 0 => 'one']; var_dump(json_encode($array1)); var_dump(json_encode($array2));
Output for git.master, git.master_jit, rfc.property-hooks
string(13) "["one","two"]" string(21) "{"1":"two","0":"one"}"

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:
82.85 ms | 1106 KiB | 4 Q