3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y")); echo(jddayofweek($jd,1)); ?>
Output for 7.1.20, 7.2.6 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function cal_to_jd() in /in/vQQqI:2 Stack trace: #0 {main} thrown in /in/vQQqI on line 2
Process exited with code 255.
Output for 5.6.28, 7.0.12 - 7.1.10, 7.2.0
Sunday
Output for 4.3.0 - 5.6.23, 7.0.0 - 7.0.8
Tuesday