3v4l.org

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