3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:s.u'); echo (new \DateTime());
based on 79Ibh
Output for 7.2.6
2017-07-11 15:55:36.004454 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.2.0
2017-07-11 15:55:36.003883 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.20
2017-07-11 15:55:36.003480 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.10
2017-07-11 15:55:36.003781 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.7
2017-07-11 15:55:36.005019 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.6
2017-07-11 15:55:36.022067 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.5
2017-07-11 15:55:36.033751 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.4
2017-07-11 15:55:36.023165 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.3
2017-07-11 15:55:36.000000 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.2
2017-07-11 15:55:36.025529 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.1
2017-07-11 15:55:36.006812 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 7.1.0
2017-07-11 15:55:36.005427 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.6, 5.6.8 - 5.6.30, 7.0.0 - 7.0.1, 7.0.3 - 7.0.20
2017-07-11 15:55:36.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for 5.6.7, 7.0.2
2017-07-11 15:55:37.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/er8tF on line 3
Process exited with code 255.
Output for hhvm-3.15.4
2017-07-11 15:55:36.000000 Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in /in/er8tF:3 Stack trace: #0 {main}
Process exited with code 255.