3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo cal_days_in_month(CAL_ENGLISH, 8, 2003);
Output for 7.0.0 - 7.1.0
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 hhvm-3.12.0
Fatal error: Call to undefined function cal_days_in_month() in /in/Hq6SY on line 2
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: Call to undefined function cal_days_in_month() in /in/Hq6SY on line 3
Process exited with code 255.
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