3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "hola"; $x += "c"; echo $x + 'c'; echo PHP_EOL; echo '1' + '2';
based on 1oZP2
Output for 7.1.0
Warning: A non-numeric value encountered in /in/Za8Ua on line 4 Warning: A non-numeric value encountered in /in/Za8Ua on line 4 Warning: A non-numeric value encountered in /in/Za8Ua on line 6 0 3
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.0.14
0 3
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
0 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Za8Ua on line 8 PHP_EOL3