3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo date('-m-d', strtotime('+ 15 days')); $d = new DateTime('2017-01-19'); $d->modify('fifteenth day of this month'); //cho date("Y-m-d",$d); echo print_r($d,1);
Output for git.master, git.master_jit
Warning: DateTime::modify(): Failed to parse time string (fifteenth day of this month) at position 0 (f): The timezone could not be found in the database in /in/FVKlU on line 5 DateTime Object ( [date] => 2017-01-19 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for rfc.property-hooks
Fatal error: Uncaught DateMalformedStringException: DateTime::modify(): Failed to parse time string (fifteenth day of this month) at position 0 (f): The timezone could not be found in the database in /in/FVKlU:5 Stack trace: #0 /in/FVKlU(5): DateTime->modify('fifteenth day o...') #1 {main} thrown in /in/FVKlU on line 5
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:
115.56 ms | 401 KiB | 8 Q