3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a' => 'Hello', 'b' => 'World'); array_walk($array, 'adda'); function adda(&$value, &$key) { $key = "a".$key; } var_dump($array);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: adda(): Argument #2 ($key) must be passed by reference, value given in /in/b8gAJ on line 4 Warning: adda(): Argument #2 ($key) must be passed by reference, value given in /in/b8gAJ on line 4 array(2) { ["a"]=> string(5) "Hello" ["b"]=> string(5) "World" }

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