3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [10, 15, 20, 25, 30]; array_walk($a, fn(&$value) => $value *= 1.05); var_export($a);
Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
array ( 0 => 10.5, 1 => 15.75, 2 => 21.0, 3 => 26.25, 4 => 31.5, )
Output for 7.3.0 - 7.3.33
Parse error: syntax error, unexpected '&' in /in/2r3EU on line 5
Process exited with code 255.

preferences:
88.7 ms | 1388 KiB | 4 Q