3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (version_compare(PHP_VERSION, '5.3.0') >= 0)) { $d = new \DateTime(); } else { $d = new DateTime(); }
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected ')' in /in/MKIKv on line 4
Process exited with code 255.