3v4l.org

run code in 300+ PHP versions simultaneously
<?php # different results for PHP 5.x and 7.x: ini_set('error_reporting', 1); $a = array(); $a['ini_get'] = ini_get('error_reporting'); $a['error_reporting'] = error_reporting(); $a['@ini_get'] = @ini_get('error_reporting'); $a['@error_reporting'] = @error_reporting(); var_export($a);
based on 1G971

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)
8.0.30.0080.01017.19
8.0.20.0140.00817.40
8.0.00.0100.00716.61
7.4.150.0100.01017.40
7.4.140.0120.01017.86
7.4.130.0070.01016.46
7.4.120.0080.00916.50
7.4.110.0060.01116.48
7.4.100.0150.00616.57
7.4.90.0160.00316.54
7.4.80.0150.00319.39
7.4.70.0060.01216.52
7.4.60.0030.01316.47
7.4.50.0090.00616.47
7.4.40.0070.01016.39
7.4.00.0060.00914.81
7.3.270.0090.00917.40
7.3.260.0090.01116.42
7.3.250.0110.00816.42
7.3.240.0080.01216.22
7.3.230.0070.01016.28
7.3.210.0160.00616.39
7.3.200.0120.00616.55
7.3.190.0120.00316.41
7.3.180.0030.01316.22
7.3.170.0060.00916.20
7.3.160.0100.00716.42
7.3.120.0060.01214.76
7.3.110.0090.00914.93
7.3.100.0030.00914.43
7.3.90.0070.00714.31
7.3.80.0040.01114.40
7.3.70.0000.01414.92
7.3.60.0040.00814.41
7.3.50.0070.00714.87
7.3.40.0130.00014.75
7.3.30.0000.01414.53
7.3.20.0030.01016.53
7.3.10.0060.00316.37
7.3.00.0100.00016.76
7.2.330.0080.01116.36
7.2.320.0150.00716.79
7.2.310.0090.00916.46
7.2.300.0100.01316.23
7.2.290.0030.01316.53
7.2.250.0080.00815.11
7.2.240.0000.01614.55
7.2.230.0030.00614.91
7.2.220.0070.00714.89
7.2.210.0030.00614.79
7.2.200.0000.01414.85
7.2.190.0030.01414.82
7.2.180.0030.01015.02
7.2.170.0070.00714.79
7.2.60.0060.00616.64
7.2.20.0560.01117.97
7.2.10.0440.01317.87
7.2.00.0450.00818.03
7.1.330.0060.00615.83
7.1.320.0030.00915.83
7.1.310.0030.01015.89
7.1.300.0040.01115.76
7.1.290.0000.01115.71
7.1.280.0030.01415.45
7.1.270.0040.01115.42
7.1.260.0000.01215.74
7.1.200.0070.00315.68
7.1.140.0500.01216.50
7.1.130.0410.01216.92
7.1.120.0470.00916.85
7.1.110.0390.00515.94
7.1.100.0350.01316.26
7.1.90.0450.00716.34
7.1.80.0270.01316.00
7.1.70.0760.01715.21
7.1.60.0410.01733.08
7.1.50.0470.01332.73
7.1.40.0430.00532.58
7.1.30.0460.02132.64
7.1.20.0410.01132.56
7.1.10.0310.01514.62
7.1.00.0250.01214.84
7.0.270.0480.00916.52
7.0.260.0460.01216.33
7.0.250.0380.01015.71
7.0.240.0570.00815.91
7.0.230.0250.00915.75
7.0.220.0270.01115.70
7.0.210.0280.01114.85
7.0.200.0590.00514.97
7.0.190.0570.00314.90
7.0.180.0370.00714.47
7.0.170.0390.01014.46
7.0.160.0330.01114.31
7.0.150.0370.00914.46
7.0.140.0360.00814.56
7.0.130.0340.00914.80
7.0.120.0300.01514.64
7.0.110.0440.01014.60
7.0.100.0330.00914.54
7.0.90.0330.01114.46
7.0.80.0320.00714.44
7.0.70.0350.00214.44
7.0.60.0240.01214.34
7.0.50.0290.00814.46
7.0.40.0280.00914.63
7.0.30.0310.01114.64
7.0.20.0230.01014.70
7.0.10.0270.00914.55
7.0.00.0290.00514.52
5.6.300.0160.07020.62
5.6.290.0130.06820.75
5.6.280.0220.06220.77
5.6.270.0150.06820.93
5.6.260.0100.07420.75
5.6.250.0130.06820.96
5.6.240.0050.07420.74
5.6.230.0170.07220.82
5.6.220.0100.06020.69
5.6.210.0160.05820.95
5.6.200.0200.06320.80
5.6.190.0120.07020.78
5.6.180.0120.07020.84
5.6.170.0050.06820.66
5.6.160.0150.07220.82
5.6.150.0150.06720.89
5.6.140.0140.07220.79
5.6.130.0160.06220.74
5.6.120.0210.06320.71
5.6.110.0130.06720.91
5.6.100.0110.07320.70
5.6.90.0180.07120.70
5.6.80.0180.06820.10
5.6.70.0150.06520.16
5.6.60.0120.06420.19
5.6.50.0180.06320.10
5.6.40.0110.07520.14
5.6.30.0160.06120.05
5.6.20.0080.07720.17
5.6.10.0140.06320.06
5.6.00.0120.06520.13
5.5.380.0160.07517.40
5.5.370.0190.06617.45
5.5.360.0030.08217.39
5.5.350.0060.07317.42
5.5.340.0070.05917.97
5.5.330.0070.05817.89
5.5.320.0220.04517.77
5.5.310.0160.06617.97
5.5.300.0260.06318.05
5.5.290.0070.08617.96
5.5.280.0140.08117.77
5.5.270.0260.04917.87
5.5.260.0140.06518.04
5.5.250.0220.06317.59
5.5.240.0130.07217.26
5.5.230.0070.08517.36
5.5.220.0130.06017.37
5.5.210.0150.04917.31
5.5.200.0220.06217.40
5.5.190.0160.06617.12
5.5.180.0110.07017.05
5.5.160.0270.05617.32
5.5.150.0100.07017.29
5.5.140.0100.07217.12
5.5.130.0060.05817.09
5.5.120.0260.05517.11
5.5.110.0100.05417.27
5.5.100.0100.06517.23
5.5.90.0160.06517.13
5.5.80.0160.06217.30
5.5.70.0180.04417.23
5.5.60.0070.06517.21
5.5.50.0210.05317.23
5.5.40.0140.05217.21
5.5.30.0070.07617.14
5.5.20.0140.07417.23
5.5.10.0160.04817.23
5.5.00.0060.07717.03
5.4.450.0140.05719.21
5.4.440.0110.05719.27
5.4.430.0170.06619.31
5.4.420.0130.08019.17
5.4.410.0190.06219.07
5.4.400.0070.05618.96
5.4.390.0070.07518.96
5.4.380.0030.07618.77
5.4.370.0100.05918.77
5.4.360.0130.06119.04
5.4.350.0160.07818.85
5.4.340.0270.05418.99
5.4.320.0180.07519.16
5.4.310.0100.05819.07
5.4.300.0190.06419.07
5.4.290.0070.07319.07
5.4.280.0070.07819.07
5.4.270.0130.04919.03
5.4.260.0100.07218.88
5.4.250.0130.05119.03
5.4.240.0230.05518.88
5.4.230.0190.06718.98
5.4.220.0130.07319.07
5.4.210.0100.05219.07
5.4.200.0030.08319.00
5.4.190.0160.04518.90
5.4.180.0170.06319.02
5.4.170.0170.04918.87
5.4.160.0030.06318.77
5.4.150.0070.05818.98
5.4.140.0170.06616.55
5.4.130.0130.04816.48
5.4.120.0070.05616.55
5.4.110.0030.08216.57
5.4.100.0130.05716.34
5.4.90.0190.06516.59
5.4.80.0220.04316.48
5.4.70.0220.04416.56
5.4.60.0100.06816.38
5.4.50.0100.05316.55
5.4.40.0090.06916.54
5.4.30.0070.05116.53
5.4.20.0200.06016.52
5.4.10.0230.05216.37
5.4.00.0100.05316.00
5.3.290.0130.05414.86
5.3.280.0190.05914.58
5.3.270.0100.07414.69
5.3.260.0070.07314.71
5.3.250.0160.07214.74
5.3.240.0160.06114.42
5.3.230.0250.05114.63
5.3.220.0170.05514.55
5.3.210.0100.07014.38
5.3.200.0170.04414.57
5.3.190.0070.05814.68
5.3.180.0030.06114.71
5.3.170.0100.07014.63
5.3.160.0130.06014.67
5.3.150.0160.04414.62
5.3.140.0100.05414.63
5.3.130.0070.07314.52
5.3.120.0130.07314.61
5.3.110.0200.06314.53
5.3.100.0140.04514.23
5.3.90.0100.05214.07
5.3.80.0100.05613.94
5.3.70.0160.04214.21
5.3.60.0160.05314.16
5.3.50.0130.04514.04
5.3.40.0100.05214.10
5.3.30.0130.06014.00
5.3.20.0100.04713.68
5.3.10.0130.06513.69
5.3.00.0140.05613.83
5.2.170.0170.03311.29
5.2.160.0030.05611.29
5.2.150.0110.05011.19
5.2.140.0070.05611.37
5.2.130.0130.03911.29
5.2.120.0060.04111.33
5.2.110.0130.04511.21
5.2.100.0110.05011.29
5.2.90.0100.05111.25
5.2.80.0130.05310.90
5.2.70.0130.04611.20
5.2.60.0150.05011.25
5.2.50.0130.05210.94
5.2.40.0030.06011.15
5.2.30.0140.05411.02
5.2.20.0100.05311.10
5.2.10.0100.03511.04
5.2.00.0030.04410.88
5.1.60.0090.04410.29
5.1.50.0030.0509.96
5.1.40.0100.04610.05
5.1.30.0070.03510.32
5.1.20.0130.03910.46
5.1.10.0060.04910.14
5.1.00.0060.04110.22
5.0.50.0000.0329.35
5.0.40.0060.0259.35
5.0.30.0040.0439.35
5.0.20.0030.0409.35
5.0.10.0030.0289.35
5.0.00.0060.0519.35
4.4.90.0090.0159.35
4.4.80.0040.0329.35
4.4.70.0090.0259.35
4.4.60.0100.0249.35
4.4.50.0100.0239.35
4.4.40.0030.0489.35
4.4.30.0100.0179.35
4.4.20.0100.0239.35
4.4.10.0000.0349.35
4.4.00.0070.0439.35
4.3.110.0030.0229.35
4.3.100.0000.0249.35
4.3.90.0030.0309.35
4.3.80.0070.0399.35
4.3.70.0030.0299.35
4.3.60.0070.0279.35
4.3.50.0060.0289.35
4.3.40.0030.0439.35
4.3.30.0000.0319.35
4.3.20.0070.0179.35
4.3.10.0040.0289.35
4.3.00.0000.0319.35