3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($x) { return ($x >= 1) && ($x <= 1); } echo foo(1a) ? 'true' : 'false';
Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
Parse error: syntax error, unexpected 'a' (T_STRING), expecting ',' or ')' in /in/uUWMU on line 8
Process exited with code 255.

preferences:
190.34 ms | 1395 KiB | 71 Q