3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); while (microtime(true) != $start + 1); // Wait a second to start up $loops = 10; $avg = 0; for ($i = 0; $i < $loops; $i++) { $start = microtime(true); for ($c = 0; $c < 1000; $c++) { // the 1000 may vary depending on the function theFunction(); } $end = microtime(true); echo "Take $i: " . ($end-$start) . "s\n"; $avg *= $i; $avg += $end - $start; $avg /= $i + 1; } echo "Average: " . $avg . "s\n";

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.2.110.0071.00316.34
7.2.100.0231.00416.59
7.2.90.0131.00816.73
7.2.80.0161.00216.68
7.2.70.0071.00816.82
7.2.60.0171.00716.86
7.2.50.0161.00416.95
7.2.40.0101.00716.85
7.2.30.0231.00516.83
7.2.20.0131.00216.80
7.2.10.0231.00516.84
7.2.00.0051.01117.86
7.1.230.1631.00215.74
7.1.220.0200.99615.66
7.1.210.0061.00715.68
7.1.200.0101.01015.59
7.1.190.0131.00415.78
7.1.180.0160.99815.68
7.1.170.0201.00315.91
7.1.160.0160.99715.54
7.1.150.0101.00315.72
7.1.140.0231.00515.65
7.1.130.0131.00515.68
7.1.120.0171.00515.79
7.1.110.0101.00315.93
7.1.100.0061.00815.65
7.1.90.0290.99315.61
7.1.80.0260.99415.84
7.1.70.0171.00416.52
7.1.60.0601.00917.44
7.1.50.0151.00616.31
7.1.40.0301.00715.74
7.1.30.0331.00533.73
7.1.20.0441.01515.71
7.1.10.0221.00115.69
7.1.00.0121.04018.90
7.0.310.0101.00615.44
7.0.300.0160.99715.05
7.0.290.0301.00615.34
7.0.280.0261.00415.37
7.0.270.0171.00215.34
7.0.260.0171.00515.41
7.0.250.0131.00515.22
7.0.240.0231.00215.31
7.0.230.0091.00315.55
7.0.220.0061.00815.20
7.0.210.0231.00015.27
7.0.200.1750.84416.20
7.0.190.0200.99715.14
7.0.180.0190.99615.38
7.0.170.0071.01315.39
7.0.160.0161.00715.46
7.0.150.0161.00115.37
7.0.140.0131.03318.79
7.0.130.0101.00915.29
7.0.120.0260.99315.45
7.0.110.0131.00615.53
7.0.100.0131.00215.41
7.0.90.0071.01315.33
7.0.80.0271.00715.33
7.0.70.0161.00015.31
7.0.60.0061.04117.60
7.0.50.0071.04416.61
7.0.40.0031.02616.95
7.0.30.0181.03116.79
7.0.20.0171.03616.74
7.0.10.0151.04716.73
7.0.00.0091.03916.88
5.6.380.0101.00214.48
5.6.370.0071.00414.27
5.6.360.0160.99814.16
5.6.350.0101.00214.37
5.6.340.0131.00514.15
5.6.330.0031.00914.23
5.6.320.0061.00814.50
5.6.310.0071.00514.35
5.6.300.0230.99814.48
5.6.290.0230.99514.21
5.6.280.0121.03317.60
5.6.270.0131.00314.20
5.6.260.0121.01114.41
5.6.250.0330.97414.12
5.6.240.0071.00514.52
5.6.230.0101.00414.00
5.6.220.0200.99214.40
5.6.210.0630.96617.46
5.6.200.0121.03916.20
5.6.190.0121.04517.40
5.6.180.0201.73017.41
5.6.170.0151.02017.30
5.6.160.0151.03817.35
5.6.150.0101.04116.29
5.6.140.0151.03616.14
5.6.130.0121.01516.19
5.6.120.0071.04217.51
5.6.110.0091.04417.57
5.6.100.0121.04017.58
5.6.90.0101.03417.72
5.6.80.0071.04217.23
5.6.70.0151.04117.29
5.6.60.0071.00214.17
5.6.50.0101.00414.45
5.6.40.0071.00614.31
5.6.30.0031.00813.86
5.6.20.0131.00114.36
5.6.10.0101.00214.09
5.6.00.0071.00714.10
5.5.380.0160.99312.79
5.5.370.0031.00612.79
5.5.360.0031.00612.79
5.5.350.0081.04316.59
5.5.340.0071.04015.35
5.5.330.0031.03116.61
5.5.320.0131.04616.43
5.5.310.0171.04216.46
5.5.300.0101.03515.36
5.5.290.0021.04515.38
5.5.280.0031.02216.83
5.5.270.0081.02116.73
5.5.260.0071.03616.79
5.5.250.0021.03616.72
5.5.240.0171.02516.45
5.5.230.0091.00212.79
5.5.220.0071.00512.79
5.5.210.0031.00712.79
5.5.200.0071.00612.79
5.5.190.0031.00512.79
5.5.180.0071.00212.79
5.5.170.0071.00913.89
5.5.160.0100.99912.79
5.5.150.0071.00612.79
5.5.140.0130.99912.79
5.5.130.0031.00612.79
5.5.120.0031.00812.79
5.5.110.0071.00212.79
5.5.100.0071.00312.79
5.5.90.0101.00112.79
5.5.80.0001.01012.79
5.5.70.0031.00512.79
5.5.60.0101.00012.79
5.5.50.0031.00912.79
5.5.40.0071.00212.79
5.5.30.0001.00912.79
5.5.20.0071.00512.79
5.5.10.0071.00212.79
5.5.00.0071.00412.79
5.4.450.0131.04316.18
5.4.440.0051.02316.18
5.4.430.0151.03416.08
5.4.420.0081.04216.02
5.4.410.0081.02616.02
5.4.400.1971.01716.02
5.4.390.2121.01816.00
5.4.380.0171.03615.93
5.4.370.0131.03515.80
5.4.360.0161.02515.84
5.4.350.0201.03215.96
5.4.340.2150.80912.38
5.4.330.0031.00712.79
5.4.320.2080.81512.62
5.4.310.1980.83912.62
5.4.300.2040.82212.62
5.4.290.2160.80412.62
5.4.280.2130.80512.57
5.4.270.2160.80412.57
5.4.260.2160.80712.57
5.4.250.2030.82212.57
5.4.240.1930.82912.57
5.4.230.4191.08612.56
5.4.220.2040.80912.57
5.4.210.2140.80612.57
5.4.200.2030.81212.57
5.4.190.2070.80212.56
5.4.180.2310.78912.56
5.4.170.2180.80112.57
5.4.160.2030.81712.57
5.4.150.2140.80412.57
5.4.140.1910.81812.41
5.4.130.2120.79912.40
5.4.120.1700.77312.38
5.4.110.3551.02012.38
5.4.100.1820.73712.38
5.4.90.1680.71812.38
5.4.80.1700.74212.38
5.4.70.1610.73412.38
5.4.60.1650.72912.38
5.4.50.1390.73712.38
5.4.40.1620.74312.37
5.4.30.4311.07712.37
5.4.20.2290.80012.37
5.4.10.2130.81312.37
5.4.00.1980.82912.12

preferences:
39.47 ms | 401 KiB | 5 Q