3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const BAZ = 10; } class Bar { public $foo = 1 + 1; public $bar = [ 1 + 1, 1 << 2, Foo::BAZ => "foo "."bar" ]; public $baseDir = __DIR__ . "/base"; } ?>

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.0160.00016.38
8.3.50.0070.01021.87
8.3.40.0140.00418.59
8.3.30.0140.00018.97
8.3.20.0070.00020.21
8.3.10.0000.00820.27
8.3.00.0080.00019.13
8.2.180.0040.01418.41
8.2.170.0040.01122.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0020.00526.16
8.2.120.0080.00021.22
8.2.110.0100.00022.21
8.2.100.0040.00717.78
8.2.90.0040.00417.63
8.2.80.0040.00417.97
8.2.70.0030.00617.68
8.2.60.0040.00417.92
8.2.50.0000.00818.10
8.2.40.0060.00320.59
8.2.30.0000.00819.31
8.2.20.0040.00417.56
8.2.10.0040.00417.80
8.2.00.0060.00317.54
8.1.280.0070.00725.92
8.1.270.0060.00323.61
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0080.00021.98
8.1.230.0070.00419.15
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0080.00017.13
8.1.190.0040.00817.00
8.1.180.0000.00818.10
8.1.170.0030.00618.53
8.1.160.0040.00421.87
8.1.150.0000.00718.66
8.1.140.0000.00717.25
8.1.130.0030.00317.75
8.1.120.0040.00417.38
8.1.110.0070.00017.32
8.1.100.0000.00717.31
8.1.90.0030.00317.21
8.1.80.0040.00417.20
8.1.70.0000.00817.22
8.1.60.0060.00617.46
8.1.50.0030.00617.26
8.1.40.0050.00217.36
8.1.30.0030.00617.50
8.1.20.0050.00317.49
8.1.10.0030.00617.28
8.1.00.0040.00417.20
8.0.300.0030.00519.48
8.0.290.0040.00416.58
8.0.280.0000.00818.30
8.0.270.0000.00817.18
8.0.260.0000.00617.07
8.0.250.0030.00316.79
8.0.240.0040.00416.84
8.0.230.0000.00716.78
8.0.220.0070.00016.64
8.0.210.0000.00716.73
8.0.200.0000.00716.79
8.0.190.0040.00416.88
8.0.180.0000.00716.71
8.0.170.0080.00016.70
8.0.160.0030.00316.65
8.0.150.0040.00416.71
8.0.140.0100.00016.63
8.0.130.0030.00313.16
8.0.120.0000.01016.61
8.0.110.0000.00816.72
8.0.100.0050.00216.79
8.0.90.0040.00416.71
8.0.80.0160.00616.66
8.0.70.0000.00816.77
8.0.60.0040.00416.63
8.0.50.0030.00316.63
8.0.30.0140.00616.89
8.0.20.0120.00817.40
8.0.10.0040.00416.88
8.0.00.0100.00816.51
7.4.330.0050.00015.00
7.4.320.0000.00716.36
7.4.300.0000.00716.42
7.4.290.0040.00416.38
7.4.280.0060.00316.45
7.4.270.0040.00316.22
7.4.260.0000.00716.35
7.4.250.0030.00516.31
7.4.240.0060.00116.46
7.4.230.0000.00716.27
7.4.220.0120.00616.55
7.4.210.0150.00016.40
7.4.200.0070.00016.41
7.4.160.0120.00316.35
7.4.150.0150.01117.40
7.4.140.0060.01217.86
7.4.130.0110.00916.21
7.4.120.0150.00516.37
7.4.110.0090.00616.39
7.4.100.0070.01016.50
7.4.90.0130.00316.29
7.4.80.0040.01819.39
7.4.70.0000.01816.23
7.4.60.0090.00916.38
7.4.50.0050.00316.40
7.4.40.0070.01016.42
7.4.30.0100.00616.47
7.4.00.0090.00614.66
7.3.330.0000.00512.95
7.3.320.0050.00012.97
7.3.310.0030.00315.98
7.3.300.0000.00616.04
7.3.290.0070.00716.15
7.3.280.0040.01116.16
7.3.270.0120.00617.40
7.3.260.0080.00816.41
7.3.250.0090.00816.16
7.3.240.0130.00916.10
7.3.230.0100.00716.39
7.3.210.0070.01616.44
7.3.200.0120.01019.39
7.3.190.0100.00716.45
7.3.180.0170.00016.20
7.3.170.0150.00616.36
7.3.160.0100.01016.28
7.2.330.0170.00316.22
7.2.320.0110.00616.23
7.2.310.0130.00316.46
7.2.300.0080.00816.47
7.2.290.0100.00616.46
7.2.60.0110.00416.68
7.2.00.0040.00819.26
7.1.200.0030.00515.30
7.1.100.0040.00717.85
7.1.70.0000.00917.06
7.1.60.0030.02119.61
7.1.50.0070.01416.84
7.1.00.0000.08022.43
7.0.200.0030.00516.41
7.0.140.0100.06721.95
7.0.60.0170.05019.85
7.0.50.0070.08017.96
7.0.40.0070.06720.14
7.0.30.0230.04320.14
7.0.20.0170.04020.30
7.0.10.0100.08020.24
7.0.00.0170.04720.16
5.6.280.0100.06321.13
5.6.210.0130.08020.69
5.6.200.0170.07018.19
5.6.190.0070.04020.63
5.6.180.0500.06720.39
5.6.170.0300.07320.50
5.6.160.0070.04720.57
5.6.150.0030.05318.15
5.6.140.0000.08718.23
5.6.130.0030.04018.11
5.6.120.0030.08720.99
5.6.110.0070.08721.11
5.6.100.0130.07721.13
5.6.90.0030.06321.06
5.6.80.0000.04320.47
5.5.350.0170.07720.38
5.5.340.0070.07017.95
5.5.330.0100.08320.43
5.5.320.0470.07020.42
5.5.310.0200.04320.24
5.5.300.0070.03317.94
5.5.290.0100.08318.06
5.5.280.0100.06020.73
5.5.270.0130.07720.75
5.5.260.0070.07320.89
5.5.250.0030.05020.68
5.5.240.0100.07020.26
5.4.450.0330.06319.31
5.4.440.0830.05019.47
5.4.430.0170.04719.42
5.4.420.0870.06719.16
5.4.410.0770.04319.03
5.4.400.0700.04318.87
5.4.390.0530.06719.14
5.4.380.0230.05318.73
5.4.370.0430.05318.46
5.4.360.0170.06318.61
5.4.350.0300.07718.61
5.4.340.0400.06318.49
5.4.320.0040.03812.51
5.4.310.0070.04212.51
5.4.300.0090.03612.51
5.4.290.0130.04012.51
5.4.280.0110.04212.40
5.4.270.0080.04012.41
5.4.260.0060.04312.41
5.4.250.0090.04312.40
5.4.240.0090.03612.41
5.4.230.0090.04412.40
5.4.220.0070.04012.39
5.4.210.0050.03512.40
5.4.200.0090.04612.40
5.4.190.0080.04412.39
5.4.180.0060.03612.39
5.4.170.0060.04412.40
5.4.160.0100.03812.39
5.4.150.0090.03512.39
5.4.140.0050.04312.09
5.4.130.0080.03712.06
5.4.120.0070.03312.03
5.4.110.0040.03712.03
5.4.100.0070.04212.03
5.4.90.0090.03812.02
5.4.80.0060.03812.02
5.4.70.0050.03512.02
5.4.60.0090.03212.02
5.4.50.0060.03512.02
5.4.40.0070.03912.01
5.4.30.0090.04012.00
5.4.20.0040.03912.00
5.4.10.0070.03312.00
5.4.00.0030.03811.50
5.3.290.0150.05012.80
5.3.280.0190.04512.71
5.3.270.0060.03812.72
5.3.260.0080.04712.72
5.3.250.0090.04612.72
5.3.240.0050.04112.71
5.3.230.0080.04212.71
5.3.220.0050.04112.68
5.3.210.0130.03212.68
5.3.200.0050.03712.68
5.3.190.0090.04212.67
5.3.180.0110.04112.68
5.3.170.0100.04212.67
5.3.160.0070.04412.68
5.3.150.0130.06412.67
5.3.140.0100.03812.66
5.3.130.0130.04812.65
5.3.120.0110.04112.66
5.3.110.0070.04512.66
5.3.100.0100.04412.12
5.3.90.0110.03512.10
5.3.80.0090.04012.09
5.3.70.0060.03612.09
5.3.60.0090.03812.08
5.3.50.0100.04412.02
5.3.40.0070.04212.02
5.3.30.0090.03511.98
5.3.20.0060.03611.76
5.3.10.0100.03411.73
5.3.00.0090.04011.71
5.2.170.0110.0469.21
5.2.160.0060.0469.21
5.2.150.0080.0409.21
5.2.140.0070.0319.21
5.2.130.0070.0409.17
5.2.120.0090.0299.17
5.2.110.0050.0369.18
5.2.100.0080.0329.18
5.2.90.0080.0299.17
5.2.80.0060.0349.17
5.2.70.0030.0329.17
5.2.60.0050.0329.13
5.2.50.0080.0269.10
5.2.40.0060.0329.07
5.2.30.0060.0369.04
5.2.20.0050.0329.04
5.2.10.0080.0258.94
5.2.00.0040.0368.80
5.1.60.0020.0288.08
5.1.50.0060.0288.08
5.1.40.0050.0238.07
5.1.30.0040.0328.41
5.1.20.0110.0278.44
5.1.10.0060.0338.16
5.1.00.0050.0298.16
5.0.50.0060.0246.64
5.0.40.0040.0226.50
5.0.30.0050.0396.31
5.0.20.0030.0246.28
5.0.10.0040.0216.25
5.0.00.0050.0316.25
4.4.90.0070.0234.77
4.4.80.0040.0164.76
4.4.70.0030.0154.75
4.4.60.0010.0174.75
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0010.0174.85
4.4.00.0020.0254.76
4.3.110.0030.0204.67
4.3.100.0040.0134.66
4.3.90.0040.0134.64
4.3.80.0060.0284.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0050.0274.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0030.0143.23
4.3.00.0030.0206.92

preferences:
49.11 ms | 401 KiB | 5 Q