3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt_inicio = date("Y-m-d", strtotime('14/10/2013')); $dt_final = date("Y-m-d", strtotime('28/10/2013')); $i = mktime(0,0,0,10,14,2013); $f = mktime(0,0,0,10,28,2013); print floor(($f - $i)/86400); print floor(($dt_final - $dt_inicio)/86400);
Output for 7.1.0
14 Notice: A non well formed numeric value encountered in /in/AvkrI on line 8 Notice: A non well formed numeric value encountered in /in/AvkrI on line 8 0
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
140