3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = \DateTime::createFromFormat('@', 123121); echo $x->format('Y-m-d H:i:s');
based on evfal
Output for 7.3.0 - 7.3.1
Fatal error: Uncaught Error: Call to a member function format() on bool in /in/cZ2TX:5 Stack trace: #0 {main} thrown in /in/cZ2TX on line 5
Process exited with code 255.
Output for 7.0.0 - 7.2.13
Fatal error: Uncaught Error: Call to a member function format() on boolean in /in/cZ2TX:5 Stack trace: #0 {main} thrown in /in/cZ2TX on line 5
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function format() on a non-object (boolean)' in /in/cZ2TX:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function format() on a non-object (boolean)' in /in/cZ2TX:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.38
Fatal error: Call to a member function format() on boolean in /in/cZ2TX on line 5
Process exited with code 255.
Output for 5.3.22 - 5.5.38
Fatal error: Call to a member function format() on a non-object in /in/cZ2TX on line 5
Process exited with code 255.