3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day1 = new DateTime( '2010-01-31' ); $day1->modify( '+1 month' ); echo $day1->format( 'd-m-Y' ); $day2 = new DateTime( '2010-01-31' ); $day2->modify( 'last day of nest month' ); echo $day2->format( 'd-m-Y' ); //echo $daynew->format( 'd-m-Y' );
Output for git.master, git.master_jit
03-03-2010 Warning: DateTime::modify(): Failed to parse time string (last day of nest month) at position 12 (n): The timezone could not be found in the database in /in/FCCFg on line 7 31-01-2010
Output for rfc.property-hooks
03-03-2010 Fatal error: Uncaught DateMalformedStringException: DateTime::modify(): Failed to parse time string (last day of nest month) at position 12 (n): The timezone could not be found in the database in /in/FCCFg:7 Stack trace: #0 /in/FCCFg(7): DateTime->modify('last day of nes...') #1 {main} thrown in /in/FCCFg on line 7
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:
45.11 ms | 401 KiB | 8 Q