3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'a' => array('value' => 2), 'b' => array('value' => 4), 'c' => array('value' => 6) ); print_r($arr); foreach ($arr as &$a) { $a['value'] /= 2; } foreach ($arr as $a) { print_r($a); } unset($a); foreach ($arr as $a) { print_r($a); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [a] => Array ( [value] => 2 ) [b] => Array ( [value] => 4 ) [c] => Array ( [value] => 6 ) ) Array ( [value] => 1 ) Array ( [value] => 2 ) Array ( [value] => 2 ) Array ( [value] => 1 ) Array ( [value] => 2 ) Array ( [value] => 2 )

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:
45.24 ms | 402 KiB | 8 Q