3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExtendsDateTime extends DateTime { public function __construct($datetime, $tz) { var_dump($datetime); } public static function createFromFormat($format, $datetime, $timezone = null) { return parent::createFromFormat($format, $datetime); } } $date = ExtendsDateTime::createFromFormat('Y-m-d', '2014-02-14'); var_dump($date instanceof ExtendsDateTime);

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

Output for branch master
bool(true)
Output for branch master_jit
bool(true)

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