3v4l.org

run code in 300+ PHP versions simultaneously
<?php function time_diff($s) { $m = 0; $hr = 0; $d = 0; $td = "now"; if ($s > 59) { $m = (int)($s/60); $s = $s-($m*60); // sec left over $td = "$m min"; } if ($m > 59) { $hr = (int)($m / 60); $m = $m - ($hr*60); // min left over $td = "$hr hr"; if ($hr > 1) { $td .= "s"; } if ($m > 0) { $td .= ", $m min"; } } if ($hr > 23) { $d = (int) ($hr / 24); $hr = $hr-($d*24); // hr left over $td = "$d day"; if ($d > 1) { $td .= "s"; } if ($d < 3) { if ($hr > 0) { $td .= ", $hr hr"; } if ($hr > 1) { $td .= "s"; } } } return $td; } $diffInSecs = time() - strtotime('2011-11-03T17:27:56Z'); echo time_diff($diffInSecs);

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)
7.4.10.0060.01215.04
7.4.00.0060.01215.23
7.3.130.0030.01515.02
7.3.120.0100.00715.18
7.3.110.0130.00615.22
7.3.100.0060.00614.66
7.3.90.0000.01015.00
7.3.80.0040.01415.16
7.3.70.0000.01015.09
7.3.60.0080.00414.75
7.3.50.0060.00614.68
7.3.40.0120.00315.13
7.3.30.0000.01015.15
7.3.20.0100.00316.82
7.3.10.0050.00716.70
7.3.00.0050.00816.42
7.2.260.0100.00315.23
7.2.250.0090.00915.28
7.2.240.0070.00615.04
7.2.230.0040.01215.10
7.2.220.0060.00315.06
7.2.210.0130.00715.11
7.2.200.0100.00315.01
7.2.190.0080.00315.21
7.2.180.0060.01015.30
7.2.170.0000.00915.07
7.2.160.0000.01115.25
7.2.150.0040.01516.78
7.2.140.0030.00717.03
7.2.130.0060.00916.79
7.2.120.0090.00216.80
7.2.110.0040.01016.81
7.2.100.0070.00716.89
7.2.90.0070.00816.96
7.2.80.0060.00617.07
7.2.70.0060.01116.94
7.2.60.0060.01017.10
7.2.50.0060.00716.80
7.2.40.0090.00416.64
7.2.30.0040.01517.03
7.2.20.0050.00916.88
7.2.10.0080.00416.72
7.2.00.0070.00617.86
7.1.330.0040.00816.04
7.1.320.0040.00815.82
7.1.310.0070.00315.79
7.1.300.0030.01315.77
7.1.290.0070.00316.01
7.1.280.0000.01215.87
7.1.270.0060.00915.86
7.1.260.0030.00916.04
7.1.250.0150.00215.82
7.1.240.0070.00415.67
7.1.230.0040.00915.92
7.1.220.0070.00715.71
7.1.210.0120.00316.02
7.1.200.0030.01015.91
7.1.190.0090.00916.11
7.1.180.0120.00615.72
7.1.170.0090.00316.12
7.1.160.0060.00615.88
7.1.150.0040.00416.07
7.1.140.0080.00416.10
7.1.130.0030.00615.86
7.1.120.0070.00715.71
7.1.110.0030.01416.00
7.1.100.0280.00913.97
7.1.90.0060.00616.07
7.1.80.0030.00915.96
7.1.70.0050.00716.50
7.1.60.0070.00816.51
7.1.50.0120.00716.57
7.1.40.0030.01016.12
7.1.30.0060.01015.76
7.1.20.0000.01716.11
7.1.10.0060.00616.08
7.1.00.0080.03819.10
7.0.330.0070.00715.60
7.0.320.0000.01315.73
7.0.310.0070.00715.51
7.0.300.0090.00315.34
7.0.290.0060.00915.57
7.0.280.0000.01215.45
7.0.270.0030.01215.64
7.0.260.0030.01015.35
7.0.250.0150.00015.60
7.0.240.0070.00715.55
7.0.230.0100.00315.59
7.0.220.0040.01115.37
7.0.210.0090.00615.68
7.0.200.0060.00916.25
7.0.190.0030.01215.53
7.0.180.0000.01415.37
7.0.170.0030.01315.48
7.0.160.0070.00715.72
7.0.150.0140.00015.52
7.0.140.0030.04318.72
7.0.130.0130.00315.38
7.0.120.0000.00915.63
7.0.110.0040.00815.43
7.0.100.0060.00615.73
7.0.90.0040.00815.61
7.0.80.0070.02317.84
7.0.70.0120.02317.80
7.0.60.0050.02417.79
7.0.50.0070.02218.13
7.0.40.0020.03316.88
7.0.30.0110.02016.87
7.0.20.0010.02616.91
7.0.10.0050.03116.92
7.0.00.0050.04516.70
5.6.400.0060.00614.54
5.6.390.0120.00614.57
5.6.380.0070.00714.56
5.6.370.0040.01114.51
5.6.360.0080.00814.67
5.6.350.0040.00714.77
5.6.340.0110.00014.69
5.6.330.0080.00814.61
5.6.320.0100.00714.31
5.6.310.0040.00514.83
5.6.300.0110.00414.75
5.6.290.0140.00014.54
5.6.280.0070.03817.85
5.6.270.0060.01014.32
5.6.260.0100.00314.75
5.6.250.0030.01014.36
5.6.240.0060.00614.83
5.6.230.0140.01117.60
5.6.220.0040.02017.49
5.6.210.0070.02017.52
5.6.200.0070.02317.82
5.6.190.0020.02617.84
5.6.180.0030.02517.74
5.6.170.0030.02917.79
5.6.160.0050.04717.69
5.6.150.0050.04317.77
5.6.140.0030.04317.76
5.6.130.0050.04317.65
5.6.120.0070.04017.72
5.6.110.0070.02717.87
5.6.100.0100.04017.57
5.6.90.0040.04417.83
5.6.80.0040.02417.47
5.6.70.0020.02417.34
5.6.60.0080.02517.34
5.6.50.0080.04317.53
5.6.40.0050.04417.40
5.6.30.0080.04217.22
5.6.20.0070.02617.34
5.6.10.0020.04517.55
5.6.00.0100.03717.41
5.5.380.0140.00014.30
5.5.370.0040.02017.55
5.5.360.0060.02317.40
5.5.350.0100.01717.32
5.5.340.0030.02417.76
5.5.330.0030.02417.70
5.5.320.0080.02317.44
5.5.310.0050.02517.50
5.5.300.0050.04817.60
5.5.290.0030.04317.56
5.5.280.0050.04617.43
5.5.270.0050.03317.61
5.5.260.0050.04417.61
5.5.250.0090.02917.59
5.5.240.0030.02717.24
5.5.230.0060.03817.16
5.5.220.0050.03717.10
5.5.210.0100.03817.19
5.5.200.0090.03417.28
5.5.190.0050.02917.14
5.5.180.0070.04317.23
5.5.170.0060.00314.39
5.5.160.0050.05017.33
5.5.150.0070.04417.21
5.5.140.0070.02517.33
5.5.130.0070.04017.24
5.5.120.0070.04117.36
5.5.110.0070.03717.12
5.5.100.0120.02517.21
5.5.90.0050.03117.17
5.5.80.0100.03517.25
5.5.70.0070.04217.14
5.5.60.0070.02217.19
5.5.50.0030.02817.26
5.5.40.0050.02717.21
5.5.30.0050.04017.26
5.5.20.0090.04417.10
5.5.10.0070.04217.05
5.5.00.0040.02916.98
5.4.450.0050.03115.30
5.4.440.0050.04415.37
5.4.430.0030.04315.40
5.4.420.0070.03515.38
5.4.410.0060.04015.28
5.4.400.0020.02515.08
5.4.390.0050.02315.14
5.4.380.0050.02515.14
5.4.370.0080.02015.12
5.4.360.0030.02815.25
5.4.350.0080.03515.25
5.4.340.0050.02215.15
5.4.330.0000.00611.10
5.4.320.0080.04115.10
5.4.310.0080.03315.14
5.4.300.0050.02515.06
5.4.290.0020.02815.04
5.4.280.0050.02915.28
5.4.270.0050.02315.11
5.4.260.0050.04215.22
5.4.250.0100.03115.06
5.4.240.0050.02715.07
5.4.230.0030.03815.26
5.4.220.0030.04215.21
5.4.210.0060.03615.27
5.4.200.0080.02215.07
5.4.190.0110.03415.08
5.4.180.0050.04315.08
5.4.170.0030.02914.98
5.4.160.0030.02315.09
5.4.150.0020.04715.06
5.4.140.0020.04113.78
5.4.130.0020.02313.79
5.4.120.0100.03813.76
5.4.110.0060.02513.97
5.4.100.0050.02513.85
5.4.90.0050.03813.71
5.4.80.0050.04713.92
5.4.70.0030.02513.72
5.4.60.0050.03513.84
5.4.50.0080.03513.71
5.4.40.0070.03913.82
5.4.30.0070.03013.76
5.4.20.0110.02013.84
5.4.10.0050.04013.91
5.4.00.0090.03113.50
5.3.290.0070.04714.63
5.3.280.0030.07014.69
5.3.270.0100.05314.63
5.3.260.0030.08314.63
5.3.250.0070.07314.66
5.3.240.0100.03314.63
5.3.230.0070.07714.70
5.3.220.0000.04014.67
5.3.210.0000.04314.71
5.3.200.0070.06714.70
5.3.190.0030.05014.71
5.3.180.0170.06314.63
5.3.170.0130.06014.66
5.3.160.0030.07014.71
5.3.150.0100.07014.59
5.3.140.0030.06714.59
5.3.130.0030.07314.65
5.3.120.0000.07714.54
5.3.110.0030.04314.64
5.3.100.0070.04014.12
5.3.90.0030.07314.14
5.3.80.0070.06314.06
5.3.70.0070.04314.17
5.3.60.0070.03313.90
5.3.50.0100.06314.02
5.3.40.0000.04313.88
5.3.30.0000.04713.97
5.3.20.0070.06713.63
5.3.10.0000.07713.79
5.3.00.0100.07013.77
5.2.170.0030.06311.22
5.2.160.0030.04011.14
5.2.150.0070.03011.07
5.2.140.0000.05311.29
5.2.130.0130.05311.25
5.2.120.0030.04711.10
5.2.110.0030.03310.97
5.2.100.0070.03010.96
5.2.90.0070.06711.10
5.2.80.0030.06311.00
5.2.70.0030.06711.20
5.2.60.0030.05011.05
5.2.50.0070.05310.93
5.2.40.0030.04311.04
5.2.30.0070.05710.97
5.2.20.0000.05310.98
5.2.10.0030.04710.93
5.2.00.0030.05710.83
5.1.60.0100.04710.00
5.1.50.0070.0479.89
5.1.40.0000.05710.05
5.1.30.0100.05010.27
5.1.20.0100.05010.47
5.1.10.0070.0479.93
5.1.00.0000.05710.16
5.0.50.0000.0478.65
5.0.40.0100.0338.48
5.0.30.0000.0678.24
5.0.20.0070.0408.33
5.0.10.0030.0408.26
5.0.00.0030.0608.23
4.4.90.0100.0307.89
4.4.80.0000.0207.89
4.4.70.0000.0307.89
4.4.60.0000.0237.89
4.4.50.0100.0207.89
4.4.40.0000.0407.89
4.4.30.0030.0277.89
4.4.20.0030.0337.89
4.4.10.0000.0307.89
4.4.00.0000.0577.89
4.3.110.0000.0237.89
4.3.100.0000.0307.89
4.3.90.0030.0207.89
4.3.80.0000.0577.89
4.3.70.0070.0307.89
4.3.60.0030.0337.89
4.3.50.0070.0137.89
4.3.40.0070.0437.89
4.3.30.0000.0277.89
4.3.20.0000.0377.89
4.3.10.0000.0277.89
4.3.00.0000.0337.89

preferences:
40.47 ms | 401 KiB | 5 Q