3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:s')-300; ?>
based on VdXUn
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/CH0Bk on line 2 1715
Output for 5.4.1 - 5.4.45, 5.6.28, 7.0.20
1715
Output for 5.5.24 - 5.6.21, 7.0.0 - 7.0.6
1716
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/CH0Bk on line 2
Process exited with code 255.