3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $abc = 0; $cde = '0'; echo (($abc == $cde) ? 'yes' : 'no').PHP_EOL; echo (($abc == 0) ? 'yes' : 'no').PHP_EOL; echo (($abc == '0') ? 'yes' : 'no').PHP_EOL; echo (($cde == 0) ? 'yes' : 'no').PHP_EOL; echo (($cde == '0') ? 'yes' : 'no').PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
yes yes yes yes yes
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/aOCBJ on line 6 yesPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/aOCBJ on line 7 yesPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/aOCBJ on line 8 yesPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/aOCBJ on line 9 yesPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/aOCBJ on line 10 yesPHP_EOL