3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (!defined('PHP_EOL') define(PHP_EOL, "\r\n"); print date('Y-m-d', strtotime('next thursday')); print PHP_EOL; print_r(new DateTime('next thursday'));
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'define' (T_STRING) in /in/RTHPc on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/RTHPc on line 3
Process exited with code 255.