3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1,10,2); function change(&$value,$key,$factor){ $value = $value * $factor; } array_walk(&$array,"change",3); print_r($array); ?>
Output for 5.4.0 - 5.4.27
Fatal error: Call-time pass-by-reference has been removed in /in/iPUXI on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/iPUXI on line 10 Array ( [0] => 3 [1] => 9 [2] => 15 [3] => 21 [4] => 27 )

preferences:
185.88 ms | 1386 KiB | 65 Q