3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $closestWinningTime1 = '2016-11-08 13:00:00'; $d1 = '2016-11-08 13:00:00'; $d2 = '2016-11-08 12:59:59'; $r = abs($d1 - $closestWinningTime1); $r2 = abs($d2 - $closestWinningTime1); echo $r; echo $r2;
based on ZCQ0m
Output for 7.1.0 - 7.3.0alpha1
Notice: A non well formed numeric value encountered in /in/7VLg4 on line 9 Notice: A non well formed numeric value encountered in /in/7VLg4 on line 9 Notice: A non well formed numeric value encountered in /in/7VLg4 on line 10 Notice: A non well formed numeric value encountered in /in/7VLg4 on line 10 00
Output for 5.6.0 - 7.0.20
00