3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 1; print $i++ + ++$i; print PHP_EOL; print 'text' . $x = 'ahoj';
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
4 textahoj
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/n5lqU on line 4 PHP_EOLtextahoj