3v4l.org

run code in 300+ PHP versions simultaneously
<?php var $something = ""; if ( !$something ) { echo "Not Something".PHP_EOL; } if ( 0 == $something ) { echo "0 equals something".PHP_EOL; } if ( false == $something ) { echo "false equals something".PHP_EOL; } if ( null == $something ) { echo "false equals something".PHP_EOL; }
Output for 5.4.0 - 5.4.37
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/P11Lh on line 2
Process exited with code 255.

preferences:
182.52 ms | 1386 KiB | 44 Q