3v4l.org

run code in 300+ PHP versions simultaneously
<?php function t(a, b) { var_dump(['t', a, b]); return a; } var_dump(true?'true':false?'t':'f');
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.6
Parse error: syntax error, unexpected ',', expecting variable (T_VARIABLE) in /in/qNQW2 on line 3
Process exited with code 255.

preferences:
172.04 ms | 1387 KiB | 32 Q