3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(range(0,11) as $month): echo date( 'F', strtotime( sprintf( 'Jan +%d months', $month ) ) ) . "\n"; endforeach;
Output for 5.2.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
January February March April May June July August September October November December
Output for 4.3.0 - 5.1.6
January January January January January January January January January January January January