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

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, object given in /in/3g0S3 on line 3 bool(false)
Output for Array change keys
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, object given in /in/3g0S3 on line 3 bool(false)
Output for Lexical anon
Catchable fatal error: Argument 3 passed to DateTime::createFromFormat() must be an instance of DateTimeZone, instance of stdClass given in /in/3g0S3 on line 3

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page