3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = strtotime('2017-07-13'); $b= strtotime('2017-07-13 4:00PM'); print ($b-a)/3600;
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/DERNJ on line 6 Warning: A non-numeric value encountered in /in/DERNJ on line 6 416654
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant a - assumed 'a' in /in/DERNJ on line 6 Warning: A non-numeric value encountered in /in/DERNJ on line 6 416654
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.20
Notice: Use of undefined constant a - assumed 'a' in /in/DERNJ on line 6 416654