3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Turn off all error reporting error_reporting(0); // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); // Reporting E_NOTICE can be good too (to report uninitialized // variables or catch variable name misspellings ...) error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // Report all errors except E_NOTICE error_reporting(E_ALL & ~E_NOTICE); // Report all PHP errors (see changelog) error_reporting(E_ALL); // Report all PHP errors error_reporting(-1);

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.3.60.0130.00618.28
8.3.50.0110.00721.08
8.3.40.0090.00618.73
8.3.30.0150.00018.91
8.3.20.0000.00720.34
8.3.10.0000.00723.54
8.3.00.0050.00319.23
8.2.180.0110.01116.32
8.2.170.0040.01122.96
8.2.160.0060.00820.44
8.2.150.0000.00724.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.27
8.2.110.0000.00920.27
8.2.100.0110.00017.66
8.2.90.0080.00017.97
8.2.80.0080.00017.97
8.2.70.0080.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0050.00319.64
8.2.30.0070.00017.83
8.2.20.0000.00717.55
8.2.10.0070.00017.98
8.2.00.0080.00017.46
8.1.280.0170.00325.92
8.1.270.0050.00323.87
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.19
8.1.230.0030.00720.90
8.1.220.0060.00317.74
8.1.210.0040.00418.84
8.1.200.0060.00316.86
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.53
8.1.160.0040.00421.86
8.1.150.0070.00018.70
8.1.140.0040.00417.33
8.1.130.0070.00017.75
8.1.120.0070.00017.35
8.1.110.0080.00017.34
8.1.100.0040.00317.21
8.1.90.0040.00417.30
8.1.80.0070.00017.32
8.1.70.0060.00017.21
8.1.60.0030.00617.40
8.1.50.0080.00017.26
8.1.40.0030.00517.39
8.1.30.0040.00417.54
8.1.20.0030.00617.52
8.1.10.0040.00417.25
8.1.00.0080.00017.33
8.0.300.0000.00820.23
8.0.290.0060.00316.63
8.0.280.0000.00718.27
8.0.270.0000.00717.08
8.0.260.0030.00317.00
8.0.250.0030.00316.70
8.0.240.0070.00016.71
8.0.230.0050.00216.72
8.0.220.0040.00416.74
8.0.210.0080.00016.64
8.0.200.0000.00716.76
8.0.190.0040.00416.70
8.0.180.0000.00716.75
8.0.170.0050.00316.77
8.0.160.0040.00416.76
8.0.150.0030.00616.76
8.0.140.0060.00316.61
8.0.130.0000.00613.22
8.0.120.0000.00716.61
8.0.110.0000.00716.77
8.0.100.0000.00716.63
8.0.90.0070.00016.84
8.0.80.0090.01216.75
8.0.70.0040.00416.79
8.0.60.0000.00816.71
8.0.50.0040.00416.63
8.0.30.0110.00816.79
8.0.20.0090.00917.40
8.0.10.0040.00416.71
8.0.00.0090.00816.62
7.4.330.0030.00315.03
7.4.320.0000.00616.46
7.4.300.0060.00016.43
7.4.290.0050.00216.37
7.4.280.0050.00316.45
7.4.270.0040.00416.47
7.4.260.0000.00716.50
7.4.250.0040.00416.40
7.4.240.0030.00316.45
7.4.230.0030.00316.44
7.4.220.0070.01116.56
7.4.210.0030.01016.42
7.4.200.0030.00316.49
7.4.160.0150.00316.17
7.4.150.0090.01217.40
7.4.140.0100.01117.86
7.4.130.0130.00616.28
7.4.120.0110.00616.28
7.4.110.0100.01316.48
7.4.100.0090.00816.14
7.4.90.0070.01016.27
7.4.80.0030.01419.39
7.4.70.0100.01016.30
7.4.60.0090.00616.23
7.4.50.0060.00316.41
7.4.40.0080.00816.30
7.4.30.0070.01016.37
7.4.00.0040.01114.78
7.3.330.0000.00512.89
7.3.320.0060.00212.82
7.3.310.0030.00316.21
7.3.300.0000.00715.98
7.3.290.0070.00816.13
7.3.280.0080.00916.15
7.3.270.0120.00617.40
7.3.260.0050.01416.36
7.3.250.0100.00716.21
7.3.240.0070.01616.21
7.3.230.0000.01716.39
7.3.210.0090.00916.35
7.3.200.0130.00319.39
7.3.190.0090.01316.11
7.3.180.0100.00516.27
7.3.170.0030.01316.45
7.3.160.0070.01416.13
7.2.330.0100.00716.49
7.2.320.0100.00716.50
7.2.310.0050.01116.21
7.2.300.0130.00716.48
7.2.290.0090.00916.22
7.2.60.0090.00616.96
7.2.50.0100.00316.61
7.1.200.0030.01015.64
7.1.100.0060.00618.11
7.1.70.0000.00817.05
7.1.60.0030.02119.19
7.1.50.0110.01116.68
7.1.00.0100.07022.39
7.0.200.0060.00316.27
7.0.140.0070.07022.08
7.0.60.0130.07319.89
7.0.50.0070.05017.79
7.0.40.0070.08719.90
7.0.30.0470.04020.31
7.0.20.0300.08320.17
7.0.10.0030.04320.16
7.0.00.0070.04020.09
5.6.280.0000.07721.12
5.6.210.0070.07720.51
5.6.200.0030.04018.12
5.6.190.0070.04020.61
5.6.180.0030.05020.43
5.6.170.0400.07020.54
5.6.160.0030.09020.46
5.6.150.0030.05018.09
5.6.140.0100.07718.10
5.6.130.0070.08318.19
5.6.120.0070.04720.96
5.6.110.0000.05321.04
5.6.100.0030.05021.13
5.6.90.0100.08020.96
5.6.80.0130.07320.38
5.6.70.4570.03720.38
5.5.350.0230.07720.46
5.5.340.0030.07717.99
5.5.330.0030.07320.28
5.5.320.0330.07020.41
5.5.310.0230.04020.26
5.5.300.0000.09018.02
5.5.290.0100.03317.89
5.5.280.0100.06720.65
5.5.270.0100.04720.81
5.5.260.0130.07720.72
5.5.250.0030.04720.56
5.5.240.0270.07720.26
5.4.450.0330.07019.48
5.4.440.0770.05719.48
5.4.430.0700.06019.13
5.4.420.0570.06719.31
5.4.410.0070.06019.13
5.4.400.0570.04719.28
5.4.390.0530.08018.95
5.4.380.0730.05019.32
5.4.370.0670.05018.95
5.4.360.0470.06319.30
5.4.350.0770.06719.14
5.4.340.0090.04011.97
5.4.320.0060.04212.46
5.4.310.0070.03612.45
5.4.300.0060.04212.45
5.4.290.0070.03612.45
5.4.280.0080.03312.35
5.4.270.0080.04212.35
5.4.260.0040.04312.35
5.4.250.0080.03812.35
5.4.240.0040.03912.35
5.4.230.0090.04312.34
5.4.220.0050.03612.34
5.4.210.0070.03812.34
5.4.200.0070.03812.34
5.4.190.0070.04012.34
5.4.180.0050.03612.34
5.4.170.0050.03712.35
5.4.160.0100.03212.34
5.4.150.0080.03412.34
5.4.140.0100.03312.02
5.4.130.0050.03712.02
5.4.120.0040.03711.97
5.4.110.0050.03811.97
5.4.100.0050.04011.96
5.4.90.0040.04311.96
5.4.80.0060.04011.97
5.4.70.0050.03411.96
5.4.60.0070.04011.96
5.4.50.0100.04011.96
5.4.40.0040.04011.95
5.4.30.0080.03511.95
5.4.20.0060.03411.95
5.4.10.0100.03311.95
5.4.00.0040.03811.44
5.3.290.0090.03612.80
5.3.280.0080.03512.71
5.3.270.0080.03712.72
5.3.260.0060.03812.72
5.3.250.0050.03712.72
5.3.240.0040.03812.72
5.3.230.0050.03912.71
5.3.220.0090.03412.68
5.3.210.0060.03912.68
5.3.200.0070.03612.68
5.3.190.0080.03512.68
5.3.180.0080.03512.68
5.3.170.0040.03812.67
5.3.160.0020.04012.68
5.3.150.0090.04012.67
5.3.140.0060.04412.66
5.3.130.0070.03712.66
5.3.120.0040.04012.66
5.3.110.0060.04412.66
5.3.100.0090.03312.12
5.3.90.0060.03512.08
5.3.80.0030.03812.08
5.3.70.0080.03812.08
5.3.60.0100.03812.07
5.3.50.0030.03812.00
5.3.40.0040.03812.00
5.3.30.0080.03311.95
5.3.20.0080.03711.72
5.3.10.0040.04211.69
5.3.00.0040.03911.68
5.2.170.0080.0339.18
5.2.160.0080.0329.18
5.2.150.0040.0319.18
5.2.140.0040.0309.17
5.2.130.0040.0299.13
5.2.120.0030.0309.13
5.2.110.0070.0299.14
5.2.100.0020.0309.14
5.2.90.0040.0309.14
5.2.80.0040.0329.14
5.2.70.0060.0369.14
5.2.60.0060.0299.09
5.2.50.0050.0299.05
5.2.40.0080.0339.03
5.2.30.0030.0329.01
5.2.20.0050.0279.00
5.2.10.0040.0288.94
5.2.00.0030.0298.80
5.1.60.0070.0208.08
5.1.50.0050.0258.07
5.1.40.0030.0288.05
5.1.30.0060.0288.41
5.1.20.0050.0288.43
5.1.10.0010.0288.15
5.1.00.0040.0278.15
5.0.50.0020.0226.63
5.0.40.0030.0206.49
5.0.30.0040.0306.30
5.0.20.0020.0206.27
5.0.10.0020.0216.25
5.0.00.0070.0296.24
4.4.90.0010.0194.78
4.4.80.0020.0184.76
4.4.70.0030.0164.76
4.4.60.0030.0154.76
4.4.50.0010.0174.77
4.4.40.0040.0244.70
4.4.30.0040.0144.75
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0050.0234.76
4.3.110.0030.0164.67
4.3.100.0040.0134.67
4.3.90.0010.0164.64
4.3.80.0040.0234.58
4.3.70.0020.0154.63
4.3.60.0040.0124.63
4.3.50.0050.0134.62
4.3.40.0020.0264.54
4.3.30.0020.0163.29
4.3.20.0010.0193.27
4.3.10.0030.0143.23
4.3.00.0070.0236.68

preferences:
41.46 ms | 401 KiB | 5 Q