3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "A1234"; if($string) { echo "true" } else { echo "false"; }
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.6
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/tFm01 on line 5
Process exited with code 255.

preferences:
172.82 ms | 1387 KiB | 32 Q