3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(DateTime::createFromFormat('j-M-Y', '15-Feb-2009', new stdClass));
based on Wb6of
Output for 7.2.0
Fatal error: Uncaught TypeError: Argument 3 passed to DateTime::createFromFormat() must be an instance of DateTimeZone or null, instance of stdClass given in /in/3g0S3:3 Stack trace: #0 /in/3g0S3(3): DateTime::createFromFormat('j-M-Y', '15-Feb-2009', Object(stdClass)) #1 {main} thrown in /in/3g0S3 on line 3
Process exited with code 255.
Output for 5.5.0 - 7.1.10
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, object given in /in/3g0S3 on line 3 bool(false)