3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1 = new DateTime('2015-09-07 07:05:00'); $d2 = new DateTime('2015-09-07 10:00:00'); $diff = $d1->diff($d2); $hours = $diff->h.".".$diff->i; echo $hours +=3; $dc = '01:00:00'; $dx = '06:00:00'; $d = $dx - $dc; echo $d;
based on HbdLU
Output for 7.1.0 - 7.2.0
5.55 Notice: A non well formed numeric value encountered in /in/XZatP on line 18 Notice: A non well formed numeric value encountered in /in/XZatP on line 18 5
Output for 5.3.19 - 7.0.20
5.555