3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $month = 10; $monthName = date('M', strtotime('2012-'.$month.'-01')); echo $monthName.'<br />'; echo strtotime('first day of '.$monthName).'<br />'; echo strtotime('last day of '.$monthName).'<br />';
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Oct<br />1412114400<br />1414710000<br />
Output for 5.1.0 - 5.2.17
Oct<br /><br /><br />
Output for 4.3.0 - 5.0.5
Oct<br />-1<br />-1<br />