3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = strtotime('2014-01-15'); #$date = '2014-01-15'; echo date('Y-m-d',$date).PHP_EOL; $daysbefor1979 = '25568'; $start = strtotime("1900-01-01"); echo $start.PHP_EOL; $diff = ($date - $start); echo $diff.PHP_EOL; $days = ($diff / 86400); echo $days.PHP_EOL; /*echo date('Y-m-d', jdtounix(gregoriantojd(12, 31, 1899) + 41603)).PHP_EOL;*/ $erg = round(($daysbefor1979+$days), 0); echo $erg.PHP_EOL; $days1 = round(($erg-$daysbefor1979), 0); echo $days1.PHP_EOL; $diff1 = ($days1*86400); echo $diff1.PHP_EOL; echo date('Y-m-d',$diff1).PHP_EOL; echo ($diff1+$start).PHP_EOL; echo date('Y-m-d',($diff1+$start)).PHP_EOL; echo PHP_EOL.PHP_EOL: $zahl = $erg; echo date('Y-m-d',((($zahl-daysbefor1979)*86400)+$start));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.150.0130.07318.18
5.6.140.0100.07318.17
5.6.130.0200.07018.21
5.6.120.0130.07721.14
5.6.110.0170.07721.09
5.6.100.0070.04320.98
5.6.90.0100.05321.08
5.6.80.0130.07320.38
5.5.300.0200.07018.07
5.5.290.0100.04717.98
5.5.280.0000.07320.87
5.5.270.0030.05720.76
5.5.260.0100.04720.88
5.5.250.0070.07720.58
5.5.240.0200.05020.07

preferences:
135.84 ms | 1394 KiB | 7 Q