3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); ob_start(); $t = microtime(true); while($i < 1000) { ++$i; } $tmp = microtime(true) - $t; ob_end_clean(); echo round($tmp, 6) . "\n"; ob_start(); $t = microtime(true); while($i < 1000) { ++$i; } $tmp = microtime(true) - $t; ob_end_clean(); echo round($tmp, 6) . "\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.00.0040.01419.57
7.1.70.0000.00817.06
7.1.60.0040.01219.21
7.1.50.0060.01816.75
7.1.00.0000.03722.51
7.0.200.0000.00816.58
7.0.140.0000.07722.10
7.0.100.0130.07720.14
7.0.90.0030.08720.05
7.0.80.0100.08720.20
7.0.70.0100.08020.11
7.0.60.0170.07320.11
7.0.50.0230.03320.48
7.0.40.0070.05720.08
7.0.30.0070.04020.28
7.0.20.0030.05320.16
7.0.10.0070.03720.36
7.0.00.0070.06020.22
5.6.280.0100.06721.12
5.6.250.0170.08020.76
5.6.240.0130.07720.67
5.6.230.0070.08320.71
5.6.220.0170.08020.63
5.6.210.0100.07720.61
5.6.200.0130.04021.28
5.6.190.0030.05321.18
5.6.180.0030.04721.23
5.6.170.0030.04021.08
5.6.160.0100.06721.04
5.6.150.0070.04021.32
5.6.140.0100.05321.23
5.6.130.0070.08021.04
5.6.120.0070.06321.03
5.6.110.0170.08021.00
5.6.100.0100.04021.09
5.6.90.0070.04021.01
5.6.80.0100.03020.58
5.6.70.0030.05020.65
5.6.60.0030.04020.64
5.6.50.0070.03720.45
5.6.40.0030.05720.48
5.6.30.0000.04720.61
5.6.20.0030.05720.53
5.6.10.0030.03720.59
5.6.00.0000.04320.61
5.5.380.0070.08020.59
5.5.370.0130.07020.57
5.5.360.0030.07720.34
5.5.350.0030.08320.39
5.5.340.0000.04721.13
5.5.330.0070.04321.13
5.5.320.0030.04021.03
5.5.310.0030.04721.13
5.5.300.0030.05320.75
5.5.290.0070.06021.07
5.5.280.0070.04020.91
5.5.270.0100.05720.97
5.5.260.0000.04720.87
5.5.250.0030.04020.73
5.5.240.0070.03320.29
5.5.230.0030.04020.20
5.5.220.0030.04020.36
5.5.210.0070.03720.52
5.5.200.0030.04020.34
5.5.190.0030.04320.18
5.5.180.0100.03320.46
5.5.160.0000.04320.09
5.5.150.0070.03720.33
5.5.140.0030.04320.28
5.5.130.0070.06720.32
5.5.120.0000.07720.50
5.5.110.0170.06720.22
5.5.100.0000.08020.07
5.5.90.0100.06020.26
5.5.80.0130.04020.16
5.5.70.0070.07720.30
5.5.60.0030.07020.05
5.5.50.0070.08019.93
5.5.40.0130.07320.25
5.5.30.0130.06320.30
5.5.20.0070.06720.23
5.5.10.0130.06320.23
5.5.00.0070.07319.99
5.4.450.0070.03719.22
5.4.440.0070.05019.64
5.4.430.0000.04719.45
5.4.420.0000.04319.29
5.4.410.0100.05319.15
5.4.400.0070.03319.20
5.4.390.0030.04018.98
5.4.380.0170.02319.28
5.4.370.0070.03719.21
5.4.360.0000.04018.96
5.4.350.0000.06019.21
5.4.340.0000.04318.96
5.4.320.0000.04319.13
5.4.310.0030.07019.00
5.4.300.0030.05319.18
5.4.290.0030.03719.06
5.4.280.0000.08018.95
5.4.270.0100.04319.16
5.4.260.0200.05718.97
5.4.250.0130.07019.10
5.4.240.0030.08019.10
5.4.230.0100.04318.96
5.4.220.0030.07719.05
5.4.210.0130.07018.87
5.4.200.0100.06019.12
5.4.190.0000.07719.10
5.4.180.0030.04018.96
5.4.170.0070.07318.97
5.4.160.0100.07019.17
5.4.150.0100.06718.97
5.4.140.0070.05316.30
5.4.130.0100.05316.12
5.4.120.0130.06316.28
5.4.110.0070.07016.34
5.4.100.0100.06716.38
5.4.90.0070.07716.55
5.4.80.0100.06716.35
5.4.70.0030.08016.39
5.4.60.0070.07716.57
5.4.50.0070.06716.37
5.4.40.0070.07316.48
5.4.30.0070.07016.48
5.4.20.0130.06716.27
5.4.10.0000.08016.24
5.4.00.0030.06015.91
5.3.290.0000.04014.79
5.3.280.0030.07714.55
5.3.270.0100.07314.67
5.3.260.0100.06314.67
5.3.250.0170.03714.62
5.3.240.0030.07314.56
5.3.230.0230.06014.65
5.3.220.0100.05314.49
5.3.210.0000.07314.66
5.3.200.0100.04314.57
5.3.190.0130.05314.52
5.3.180.0070.07014.74
5.3.170.0170.07014.63
5.3.160.0070.07714.50
5.3.150.0100.05314.49
5.3.140.0100.07014.63
5.3.130.0030.07314.47
5.3.120.0100.06314.50
5.3.110.0170.06714.73
5.3.100.0100.07713.92
5.3.90.0000.07713.91
5.3.80.0100.06714.20
5.3.70.0100.06714.11
5.3.60.0030.05314.18
5.3.50.0070.07014.15
5.3.40.0100.06013.81
5.3.30.0000.08013.88
5.3.20.0170.06713.60
5.3.10.0030.07313.64
5.3.00.0130.05013.61
5.2.170.0070.06711.20
5.2.160.0000.06711.32
5.2.150.0070.06011.09
5.2.140.0030.06011.30
5.2.130.0030.06311.19
5.2.120.0130.05311.14
5.2.110.0000.06311.14
5.2.100.0100.06011.08
5.2.90.0030.06311.25
5.2.80.0070.06311.22
5.2.70.0000.06711.15
5.2.60.0170.05711.23
5.2.50.0130.04711.17
5.2.40.0070.06010.95
5.2.30.0100.05711.16
5.2.20.0030.06311.11
5.2.10.0030.06010.98
5.2.00.0130.05310.85
5.1.60.0100.05010.23
5.1.50.0100.05310.18
5.1.40.0130.04710.01
5.1.30.0100.05310.58
5.1.20.0100.05310.57
5.1.10.0070.05710.09
5.1.00.0030.06010.34
5.0.50.0100.0438.80
5.0.40.0030.0478.60
5.0.30.0100.0538.25
5.0.20.0030.0478.31
5.0.10.0000.0508.21
5.0.00.0070.0608.20
4.4.90.0030.0338.17
4.4.80.0000.0378.17
4.4.70.0000.0378.17
4.4.60.0000.0378.17
4.4.50.0030.0378.17
4.4.40.0000.0578.17
4.4.30.0100.0308.17
4.4.20.0030.0408.17
4.4.10.0000.0408.17
4.4.00.0030.0578.17
4.3.110.0070.0378.17
4.3.100.0000.0378.17
4.3.90.0030.0338.17
4.3.80.0000.0578.17
4.3.70.0000.0378.17
4.3.60.0070.0338.17
4.3.50.0000.0378.17
4.3.40.0100.0478.17
4.3.30.0000.0338.17
4.3.20.0000.0338.17
4.3.10.0000.0378.17
4.3.00.0000.0378.17

preferences:
30.98 ms | 401 KiB | 5 Q