3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_x = new DateTime('2000-01-0x10'); $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
Fatal error: Uncaught Exception: Failed to parse time string (2000-01-0x10) at position 10 (1): Unexpected character in /in/VVkVM:3 Stack trace: #0 /in/VVkVM(3): DateTime->__construct('2000-01-0x10') #1 {main} thrown in /in/VVkVM on line 3
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (2000-01-0x10) at position 10 (1): Unexpected character in /in/VVkVM:3 Stack trace: #0 /in/VVkVM(3): DateTime->__construct('2000-01-0x10') #1 {main} thrown in /in/VVkVM on line 3
Process exited with code 255.

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:
56.19 ms | 401 KiB | 8 Q