3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dateDiff($start, $end) { $start = strtotime($start); $end = strtotime($end); $diff = $end - $start; return round($diff / 86400); } echo echo dateDiff("2010-01-30", date("Y")) ;

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.4.270.0090.04512.41
5.4.260.0070.05718.80
5.4.250.0030.08018.94
5.4.240.0070.05318.65
5.4.230.0130.05018.98
5.4.220.0170.07018.95
5.4.210.0170.06018.65
5.4.200.0070.05718.76
5.4.190.0100.07718.74
5.4.180.0100.05718.95
5.4.170.0170.06718.92
5.4.160.0300.05718.90
5.4.150.0070.05718.91
5.4.140.0130.07016.51
5.4.130.0100.05716.50
5.4.120.0170.06716.32
5.4.110.0170.06016.28
5.4.100.0070.07316.37
5.4.90.0070.06016.56
5.4.80.0030.05716.39
5.4.70.0030.05716.48
5.4.60.0130.06316.54
5.4.50.0100.07016.30
5.4.40.0130.07016.43
5.4.30.0030.07316.33
5.4.20.0000.06316.45
5.4.10.0100.05016.57
5.4.00.0070.06015.77
5.3.280.0000.06014.57
5.3.270.0070.07714.44
5.3.260.0030.08314.44
5.3.250.0100.06314.59
5.3.240.0130.04714.69
5.3.230.0070.05314.75
5.3.220.0030.06014.72
5.3.210.0130.05714.65
5.3.200.0170.07014.47
5.3.190.0100.06314.65
5.3.180.0070.06314.72
5.3.170.0070.06314.64
5.3.160.0130.07014.70
5.3.150.0030.05714.78
5.3.140.0100.05714.46
5.3.130.0170.05014.77
5.3.120.0070.06714.63
5.3.110.0230.05314.38
5.3.100.0070.05714.25
5.3.90.0130.06314.00
5.3.80.0070.07014.00
5.3.70.0070.07014.10
5.3.60.0230.04713.96
5.3.50.0100.06713.91
5.3.40.0170.04013.96
5.3.30.0170.05713.91
5.3.20.0100.06313.69
5.3.10.0070.05013.74
5.3.00.0170.06013.70
5.2.170.0070.06011.22
5.2.160.0100.05311.21
5.2.150.0070.06311.20
5.2.140.0130.05311.09
5.2.130.0100.05711.17
5.2.120.0100.05311.27
5.2.110.0130.03011.19
5.2.100.0170.05011.16
5.2.90.0070.03710.91
5.2.80.0100.05711.30
5.2.70.0030.06011.27
5.2.60.0200.04011.06
5.2.50.0030.05711.09
5.2.40.0000.04311.17
5.2.30.0170.03310.80
5.2.20.0070.05311.05
5.2.10.0030.04310.68
5.2.00.0130.04010.70
5.1.60.0070.0339.97
5.1.50.0070.05010.00
5.1.40.0000.0509.95
5.1.30.0030.04010.40
5.1.20.0100.04310.25
5.1.10.0070.05010.02
5.1.00.0070.04710.16
5.0.50.0070.0308.58
5.0.40.0030.0408.40
5.0.30.0030.0608.22
5.0.20.0030.0278.17
5.0.10.0030.0278.17
5.0.00.0000.0508.25
4.4.90.0000.0237.41
4.4.80.0000.0237.41
4.4.70.0000.0377.41
4.4.60.0000.0237.41
4.4.50.0000.0337.41
4.4.40.0070.0437.41
4.4.30.0100.0207.41
4.4.20.0030.0277.41
4.4.10.0030.0277.41
4.4.00.0030.0437.41
4.3.110.0070.0277.41
4.3.100.0030.0207.41
4.3.90.0000.0337.41
4.3.80.0030.0337.41
4.3.70.0000.0237.41
4.3.60.0000.0337.41
4.3.50.0070.0237.41
4.3.40.0100.0307.41
4.3.30.0000.0237.41
4.3.20.0000.0237.41
4.3.10.0030.0307.41
4.3.00.0000.0238.20

preferences:
141.78 ms | 1394 KiB | 7 Q