3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testArgs($foo = null, $bar = null) { return prinq_r($foo . ' - ' . $bar) } testArgs('1', '2', '3');
Output for 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
Parse error: syntax error, unexpected '}', expecting ';' in /in/B6crS on line 6
Process exited with code 255.
Output for 5.6.38
Parse error: syntax error, unexpected '}' in /in/B6crS on line 6
Process exited with code 255.

preferences:
174.11 ms | 1395 KiB | 44 Q