3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start= "2013-01-31"; $current = date('F', strtotime("first day of next month",strtotime($start))); echo $current."\n"; $date = new DateTime('2013-01-31'); $date->modify( 'first day of next month' ); echo $date->format('F');

preferences:
39.62 ms | 402 KiB | 5 Q