3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; foreach([1,2,3,4,5] as $arr['key'] => $arr['value']) { print_r($arr); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [value] => 1 [key] => 0 ) Array ( [value] => 2 [key] => 1 ) Array ( [value] => 3 [key] => 2 ) Array ( [value] => 4 [key] => 3 ) Array ( [value] => 5 [key] => 4 )

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:
37.44 ms | 401 KiB | 8 Q