3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = date(d); echo "D1 " + $d; $d2 = date("d"); echo "D2 " + $d2;
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant d - assumed 'd' (this will throw an Error in a future version of PHP) in /in/gaRpC on line 3 Warning: A non-numeric value encountered in /in/gaRpC on line 4 12 Warning: A non-numeric value encountered in /in/gaRpC on line 8 12
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant d - assumed 'd' in /in/gaRpC on line 3 Warning: A non-numeric value encountered in /in/gaRpC on line 4 12 Warning: A non-numeric value encountered in /in/gaRpC on line 8 12
Output for 5.5.0 - 7.0.20
Notice: Use of undefined constant d - assumed 'd' in /in/gaRpC on line 3 1212