3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d=date("D"); $m=date("M"); $y=date("Y"); if($d==sun) echo "Have anice day"; echo $d; echo $m; echo $y; ?>
Output for 7.2.0 - 7.3.0alpha1
Warning: Use of undefined constant sun - assumed 'sun' (this will throw an Error in a future version of PHP) in /in/INnih on line 5 MonJun2015
Output for 4.3.0 - 7.1.7
Notice: Use of undefined constant sun - assumed 'sun' in /in/INnih on line 5 MonJun2015