3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 10000000; $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.00.0070.26216.63
7.2.130.0100.26116.82
7.2.120.0030.25916.97
7.2.110.0070.23216.85
7.2.100.0070.25816.84
7.2.90.0000.26116.91
7.2.80.0100.24317.10
7.2.70.0030.25417.04
7.2.60.0030.23217.01
7.2.50.0030.24317.06
7.2.40.0000.25717.02
7.2.30.0030.26417.12
7.2.20.0100.26516.93
7.2.10.0070.26416.91
7.2.00.0380.21818.19
7.1.250.0030.58115.59
7.1.240.0130.55415.83
7.1.230.0030.54715.79
7.1.220.0030.56615.62
7.1.210.0100.55115.89
7.1.200.0030.51915.61
7.1.190.0070.52615.61
7.1.180.0070.53715.37
7.1.170.0100.53215.77
7.1.160.0030.52015.55
7.1.150.0030.54615.54
7.1.140.0070.55715.78
7.1.130.0000.59815.86
7.1.120.0070.54015.88
7.1.110.0070.53315.43
7.1.100.0030.51315.61
7.1.90.0030.54415.68
7.1.80.0030.55315.83
7.1.70.0020.36316.49
7.1.60.0120.34017.51
7.1.50.0030.35916.31
7.1.40.0030.55115.70
7.1.30.0030.50015.73
7.1.20.0070.50515.74
7.1.10.0000.54415.44
7.1.00.0050.43619.05
7.0.330.0070.50515.50
7.0.320.0170.52015.08
7.0.310.0070.51315.25
7.0.300.0070.52015.31
7.0.290.0000.54015.31
7.0.280.0000.50315.47
7.0.270.0070.57015.45
7.0.260.0130.50015.48
7.0.250.0070.50815.11
7.0.240.0000.51815.23
7.0.230.0070.52915.32
7.0.220.0100.52915.50
7.0.210.0070.55015.17
7.0.200.0050.36416.01
7.0.190.0070.51015.48
7.0.180.0070.50015.32
7.0.170.0100.51815.41
7.0.160.0000.51215.30
7.0.150.0030.52215.29
7.0.140.0050.46518.62
7.0.130.0030.52715.22
7.0.120.0100.51115.15
7.0.110.0000.50115.15
7.0.100.0050.37917.65
7.0.90.0200.37017.69
7.0.80.0030.36017.71
7.0.70.0050.36617.73
7.0.60.0100.38917.57
7.0.50.0070.40317.80
7.0.40.0020.38416.77
7.0.30.0080.36916.61
7.0.20.0100.37116.64
7.0.10.0050.35316.68
7.0.00.0070.33016.60
5.6.380.0071.13614.10
5.6.370.0071.15114.32
5.6.360.0101.13314.39
5.6.350.0101.16213.95
5.6.340.0171.12214.36
5.6.330.0101.18614.12
5.6.320.0031.14414.33
5.6.310.0031.14914.34
5.6.300.0031.09314.25
5.6.290.0071.08113.78
5.6.280.0050.81517.78
5.6.270.0031.10414.41
5.6.260.0001.14814.15
5.6.250.0100.75217.59
5.6.240.0070.75717.44
5.6.230.0000.79717.39
5.6.220.0080.75417.28
5.6.210.0050.75117.53
5.6.200.0030.74217.70
5.6.190.0050.73317.66
5.6.180.0120.79117.76
5.6.170.0070.75217.66
5.6.160.0070.73217.69
5.6.150.0030.74017.51
5.6.140.0030.74417.71
5.6.130.0100.75317.65
5.6.120.0050.74317.76
5.6.110.0050.75417.74
5.6.100.0050.81517.56
5.6.90.0050.78417.50
5.6.80.0020.76217.27
5.6.70.0050.76517.15
5.6.60.0080.74817.36
5.6.50.0100.75817.22
5.6.40.0050.74017.36
5.6.30.0020.76617.22
5.6.20.0120.74417.20
5.6.10.0030.77317.30
5.6.00.0050.74617.19
5.5.380.0080.75315.82
5.5.370.0070.76815.67
5.5.360.0050.74515.75
5.5.350.0050.79815.56
5.5.340.0150.74616.01
5.5.330.0050.75815.94
5.5.320.0050.76116.00
5.5.310.0030.74816.04
5.5.300.0050.72815.82
5.5.290.0100.77516.00
5.5.280.0450.70415.87
5.5.270.0030.73915.86
5.5.260.0030.69815.89
5.5.250.0030.80215.72
5.5.240.0000.78515.52
5.5.230.0030.77415.57
5.5.220.0050.79215.35
5.5.210.0050.74615.56
5.5.200.0100.77615.58
5.5.190.0080.77415.71
5.5.180.0070.75715.63
5.5.170.0031.11910.88
5.5.160.0070.77415.64
5.5.150.0020.77515.55
5.5.140.0070.75815.48
5.5.130.0050.77615.61
5.5.120.0120.78415.73
5.5.110.0050.75915.50
5.5.100.0050.77515.63
5.5.90.0070.73215.51
5.5.80.0100.77515.47
5.5.70.0070.77115.54
5.5.60.0000.81215.40
5.5.50.0030.80415.49
5.5.40.0070.78615.65
5.5.30.0050.76815.51
5.5.20.0070.81915.38
5.5.10.0070.81815.60
5.5.00.0070.78415.60
5.4.450.0030.70115.21
5.4.440.0050.67315.21
5.4.430.0030.69915.13
5.4.420.0100.66215.20
5.4.410.0070.73414.84
5.4.400.0070.80714.85
5.4.390.0020.76614.90
5.4.380.0050.72114.94
5.4.370.0100.73214.94
5.4.360.0100.71914.91
5.4.350.0070.75514.92
5.4.340.0120.72114.92
5.4.330.0001.10210.69
5.4.320.0020.73114.97
5.4.310.0000.71714.91
5.4.300.0070.72815.01
5.4.290.0030.71814.84
5.4.280.0030.79014.87
5.4.270.0050.75614.94
5.4.260.0100.71414.97
5.4.250.0030.75014.77
5.4.240.0120.73714.77
5.4.230.0000.71514.78
5.4.220.0050.73814.85
5.4.210.0100.74614.76
5.4.200.0030.76015.13
5.4.190.0050.80615.00
5.4.180.0070.75414.82
5.4.170.0050.77014.97
5.4.160.0020.75814.92
5.4.150.0100.73014.85
5.4.140.0050.75313.70
5.4.130.0030.72613.75
5.4.120.0030.76213.51
5.4.110.0000.75513.46
5.4.100.0050.72013.58
5.4.90.0070.71613.58
5.4.80.0080.76113.72
5.4.70.0080.73113.63
5.4.60.0230.73413.71
5.4.50.0050.71813.59
5.4.40.0080.76313.60
5.4.30.0080.77813.56
5.4.20.0030.77813.65
5.4.10.0050.77213.61
5.4.00.0000.73613.30
5.3.290.0030.83112.61
5.3.280.0050.85812.55
5.3.270.0070.86212.54
5.3.260.0080.85512.49
5.3.250.0070.88212.49
5.3.240.0130.82712.56
5.3.230.0070.85612.48
5.3.220.0030.84712.47
5.3.210.0030.80912.54
5.3.200.0050.82312.53
5.3.190.0100.85512.46
5.3.180.0100.91712.51
5.3.170.0070.81312.47
5.3.160.0050.85912.47
5.3.150.0130.89112.47
5.3.140.0050.89212.46
5.3.130.0080.89512.53
5.3.120.0020.81312.45
5.3.110.0050.85012.53
5.3.100.0050.87612.27
5.3.90.0070.86812.24
5.3.80.0000.88512.26
5.3.70.0070.88312.23
5.3.60.0050.82212.25
5.3.50.0030.82112.22
5.3.40.0030.84512.23
5.3.30.0030.83512.18
5.3.20.0020.87611.99
5.3.10.0070.87312.07
5.3.00.0000.85312.06
5.2.170.0030.95610.75
5.2.160.0041.02510.79
5.2.150.0021.05110.80
5.2.140.0051.01210.85
5.2.130.0051.03110.83
5.2.120.0021.00110.80
5.2.110.0031.00310.78
5.2.100.0030.98110.73
5.2.90.0030.97310.73
5.2.80.0030.97610.82
5.2.70.0070.99710.84
5.2.60.0020.98110.71
5.2.50.0071.04410.68
5.2.40.0021.06110.78
5.2.30.0031.05510.66
5.2.20.0031.00510.73
5.2.10.0050.90510.71
5.2.00.0051.44410.64
5.1.60.0021.44410.17
5.1.50.0051.43910.25
5.1.40.0021.38810.30
5.1.30.0021.48210.42
5.1.20.0031.46810.40
5.1.10.0031.39810.35
5.1.00.0021.52310.32
5.0.50.0042.1499.53
5.0.40.0052.0849.49
5.0.30.0032.0529.38
5.0.20.0022.0129.38
5.0.10.0002.1239.37
5.0.00.0052.0399.35
4.4.90.0030.0189.09
4.4.80.0040.0179.09
4.4.70.0010.0179.09
4.4.60.0030.0109.09
4.4.50.0040.0189.09
4.4.40.0000.0309.09
4.4.30.0000.0099.09
4.4.20.0050.0139.09
4.4.10.0030.0199.09
4.4.00.0000.0259.09
4.3.110.0030.0189.09
4.3.100.0000.0199.09
4.3.90.0000.0199.09
4.3.80.0030.0159.09
4.3.70.0000.0199.09
4.3.60.0020.0199.09
4.3.50.0000.0119.09
4.3.40.0060.0239.09
4.3.30.0020.0199.09
4.3.20.0030.0209.09
4.3.10.0020.0189.09
4.3.00.0000.0209.09

preferences:
38.13 ms | 401 KiB | 5 Q