3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 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 3Ylr6
Output for 7.2.0
Warning: cal_days_in_month(): invalid date in /in/nTYMB on line 3 Warning: cal_days_in_month(): invalid date in /in/nTYMB on line 4 Warning: cal_days_in_month(): invalid date in /in/nTYMB on line 5 Warning: cal_days_in_month(): invalid date in /in/nTYMB on line 6
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.10
Warning: cal_days_in_month(): invalid date. in /in/nTYMB on line 3 Warning: cal_days_in_month(): invalid date. in /in/nTYMB on line 4 Warning: cal_days_in_month(): invalid date. in /in/nTYMB on line 5 Warning: cal_days_in_month(): invalid date. in /in/nTYMB on line 6
Output for 4.3.10 - 4.3.11, 5.0.2 - 5.0.4
347998 2375840 1721424 1721426
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
347998 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nTYMB on line 3 PHP_EOL2375840 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nTYMB on line 4 PHP_EOL1721424 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nTYMB on line 5 PHP_EOL1721426 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nTYMB on line 6 PHP_EOL