3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $checknew = explode("-", "20-11-2015"); $monthnow = $checknew[1]; $daynow = $checknew[0]; $yearnow = $checknew[2]; $rangenow = mktime(0, 0, 0, $monthnow, $daynow, $yearnow); $datediff = $rangenow - mktime(0, 0, 0, date("M"), date("d"), date("Y")); echo $datediff;
based on 5lLfd
Output for 7.0.0 - 7.2.0
Warning: mktime() expects parameter 4 to be integer, string given in /in/gRIrB on line 8 1447974000
Output for 5.5.0 - 5.6.28
Warning: mktime() expects parameter 4 to be long, string given in /in/gRIrB on line 8 1447974000