3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $date = new DateTime('2010-913-1'); var_dump($date); } catch (Exception $ex) { var_dump($ex); }
Output for git.master, git.master_jit
object(Exception)#2 (7) { ["message":protected]=> string(80) "Failed to parse time string (2010-913-1) at position 6 (1): Unexpected character" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/Cfasu" ["line":protected]=> int(4) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/Cfasu" ["line"]=> int(4) ["function"]=> string(11) "__construct" ["class"]=> string(8) "DateTime" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(10) "2010-913-1" } } } ["previous":"Exception":private]=> NULL }
Output for rfc.property-hooks
object(DateMalformedStringException)#2 (7) { ["message":protected]=> string(80) "Failed to parse time string (2010-913-1) at position 6 (1): Unexpected character" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/Cfasu" ["line":protected]=> int(4) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/Cfasu" ["line"]=> int(4) ["function"]=> string(11) "__construct" ["class"]=> string(8) "DateTime" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(10) "2010-913-1" } } } ["previous":"Exception":private]=> NULL }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
74.09 ms | 402 KiB | 8 Q