3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Coercive mode function sumOfInts(float ..$ints) { return array_sum($ints); } var_dump(sumOfInts('3', 4.1));
Output for 5.6.8 - 5.6.16, 7.0.0
Parse error: syntax error, unexpected '.', expecting variable (T_VARIABLE) in /in/cOgEF on line 3
Process exited with code 255.
Output for 5.5.24 - 5.5.30
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/cOgEF on line 3
Process exited with code 255.

preferences:
156.18 ms | 1399 KiB | 24 Q