3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array('42', '43'); if (count($data > 0)) { echo 'one'; } else { echo 'two'; } echo PHP_EOL; if (count($data) > 0) { echo 'one'; } else { echo 'two'; }
based on keAkl
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
one one
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
one Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/uGu9q on line 11 PHP_EOLone