3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('00000-01-01'); echo $a->format('j M Y \i\s \a l'); $b = new DateTime('asdf');
Output for git.master, git.master_jit
1 Jan 2000 is a Saturday Fatal error: Uncaught Exception: Failed to parse time string (asdf) at position 0 (a): The timezone could not be found in the database in /in/YhoNe:6 Stack trace: #0 /in/YhoNe(6): DateTime->__construct('asdf') #1 {main} thrown in /in/YhoNe on line 6
Process exited with code 255.
Output for rfc.property-hooks
1 Jan 2000 is a Saturday Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (asdf) at position 0 (a): The timezone could not be found in the database in /in/YhoNe:6 Stack trace: #0 /in/YhoNe(6): DateTime->__construct('asdf') #1 {main} thrown in /in/YhoNe on line 6
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:
59.5 ms | 401 KiB | 8 Q