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; $value = 'test ' . $value; } 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/Mj8jD on line 4 Warning: adda(): Argument #2 ($key) must be passed by reference, value given in /in/Mj8jD on line 4 array(2) { ["a"]=> string(10) "test Hello" ["b"]=> string(10) "test 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:
34.35 ms | 402 KiB | 8 Q