3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime())->format('Y/m/d');
based on E0UoY
Output for 5.4.11 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.12
2016/01/12
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/791r0 on line 2
Process exited with code 255.