3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php DateTime::createFromFormat('Y-m-d', '2014-04-27', 'Europe\Prague');
Output for 7.2.0 - 7.2.6
Fatal error: Uncaught TypeError: Argument 3 passed to DateTime::createFromFormat() must be an instance of DateTimeZone or null, string given in /in/87c9n:3 Stack trace: #0 /in/87c9n(3): DateTime::createFromFormat('Y-m-d', '2014-04-27', 'Europe\\Prague') #1 {main} thrown in /in/87c9n on line 3
Process exited with code 255.
Output for 5.3.0 - 7.1.20
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, string given in /in/87c9n on line 3
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/87c9n on line 3
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Fatal error: Call to undefined method DateTime::createfromformat() in /in/87c9n on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/87c9n on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/87c9n on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/87c9n on line 3