3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array() == false ? 1 : 0; echo array() == 0 ? 1 : 0; echo false == 0 ? 1 : 0
Output for 5.4.0 - 5.4.6
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/gZc5Z on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.16
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/gZc5Z on line 4
Process exited with code 255.

preferences:
184.69 ms | 1395 KiB | 31 Q