3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar1 = []; $ar1[3] = 4; $ar1[2] = 3; $ar1[5] = 6; echo json_encode($ar1) . PHP_EOL; $ar2 = array_fill_keys(range(0, 9), null); $ar2[3] = 4; $ar2[2] = 3; $ar2[5] = 6; echo json_encode($ar2) . PHP_EOL; $ar3 = new \SplFixedArray(10); $ar3[3] = 4; $ar3[2] = 3; $ar3[5] = 6; echo json_encode($ar3) . PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
{"3":4,"2":3,"5":6} [null,null,3,4,null,6,null,null,null,null] [null,null,3,4,null,6,null,null,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:
46.22 ms | 405 KiB | 5 Q