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.1.70.0030.01917.23
7.1.60.0130.04519.24
7.1.50.0170.04234.50
7.1.00.0030.11722.44
7.0.200.0000.03216.72
7.0.140.0030.13022.11
7.0.80.0200.07719.92
7.0.70.0470.09019.98
7.0.60.0400.07320.06
7.0.50.0100.10020.16
7.0.40.0030.10020.09
7.0.30.0130.09020.16
7.0.20.0030.09720.20
7.0.10.0070.09320.07
7.0.00.0100.10020.09
5.6.280.0100.13721.08
5.6.230.0100.11720.50
5.6.220.0130.12320.58
5.6.210.0130.12020.56
5.6.200.0300.12020.96
5.6.190.0070.13321.02
5.6.180.0030.11721.05
5.6.170.0100.10321.05
5.6.160.0030.09720.93
5.6.150.0070.14021.05
5.6.140.0100.12321.10
5.6.130.0130.13021.01
5.6.120.0070.12321.10
5.6.110.0070.13020.99
5.6.100.0100.12721.15
5.6.90.0070.12721.07
5.6.80.0170.10720.39
5.6.70.0170.10720.53
5.6.60.0000.13320.43
5.6.50.0170.10320.47
5.6.40.0070.08720.38
5.6.30.0070.11720.36
5.6.20.0170.12320.38
5.6.10.0070.12720.37
5.6.00.0070.12720.41
5.5.370.0130.11020.34
5.5.360.0130.12320.48
5.5.350.0030.12320.43
5.5.340.0070.10720.89
5.5.330.0100.11720.88
5.5.320.0130.11020.79
5.5.310.0130.11320.86
5.5.300.0070.12720.88
5.5.290.0000.13720.73
5.5.280.0170.09320.72
5.5.270.0070.11020.82
5.5.260.0070.12720.91
5.5.250.0000.08020.43
5.5.240.0200.11020.16
5.5.230.0170.12320.25
5.5.220.0130.10020.16
5.5.210.0070.12720.30
5.5.200.0070.14720.27
5.5.190.0200.11720.14
5.5.180.0000.08320.18
5.5.160.0130.11720.25
5.5.150.0070.12020.27
5.5.140.0100.10320.21
5.5.130.0100.13020.25
5.5.120.0100.07320.09
5.5.110.0070.13020.13
5.5.100.0100.13020.15
5.5.90.0100.10320.09
5.5.80.0100.10720.14
5.5.70.0170.07320.14
5.5.60.0030.13020.05
5.5.50.0200.10320.14
5.5.40.0130.12719.95
5.5.30.0170.10019.91
5.5.20.0100.11719.98
5.5.10.0070.07320.11
5.5.00.0070.12320.02
5.4.450.0070.12319.47
5.4.440.0100.11719.14
5.4.430.0000.14319.53
5.4.420.0070.13019.43
5.4.410.0130.12719.43
5.4.400.0070.09319.06
5.4.390.0030.12719.07
5.4.380.0070.11319.19
5.4.370.0000.08718.78
5.4.360.0100.13319.05
5.4.350.0100.07019.10
5.4.340.0030.12719.07
5.4.320.0000.07719.10
5.4.310.0170.11318.98
5.4.300.0100.12318.90
5.4.290.0130.11718.97
5.4.280.0130.09319.11
5.4.270.0170.11718.97
5.4.260.0030.10718.97
5.4.250.0100.06719.02
5.4.240.0030.10019.04
5.4.230.0200.11019.07
5.4.220.0070.11719.06
5.4.210.0030.11719.11
5.4.200.0000.13018.97
5.4.190.0100.10719.10
5.4.180.0130.11718.96
5.4.170.0070.12018.95
5.4.160.0100.12719.00
5.4.150.0100.07718.95
5.4.140.0130.11316.29
5.4.130.0070.09316.26
5.4.120.0000.12016.27
5.4.110.0130.11716.43
5.4.100.0100.08016.43
5.4.90.0200.10016.23
5.4.80.0000.11716.20
5.4.70.0130.11016.31
5.4.60.0070.12316.18
5.4.50.0030.11716.19
5.4.40.0170.09716.36
5.4.30.0070.10716.44
5.4.20.0100.13016.39
5.4.10.0100.11716.37
5.4.00.0030.11315.77
5.3.290.0070.13714.52
5.3.280.0230.09014.46
5.3.270.0100.12714.59
5.3.260.0100.13714.60
5.3.250.0100.14014.46
5.3.240.0070.12014.54
5.3.230.0070.10314.45
5.3.220.0100.14714.55
5.3.210.0100.14314.56
5.3.200.0030.08714.54
5.3.190.0070.09014.48
5.3.180.0030.09714.54
5.3.170.0070.10014.51
5.3.160.0130.13014.52
5.3.150.0170.12314.57
5.3.140.0070.11714.56
5.3.130.0100.07714.54
5.3.120.0070.13314.36
5.3.110.0100.13314.52
5.3.100.0070.14013.89
5.3.90.0070.09013.99
5.3.80.0070.13013.87
5.3.70.0100.12713.76
5.3.60.0030.12013.86
5.3.50.0070.10313.93
5.3.40.0100.12013.93
5.3.30.0100.13013.86
5.3.20.0130.13013.68
5.3.10.0130.11313.42
5.3.00.0100.13013.48
5.2.170.0000.13712.93
5.2.160.0100.14312.93
5.2.150.0070.12712.93
5.2.140.0070.13012.93
5.2.130.0130.13312.93
5.2.120.0030.09712.93
5.2.110.0070.08312.93
5.2.100.0070.13012.93
5.2.90.0130.11712.93
5.2.80.0070.09312.93
5.2.70.0070.13712.93
5.2.60.0100.11712.93
5.2.50.0070.12312.93
5.2.40.0000.10312.93
5.2.30.0000.08712.93
5.2.20.0030.15712.93
5.2.10.0070.09312.93
5.2.00.0100.16712.93
5.1.60.0030.12012.93
5.1.50.0000.13312.93
5.1.40.0030.12012.93
5.1.30.0030.17012.93
5.1.20.0000.17712.93
5.1.10.0000.14012.93
5.1.00.0030.18012.93
5.0.50.0030.25312.93
5.0.40.0100.25712.93
5.0.30.0000.27012.93
5.0.20.0000.20312.93
5.0.10.0100.23312.93
5.0.00.0000.26012.93
4.4.90.0030.03312.93
4.4.80.0000.04012.93
4.4.70.0030.03712.93
4.4.60.0030.03712.93
4.4.50.0100.02712.93
4.4.40.0030.05312.93
4.4.30.0100.02712.93
4.4.20.0000.02012.93
4.4.10.0000.02012.93
4.4.00.0000.04012.93
4.3.110.0000.03712.93
4.3.100.0000.03312.93
4.3.90.0030.03312.93
4.3.80.0070.05012.93
4.3.70.0070.03012.93
4.3.60.0030.03012.93
4.3.50.0030.03712.93
4.3.40.0030.03312.93
4.3.30.0070.01712.93
4.3.20.0070.03312.93
4.3.10.0000.03712.93
4.3.00.0000.02712.93

preferences:
37.22 ms | 400 KiB | 5 Q