3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(5); $startTime = microtime(true); while (true) { if($startTime >= ($startTime + 60)) { break; } } echo 'Total execution time in seconds: ' . (microtime(true) - $startTime);

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.1.70.0102.49016.92
7.1.60.0102.49119.32
7.1.50.0072.49517.07
7.1.00.0072.49322.28
7.0.200.0072.49416.88
7.0.140.0032.49721.93
7.0.60.0102.49019.92
7.0.50.0032.49717.80
7.0.40.0172.48319.67
7.0.30.0502.45019.95
7.0.20.0272.45719.64
7.0.10.0032.48319.76
7.0.00.0032.49719.88
5.6.280.0102.49021.02
5.6.210.0132.48720.62
5.6.200.0102.49018.07
5.6.190.0172.48320.49
5.6.180.3502.15020.16
5.6.170.0302.47020.26
5.6.160.0032.49720.42
5.6.150.0072.49318.05
5.6.140.0072.49318.13
5.6.130.0072.49318.08
5.6.120.0002.48020.96
5.6.110.0102.49020.98
5.6.100.0032.49720.97
5.6.90.0072.49321.00
5.6.80.0072.49320.53
5.6.70.0302.47020.42
5.5.350.0372.46320.48
5.5.340.0102.49017.98
5.5.330.0132.48720.05
5.5.320.0332.46720.10
5.5.310.0302.47020.11
5.5.300.0032.49717.93
5.5.290.0102.49017.92
5.5.280.0072.49320.77
5.5.270.0102.49020.79
5.5.260.0102.49020.79
5.5.250.0032.49720.70
5.5.240.0272.47320.24
5.4.450.0972.39719.57
5.4.440.0972.39319.04
5.4.430.1072.38719.33
5.4.422.4700.00019.32
5.4.412.4870.00019.31
5.4.402.2270.00018.98
5.4.392.2000.00019.00
5.4.382.4730.00018.88
5.4.372.0500.00018.86
5.4.362.3030.00018.95
5.4.352.3030.00019.00
5.4.342.4600.00019.08
5.4.320.0121.98412.45
5.4.310.0111.77512.45
5.4.300.0191.66912.46
5.4.290.0101.98512.45
5.4.280.0091.84012.35
5.4.270.0181.97412.35
5.4.260.0191.98412.35
5.4.250.0091.99212.35
5.4.240.0031.99712.35
5.4.230.0031.99812.34
5.4.220.0081.99512.34
5.4.210.0081.99312.34
5.4.200.0051.99612.34
5.4.190.0051.99512.34
5.4.180.0061.99512.34
5.4.170.0071.99612.35
5.4.160.0091.99512.34
5.4.150.0061.99412.34
5.4.140.0071.99312.02
5.4.130.0221.97812.01
5.4.120.0161.98511.97
5.4.110.0061.99511.97
5.4.100.0091.99211.97
5.4.90.0101.99111.96
5.4.80.0111.99111.96
5.4.70.0031.99711.96
5.4.60.0071.99511.96
5.4.50.0002.01611.96
5.4.40.0082.00411.95
5.4.30.0081.99011.95
5.4.20.0071.99811.94
5.4.10.0041.99611.95
5.4.00.0071.99411.44
5.3.290.0061.99412.80
5.3.280.0081.99212.70
5.3.270.0111.99112.72
5.3.260.0131.99312.72
5.3.250.0121.99012.72
5.3.240.0081.99412.72
5.3.230.0081.99312.71
5.3.220.0091.99112.68
5.3.210.0101.99612.68
5.3.200.0102.00412.68
5.3.190.0101.99312.68
5.3.180.0091.99412.67
5.3.170.0162.00312.67
5.3.160.0081.99712.67
5.3.150.0071.99412.67
5.3.140.0032.00012.66
5.3.130.0081.99612.66
5.3.120.0171.98612.66
5.3.110.0061.99412.66
5.3.100.0071.99512.12
5.3.90.0091.99312.08
5.3.80.0061.99512.07
5.3.70.0061.99612.07
5.3.60.0091.99112.07
5.3.50.0091.99212.00
5.3.40.0061.99412.00
5.3.30.0111.99111.93
5.3.20.0081.99311.69
5.3.10.0071.99311.65
5.3.00.0051.99711.64
5.2.170.0071.9929.13
5.2.160.0031.9989.13
5.2.150.0081.9919.13
5.2.140.0041.9979.12
5.2.130.0041.9969.08
5.2.120.0081.9939.08
5.2.110.0071.9949.09
5.2.100.0081.9949.08
5.2.90.0051.9989.09
5.2.80.0071.9939.08
5.2.70.0041.9989.08
5.2.60.0052.0019.04
5.2.50.0041.9999.00
5.2.40.0021.9998.97
5.2.30.0081.9938.95
5.2.20.0061.9968.94
5.2.10.0071.9978.88
5.2.00.0071.9938.73
5.1.60.0051.9968.02
5.1.50.0031.9978.02
5.1.40.0031.9978.00
5.1.30.0061.9968.34
5.1.20.0041.9978.37
5.1.10.0041.9978.10
5.1.00.0011.9998.09
5.0.50.0051.9976.58
5.0.40.0021.9986.43
5.0.30.0051.9956.25
5.0.20.0091.9936.21
5.0.10.0181.9826.19
5.0.00.0031.9986.18
4.4.90.0031.9974.78
4.4.80.0051.9964.76
4.4.70.0051.9984.75
4.4.60.0031.9974.75
4.4.50.0031.9974.77
4.4.40.0041.9974.71
4.4.30.0031.9984.75
4.4.20.0041.9974.84
4.4.10.0021.9984.85
4.4.00.0051.9964.75
4.3.110.0041.9964.67
4.3.100.0101.9914.67
4.3.90.0041.9984.63
4.3.80.0021.9984.58
4.3.70.0041.9994.63
4.3.60.0041.9984.63
4.3.50.0061.9954.63
4.3.40.0031.9984.54
4.3.30.0051.9953.31
4.3.20.0111.9893.28
4.3.10.0051.9963.24
4.3.00.0102.4737.18

preferences:
34.96 ms | 401 KiB | 5 Q