3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo cal_days_in_month(999, 1,0), PHP_EOL, cal_days_in_month(CAL_JEWISH, 1,0), PHP_EOL, cal_days_in_month(CAL_FRENCH, 1,0), PHP_EOL, cal_days_in_month(CAL_JULIAN, 1,0), PHP_EOL, cal_days_in_month(CAL_GREGORIAN, 1,0), PHP_EOL;
based on nTYMB
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: cal_days_in_month(): invalid calendar ID 999. in /in/lCgsj on line 3 Warning: cal_days_in_month(): invalid date. in /in/lCgsj on line 4 Warning: cal_days_in_month(): invalid date. in /in/lCgsj on line 5 Warning: cal_days_in_month(): invalid date. in /in/lCgsj on line 6 Warning: cal_days_in_month(): invalid date. in /in/lCgsj on line 7
Output for hhvm-3.12.0 - 3.13.2
Fatal error: Uncaught Error: Call to undefined function cal_days_in_month() in /in/lCgsj:3 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: Call to undefined function cal_days_in_month() in /in/lCgsj on line 3
Process exited with code 255.
Output for 5.0.2 - 5.0.4
Warning: cal_days_in_month(): invalid calendar ID 999. in /in/lCgsj on line 3 347998 2375840 1721424 1721426
Output for 5.0.0 - 5.0.1
Warning: cal_days_in_month(): invalid calendar ID 999. in /in/lCgsj on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 3 PHP_EOL347998 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 4 PHP_EOL2375840 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 5 PHP_EOL1721424 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 6 PHP_EOL1721426 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 7 PHP_EOL
Output for 4.3.10 - 4.3.11
Warning: cal_days_in_month(): invalid calendar ID 999 in /in/lCgsj on line 3 347998 2375840 1721424 1721426
Output for 4.3.0 - 4.3.9
Warning: cal_days_in_month(): invalid calendar ID 999 in /in/lCgsj on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 3 PHP_EOL347998 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 4 PHP_EOL2375840 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 5 PHP_EOL1721424 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 6 PHP_EOL1721426 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lCgsj on line 7 PHP_EOL