3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/Moscow'); $d = \DateTime::createFromFormat('U', 0, 'EET'); var_dump($d);
based on tDERp
Output for 7.2.0
Fatal error: Uncaught TypeError: Argument 3 passed to DateTime::createFromFormat() must be an instance of DateTimeZone or null, string given in /in/ruool:4 Stack trace: #0 /in/ruool(4): DateTime::createFromFormat('U', 0, 'EET') #1 {main} thrown in /in/ruool on line 4
Process exited with code 255.
Output for 5.3.22 - 7.1.10
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, string given in /in/ruool on line 4 bool(false)