3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 1000000; $foo = 0; $start = microtime(true); for ($i = 0; $i < $count; $i++) { try { $foo++; } catch (Exception $e) { } } echo microtime(true) - $start;

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.3.10.0130.02416.54
7.3.00.0060.03216.23
7.2.130.0130.02916.88
7.2.120.0100.03016.91
7.2.110.0100.03016.86
7.2.100.0060.03816.71
7.2.90.0030.03616.82
7.2.80.0090.02816.86
7.2.70.0030.03416.93
7.2.60.0030.03016.54
7.2.50.0000.03716.63
7.2.40.0070.03016.80
7.2.30.0060.03216.93
7.2.20.0030.03816.92
7.2.10.0100.02617.06
7.2.00.0050.03217.95
7.1.250.0070.06115.69
7.1.70.0070.03117.13
7.1.60.0130.04019.24
7.1.50.0100.02934.83
7.1.00.0000.06022.45
7.0.200.0130.02216.64
7.0.140.0030.12721.97
7.0.100.0100.05719.98
7.0.90.0070.08719.89
7.0.80.0200.09319.91
7.0.70.0170.07019.93
7.0.60.0170.05319.91
7.0.50.0130.09020.25
7.0.40.0030.05720.08
7.0.30.0070.06320.05
7.0.20.0100.08320.20
7.0.10.0000.06020.16
7.0.00.0030.06320.10
5.6.280.0000.14020.77
5.6.250.0100.12020.49
5.6.240.0070.10720.68
5.6.230.0130.09320.63
5.6.220.0100.11020.55
5.6.210.0130.11320.62
5.6.200.0030.07720.96
5.6.190.0130.08321.00
5.6.180.0000.08021.03
5.6.170.0030.07721.08
5.6.160.0070.07320.99
5.6.150.0030.07321.10
5.6.140.0030.07320.95
5.6.130.0000.08321.03
5.6.120.0070.06021.02
5.6.110.0000.06721.10
5.6.100.0030.07321.03
5.6.90.0030.07320.94
5.6.80.0030.10320.55
5.6.70.0070.06720.43
5.6.60.0070.12720.49
5.6.50.0100.12020.41
5.6.40.0030.09320.31
5.6.30.0100.08320.34
5.6.20.0170.09720.38
5.6.10.0100.11320.43
5.6.00.0100.06720.38
5.5.380.0070.13020.34
5.5.370.0030.10020.54
5.5.360.0100.10720.55
5.5.350.0070.12320.39
5.5.340.0100.10320.83
5.5.330.0130.06320.77
5.5.320.0100.09020.82
5.5.310.0130.08720.72
5.5.300.0100.11020.89
5.5.290.0030.07320.88
5.5.280.0130.07020.88
5.5.270.0030.07720.63
5.5.260.0100.07020.91
5.5.250.0070.07020.72
5.5.240.0070.07020.25
5.5.230.0170.11020.16
5.5.220.0170.12320.13
5.5.210.0070.07320.11
5.5.200.0100.09320.28
5.5.190.0070.12020.22
5.5.180.0070.13720.25
5.5.160.0100.12020.18
5.5.150.0070.09320.22
5.5.140.0130.10020.11
5.5.130.0100.07320.23
5.5.120.0130.12020.22
5.5.110.0070.11720.25
5.5.100.0070.13020.06
5.5.90.0030.12020.12
5.5.80.0000.13320.11
5.5.70.0030.07720.08
5.5.60.0070.12720.15
5.5.50.0000.14020.05
5.5.40.0070.09020.05
5.5.30.0000.12719.99
5.5.20.0100.08020.14
5.5.10.0000.08320.11
5.5.00.0030.09020.12
5.4.450.0030.07719.56
5.4.440.0000.09319.35
5.4.430.0000.07319.45
5.4.420.0070.08019.39
5.4.410.0100.06019.32
5.4.400.0100.10719.04
5.4.390.0100.12319.10
5.4.380.0030.10319.03
5.4.370.0030.09719.23
5.4.360.0100.11019.13
5.4.350.0030.11019.12
5.4.340.0170.11019.11
5.4.320.0130.12319.01
5.4.310.0030.07319.06
5.4.300.0130.06019.12
5.4.290.0100.10719.18
5.4.280.0030.07319.09
5.4.270.0070.11319.04
5.4.260.0000.07319.14
5.4.250.0130.10318.94
5.4.240.0100.07719.06
5.4.230.0070.11718.93
5.4.220.0030.12019.22
5.4.210.0000.08019.11
5.4.200.0030.12319.07
5.4.190.0030.09019.22
5.4.180.0000.09019.04
5.4.170.0070.07318.95
5.4.160.0030.09719.20
5.4.150.0000.11718.94
5.4.140.0070.08316.32
5.4.130.0070.12316.05
5.4.120.0030.08016.35
5.4.110.0070.09716.47
5.4.100.0070.07716.41
5.4.90.0000.12716.41
5.4.80.0100.07016.31
5.4.70.0100.06716.36
5.4.60.0100.14016.41
5.4.50.0130.08316.42
5.4.40.0000.09316.41
5.4.30.0000.13316.28
5.4.20.0100.08716.27
5.4.10.0000.07316.24
5.4.00.0070.12015.80
5.3.290.0100.09714.53
5.3.280.0030.12314.55
5.3.270.0000.09314.46
5.3.260.0000.12314.61
5.3.250.0030.13314.53
5.3.240.0070.13314.55
5.3.230.0100.13314.59
5.3.220.0070.12014.47
5.3.210.0030.09014.54
5.3.200.0070.12714.54
5.3.190.0000.09314.56
5.3.180.0000.13314.41
5.3.170.0170.14314.57
5.3.160.0170.10714.55
5.3.150.0130.13314.42
5.3.140.0100.15014.39
5.3.130.0100.09014.54
5.3.120.0030.12314.49
5.3.110.0100.10714.41
5.3.100.0000.13014.03
5.3.90.0030.13013.96
5.3.80.0130.10713.99
5.3.70.0030.12013.93
5.3.60.0070.14013.93
5.3.50.0070.09013.85
5.3.40.0170.12013.94
5.3.30.0100.16013.88
5.3.20.0030.12313.70
5.3.10.0070.14013.66
5.3.00.0000.13013.39
5.2.170.0070.12011.10
5.2.160.0070.10311.00
5.2.150.0100.09711.12
5.2.140.0070.08311.13
5.2.130.0070.08011.05
5.2.120.0070.11011.05
5.2.110.0070.11711.02
5.2.100.0030.13311.02
5.2.90.0070.12711.14
5.2.80.0030.08711.14
5.2.70.0070.08011.05
5.2.60.0130.09710.88
5.2.50.0130.10311.07
5.2.40.0000.10710.98
5.2.30.0070.13311.01
5.2.20.0030.12710.90
5.2.10.0030.11710.96
5.2.00.0030.12010.82
5.1.60.0030.1279.83
5.1.50.0070.1439.87
5.1.40.0030.1909.81
5.1.30.0100.16710.31
5.1.20.0000.13710.26
5.1.10.0030.15310.14
5.1.00.0070.1679.91
5.0.50.0030.2438.59
5.0.40.0000.2378.52
5.0.30.0030.2238.21
5.0.20.0000.2838.29
5.0.10.0000.2338.23
5.0.00.0070.3108.25
4.4.90.0070.0138.28
4.4.80.0030.0238.28
4.4.70.0030.0238.28
4.4.60.0030.0138.28
4.4.50.0030.0308.28
4.4.40.0030.0338.28
4.4.30.0070.0108.28
4.4.20.0000.0378.20
4.4.10.0000.0178.20
4.4.00.0030.0538.20
4.3.110.0030.0178.20
4.3.100.0000.0138.20
4.3.90.0130.0238.20
4.3.80.0000.0308.20
4.3.70.0000.0208.20
4.3.60.0100.0308.20
4.3.50.0070.0208.20
4.3.40.0030.0278.20
4.3.30.0000.0278.20
4.3.20.0030.0278.20
4.3.10.0030.0238.20
4.3.00.0000.0238.20

preferences:
39.26 ms | 401 KiB | 5 Q