3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(\PHP_EOL);
Output for 5.3.0 - 7.1.0
string(1) " "
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/keKMD on line 3 string(1) " "
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/keKMD on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/keKMD on line 3 string(7) "PHP_EOL"