3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_x = new DateTime('2000-01-0x'); $date_y = new DateTime('1999-12-31'); $date_z = new DateTime('1999-12-31'); var_dump($date_y == $date_z); var_dump($date_x == $date_y); var_dump('with x', $date_x->format('Y-m-d H:i:sP')); var_dump(' no x', $date_y->format('Y-m-d H:i:sP')); var_dump($date_x); var_dump($date_y);
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(false) string(6) "with x" string(25) "1999-12-31 00:00:00-11:00" string(6) " no x" string(25) "1999-12-31 00:00:00+01:00" object(DateTime)#1 (3) { ["date"]=> string(26) "1999-12-31 00:00:00.000000" ["timezone_type"]=> int(2) ["timezone"]=> string(1) "X" } object(DateTime)#2 (3) { ["date"]=> string(26) "1999-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

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:
44.79 ms | 402 KiB | 8 Q