3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "A1234"; print_r(if($sting));
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.6
Parse error: syntax error, unexpected 'if' (T_IF) in /in/d74gA on line 5
Process exited with code 255.

preferences:
178.82 ms | 1387 KiB | 32 Q