3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $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; }
based on P11Lh
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
Not Something 0 equals something false equals something false equals something
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jk81l on line 3 Not SomethingPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jk81l on line 4 0 equals somethingPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jk81l on line 5 false equals somethingPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jk81l on line 6 false equals somethingPHP_EOL