3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo cal_days_in_month(CAL_ENGLISH, 8, 2003);
Output for 7.2.0
Warning: Use of undefined constant CAL_ENGLISH - assumed 'CAL_ENGLISH' (this will throw an Error in a future version of PHP) in /in/Hq6SY on line 2 Warning: cal_days_in_month() expects parameter 1 to be integer, string given in /in/Hq6SY on line 2
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant CAL_ENGLISH - assumed 'CAL_ENGLISH' in /in/Hq6SY on line 2 Warning: cal_days_in_month() expects parameter 1 to be integer, string given in /in/Hq6SY on line 2
Output for 4.4.0 - 5.6.28
Notice: Use of undefined constant CAL_ENGLISH - assumed 'CAL_ENGLISH' in /in/Hq6SY on line 2 Warning: cal_days_in_month() expects parameter 1 to be long, string given in /in/Hq6SY on line 2
Output for 4.3.0 - 4.3.11
Notice: Use of undefined constant CAL_ENGLISH - assumed 'CAL_ENGLISH' in /in/Hq6SY on line 2 31