3v4l.org

run code in 300+ PHP versions simultaneously
<?php function(string $test, int $test2) { print_r($test); print_r($test2); } function(1, 'test'); function('test', 1);
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /in/9FEcY on line 9
Process exited with code 255.

preferences:
198.25 ms | 1399 KiB | 22 Q