3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('today'))->format('Y-m-d');
Output for 5.4.10 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.2
2015-12-17
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/tL2QP on line 3
Process exited with code 255.