3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "-1" => "item 1", "1" => "item 2", "\0-1" => "item 3", ]; print_r($arr); var_dump($arr); foreach ($arr as $k => $v) { print bin2hex($k) ."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [-1] => item 1 [1] => item 2 [-1] => item 3 ) array(3) { [-1]=> string(6) "item 1" [1]=> string(6) "item 2" ["-1"]=> string(6) "item 3" } 2d31 31 002d31

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