3v4l.org

run code in 300+ PHP versions simultaneously
<?php function average_time($total, $count, $rounding = 0) { $total = explode(":", strval($total)); if (count($total) !== 3) return false; $sum = $total[0]*60*60 + $total[1]*60 + $total[2]; $average = $sum/(float)$count; $hours = floor($average/3600); $minutes = floor(fmod($average,3600)/60); $seconds = number_format(fmod(fmod($average,3600),60),(int)$rounding); return $hours.":".$minutes.":".$seconds; } echo average_time("2452:43:44", 15);

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)
8.3.60.0200.00316.50
8.3.50.0070.01118.00
8.3.40.0090.00919.13
8.3.30.0110.00418.70
8.3.20.0080.00018.86
8.3.10.0040.00422.03
8.3.00.0040.00421.86
8.2.180.0090.00616.63
8.2.170.0120.00322.96
8.2.160.0100.00722.36
8.2.150.0000.00724.18
8.2.140.0090.00024.66
8.2.130.0030.00621.10
8.2.120.0000.00826.35
8.2.110.0060.00321.16
8.2.100.0030.01017.98
8.2.90.0000.00820.08
8.2.80.0000.00820.25
8.2.70.0050.00318.18
8.2.60.0000.00818.41
8.2.50.0040.00418.10
8.2.40.0040.00420.30
8.2.30.0030.00320.65
8.2.20.0030.00618.09
8.2.10.0000.00818.34
8.2.00.0040.00418.27
8.1.280.0090.00625.92
8.1.270.0060.00320.35
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0000.00922.39
8.1.230.0090.00321.04
8.1.220.0040.00417.74
8.1.210.0000.00918.98
8.1.200.0040.00417.48
8.1.190.0080.00817.11
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0000.00718.88
8.1.150.0000.00818.99
8.1.140.0040.00418.93
8.1.130.0000.00720.39
8.1.120.0000.00717.57
8.1.110.0030.00717.55
8.1.100.0100.00017.46
8.1.90.0000.00817.56
8.1.80.0050.00317.54
8.1.70.0000.00717.46
8.1.60.0050.00217.71
8.1.50.0040.00417.60
8.1.40.0040.00417.65
8.1.30.0000.00717.67
8.1.20.0040.00417.66
8.1.10.0040.00417.72
8.1.00.0040.00417.54
8.0.300.0000.00720.21
8.0.290.0040.00416.88
8.0.280.0070.00018.55
8.0.270.0030.00316.91
8.0.260.0000.00720.22
8.0.250.0060.00317.16
8.0.240.0070.00017.16
8.0.230.0050.00217.02
8.0.220.0030.00317.13
8.0.210.0000.00817.05
8.0.200.0060.00317.15
8.0.190.0050.00216.97
8.0.180.0080.00017.05
8.0.170.0030.00617.13
8.0.160.0000.00817.09
8.0.150.0030.00517.00
8.0.140.0060.00317.05
8.0.130.0030.00313.50
8.0.120.0050.00216.95
8.0.110.0040.00417.11
8.0.100.0000.00717.08
8.0.90.0070.00017.08
8.0.80.0060.01117.08
8.0.70.0040.00417.13
8.0.60.0070.00017.14
8.0.50.0070.00016.90
8.0.30.0110.00917.27
8.0.20.0100.01317.40
8.0.10.0040.00417.17
8.0.00.0120.00916.95
7.4.330.0030.00315.55
7.4.320.0030.00316.69
7.4.300.0000.00616.57
7.4.290.0070.00016.50
7.4.280.0030.00416.46
7.4.270.0030.00316.58
7.4.260.0030.00316.60
7.4.250.0080.00016.63
7.4.240.0070.00016.73
7.4.230.0000.00716.63
7.4.220.0000.00816.57
7.4.210.0060.01316.59
7.4.200.0040.00416.80
7.4.160.0120.00616.70
7.4.140.0090.01017.86
7.4.130.0180.00016.71
7.4.120.0120.00516.69
7.4.110.0060.01016.48
7.4.100.0070.01716.56
7.4.90.0030.01516.65
7.4.80.0130.01019.39
7.4.70.0100.00716.47
7.4.60.0080.00916.68
7.4.50.0130.00316.33
7.4.40.0120.00916.71
7.4.00.0110.00515.03
7.3.330.0070.00013.54
7.3.320.0000.00513.44
7.3.310.0070.00016.51
7.3.300.0000.00716.45
7.3.290.0070.00016.35
7.3.280.0070.00716.40
7.3.260.0130.00616.53
7.3.240.0100.00816.68
7.3.230.0120.00916.79
7.3.210.0120.01016.71
7.3.200.0090.00916.79
7.3.190.0060.01116.74
7.3.180.0070.01016.77
7.3.170.0030.01216.69
7.3.160.0100.00716.73
7.3.120.0100.00614.71
7.3.110.0060.00914.99
7.3.100.0110.00414.88
7.3.90.0030.00614.92
7.3.80.0070.00714.90
7.3.70.0000.00914.85
7.3.60.0030.01314.94
7.3.50.0060.00914.92
7.3.40.0120.00614.78
7.3.30.0070.00614.93
7.3.20.0110.00316.61
7.3.10.0100.00316.74
7.3.00.0070.00716.76
7.2.330.0130.01416.57
7.2.320.0030.01416.63
7.2.310.0110.00716.77
7.2.300.0060.01516.92
7.2.290.0080.00816.95
7.2.250.0030.01514.89
7.2.240.0070.01315.16
7.2.230.0040.01415.43
7.2.220.0080.00815.05
7.2.210.0060.01115.13
7.2.200.0030.00714.93
7.2.190.0090.00015.32
7.2.180.0070.01015.32
7.2.170.0080.00815.21
7.2.130.0040.01116.82
7.2.120.0100.00017.14
7.2.110.0090.00917.09
7.2.100.0680.00815.92
7.2.90.0940.01015.99
7.2.80.0050.01515.84
7.2.70.0150.00515.75
7.2.60.0620.00915.97
7.2.50.0730.00415.95
7.2.40.0110.01216.15
7.2.30.0340.00416.09
7.2.20.0740.01116.11
7.2.10.0080.01016.20
7.2.00.0670.01016.05
7.1.330.0030.01216.02
7.1.320.0040.00715.60
7.1.310.0030.01015.86
7.1.300.0040.00415.73
7.1.290.0070.01115.73
7.1.280.0090.00915.84
7.1.270.0120.00615.88
7.1.260.0030.00715.93
7.1.250.0100.00315.86
7.1.240.0000.00815.69
7.1.230.0130.00015.73
7.1.220.0170.00614.83
7.1.210.0100.00414.95
7.1.200.0640.00714.88
7.1.190.0210.01114.85
7.1.180.0200.00714.86
7.1.170.0100.01014.85
7.1.160.0140.00615.02
7.1.150.0540.00514.97
7.1.140.0040.00815.01
7.1.130.0110.00714.95
7.1.120.0100.00614.72
7.1.110.0070.01014.83
7.1.100.0210.00414.93
7.1.90.0170.00915.12
7.1.80.0050.00714.74
7.1.70.0300.00514.85
7.1.60.0270.00923.71
7.1.50.0220.00823.67
7.1.40.0460.01123.73
7.1.30.0200.01023.85
7.1.20.0390.01423.94
7.1.10.0100.00715.03
7.1.00.0830.00814.91
7.0.330.0030.00615.29
5.6.380.0060.00814.48

preferences:
63.38 ms | 400 KiB | 5 Q