3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date_create('banana'); var_dump($date); $date = new \DateTime('banana'); var_dump($date);
Output for git.master, git.master_jit
bool(false) Fatal error: Uncaught Exception: Failed to parse time string (banana) at position 0 (b): The timezone could not be found in the database in /in/nG34j:6 Stack trace: #0 /in/nG34j(6): DateTime->__construct('banana') #1 {main} thrown in /in/nG34j on line 6
Process exited with code 255.
Output for rfc.property-hooks
bool(false) Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (banana) at position 0 (b): The timezone could not be found in the database in /in/nG34j:6 Stack trace: #0 /in/nG34j(6): DateTime->__construct('banana') #1 {main} thrown in /in/nG34j 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:
43.88 ms | 401 KiB | 8 Q