3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { protected $prop = "foo"; } class bar { use foo; protected $prop = "bar"; public function show() { echo $this->prop; } } $x = new bar; $x->show();

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.0100.00316.63
8.3.50.0060.01021.99
8.3.40.0040.01118.50
8.3.30.0140.00718.84
8.3.20.0050.00320.41
8.3.10.0100.00023.65
8.3.00.0080.00019.38
8.2.180.0070.01416.38
8.2.170.0170.00322.96
8.2.160.0140.00020.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00422.31
8.2.110.0070.00420.52
8.2.100.0040.00717.78
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0030.00517.61
8.2.60.0050.00517.80
8.2.50.0000.00818.07
8.2.40.0050.00318.16
8.2.30.0040.00418.07
8.2.20.0040.00417.50
8.2.10.0040.00419.69
8.2.00.0070.00317.61
8.1.280.0070.00725.92
8.1.270.0030.00623.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0110.00017.42
8.1.220.0070.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0040.00417.40
8.1.180.0060.00318.10
8.1.170.0030.00518.71
8.1.160.0000.00721.93
8.1.150.0000.00718.55
8.1.140.0040.00417.34
8.1.130.0000.00717.77
8.1.120.0040.00717.32
8.1.110.0040.00417.39
8.1.100.0000.00817.41
8.1.90.0050.00217.30
8.1.80.0000.00717.30
8.1.70.0040.00417.31
8.1.60.0030.00517.42
8.1.50.0090.00017.36
8.1.40.0040.00417.46
8.1.30.0030.00517.52
8.1.20.0000.00717.56
8.1.10.0000.00717.42
8.1.00.0040.00417.36
8.0.300.0030.00618.77
8.0.290.0030.00616.63
8.0.280.0070.00018.26
8.0.270.0030.00317.07
8.0.260.0070.00017.07
8.0.250.0030.00316.98
8.0.240.0000.00717.00
8.0.230.0050.00316.95
8.0.220.0030.00316.86
8.0.210.0030.00316.94
8.0.200.0040.00416.84
8.0.190.0070.00016.96
8.0.180.0070.00016.92
8.0.170.0070.00016.90
8.0.160.0000.00816.88
8.0.150.0070.00016.77
8.0.140.0040.00416.84
8.0.130.0050.00013.28
8.0.120.0050.00316.88
8.0.110.0050.00216.92
8.0.100.0000.00816.77
8.0.90.0040.00416.79
8.0.80.0070.01416.89
8.0.70.0040.00416.79
8.0.60.0040.00416.88
8.0.50.0000.00817.01
8.0.30.0110.00717.09
8.0.20.0080.01117.40
8.0.10.0000.00716.96
8.0.00.0100.00916.72
7.4.330.0000.00515.00
7.4.320.0030.00316.50
7.4.300.0040.00416.55
7.4.290.0040.00416.43
7.4.280.0040.00416.38
7.4.270.0000.00816.45
7.4.260.0030.00316.42
7.4.250.0000.00716.41
7.4.240.0000.00716.42
7.4.230.0040.00416.43
7.4.220.0100.00716.46
7.4.210.0100.00616.54
7.4.200.0030.00316.64
7.4.190.0030.00316.35
7.4.160.0130.00316.64
7.4.150.0070.01117.40
7.4.140.0070.01017.86
7.4.130.0080.00916.40
7.4.120.0120.00516.43
7.4.110.0100.01316.57
7.4.100.0150.00316.36
7.4.90.0120.00616.46
7.4.80.0070.01019.39
7.4.70.0070.01016.48
7.4.60.0060.01016.44
7.4.50.0050.00316.58
7.4.40.0060.00922.77
7.4.30.0090.00916.58
7.4.00.0100.00714.87
7.3.330.0000.00513.05
7.3.320.0000.00813.27
7.3.310.0000.00816.29
7.3.300.0060.00016.29
7.3.290.0030.01316.27
7.3.280.0070.00916.28
7.3.270.0170.00017.40
7.3.260.0060.01116.15
7.3.250.0070.01216.38
7.3.240.0060.01016.29
7.3.230.0080.00816.39
7.3.210.0100.00716.28
7.3.200.0100.01319.39
7.3.190.0070.01016.23
7.3.180.0100.01016.36
7.3.170.0000.01616.39
7.3.160.0030.01316.44
7.3.120.0090.00914.57
7.3.10.0070.00716.05
7.3.00.0030.01316.24
7.2.330.0070.01016.54
7.2.320.0060.01316.63
7.2.310.0080.00816.61
7.2.300.0000.01716.59
7.2.290.0100.00616.32
7.2.130.0100.00616.33
7.2.120.0120.00316.39
7.2.110.0030.01016.61
7.2.100.0030.01116.42
7.2.90.0030.01016.28
7.2.80.0090.00916.46
7.2.70.0140.00716.21
7.2.60.0020.01216.53
7.2.50.0120.00916.16
7.2.40.0150.00916.56
7.2.30.0140.00416.71
7.2.20.0060.00916.43
7.2.10.0000.01416.21
7.2.00.0030.01017.89
7.1.250.0090.00615.18
7.1.200.0070.00415.50
7.1.100.0040.00418.07
7.1.70.0110.00417.02
7.1.60.0130.01319.46
7.1.50.0280.01034.68
7.1.00.0070.07322.54
7.0.200.0000.00816.39
7.0.140.0100.06322.10
7.0.60.0100.08020.07
7.0.50.0070.08017.86
7.0.40.0170.08020.11
7.0.30.0330.05020.20
7.0.20.0200.04020.10
7.0.10.0130.08020.09
7.0.00.0000.08720.23
5.6.280.0070.06721.04
5.6.210.0130.05020.59
5.6.200.0000.05018.29
5.6.190.0100.07720.77
5.6.180.0230.08020.77
5.6.170.0200.03720.47
5.6.160.0100.04020.54
5.6.150.0100.07718.21
5.6.140.0030.04718.28
5.6.130.0000.05018.19
5.6.120.0030.04321.13
5.6.110.0100.08021.06
5.6.100.0070.04021.13
5.6.90.0100.08021.01
5.6.80.0000.09020.39
5.6.70.3300.04320.50
5.5.350.0100.08320.50
5.5.340.0000.04017.99
5.5.330.0070.04320.42
5.5.320.0270.05320.40
5.5.310.0430.06720.35
5.5.300.0100.07718.07
5.5.290.0100.04018.02
5.5.280.0070.08020.90
5.5.270.0070.05720.64
5.5.260.0100.08020.77
5.5.250.0100.06020.70
5.5.240.0270.07320.24
5.4.450.0600.06719.55
5.4.440.0630.06019.18
5.4.430.0570.06019.46
5.4.420.0130.05319.62
5.4.410.0700.06019.47
5.4.400.0130.05019.30
5.4.390.0530.05319.24
5.4.380.0270.05718.79
5.4.370.0370.04018.70
5.4.360.0330.05718.47
5.4.350.0330.05318.80
5.4.340.0400.06018.79
5.4.320.0030.04612.50
5.4.310.0070.04312.49
5.4.300.0060.03712.50
5.4.290.0070.05012.48
5.4.280.0050.06012.38
5.4.270.0110.04412.38
5.4.260.0120.05212.38
5.4.250.0100.06312.38
5.4.240.0090.04512.38
5.4.230.0090.04412.37
5.4.220.0100.04312.37
5.4.210.0080.05512.37
5.4.200.0080.05412.37
5.4.190.0060.05612.37
5.4.180.0120.05012.37
5.4.170.0110.05212.38
5.4.160.0100.05212.38
5.4.150.0100.05012.37
5.4.140.0080.03812.06
5.4.130.0060.03812.04
5.4.120.0050.03712.00
5.4.110.0070.03511.99
5.4.100.0080.03412.00
5.4.90.0070.04812.00
5.4.80.0110.04612.00
5.4.70.0060.04912.00
5.4.60.0080.03411.99
5.4.50.0070.03512.00
5.4.40.0080.03511.98
5.4.30.0070.03711.97
5.4.20.0070.05211.97
5.4.10.0070.04511.98
5.4.00.0070.05111.47
5.3.290.0080.04012.80
5.3.280.0090.04112.70
5.3.270.0090.03712.72
5.3.260.0110.05412.72
5.3.250.0130.04412.72
5.3.240.0080.04212.72
5.3.230.0120.04712.71
5.3.220.0060.04512.68
5.3.210.0040.04112.68
5.3.200.0100.03312.68
5.3.190.0110.04312.68
5.3.180.0060.03712.67
5.3.170.0060.04012.67
5.3.160.0090.03712.67
5.3.150.0150.05112.67
5.3.140.0120.04012.66
5.3.130.0150.05212.66
5.3.120.0090.06012.66
5.3.110.0120.04712.65
5.3.100.0090.04412.12
5.3.90.0110.04712.08
5.3.80.0120.04612.07
5.3.70.0060.04012.08
5.3.60.0080.03712.07
5.3.50.0070.03612.00
5.3.40.0080.04812.00
5.3.30.0090.04711.95
5.3.20.0090.05211.73
5.3.10.0080.04811.70
5.3.00.0120.04811.68
5.2.170.0090.0409.18
5.2.160.0070.0369.18
5.2.150.0040.0369.18
5.2.140.0050.0329.18
5.2.130.0020.0329.14
5.2.120.0060.0429.14
5.2.110.0060.0319.15
5.2.100.0040.0309.14
5.2.90.0060.0319.14
5.2.80.0060.0449.14
5.2.70.0100.0279.14
5.2.60.0060.0349.09
5.2.50.0080.0419.05
5.2.40.0100.0389.03
5.2.30.0100.0429.02
5.2.20.0060.0429.01
5.2.10.0100.0398.93
5.2.00.0050.0438.78
5.1.60.0050.0368.07
5.1.50.0070.0358.06
5.1.40.0050.0368.05
5.1.30.0050.0388.40
5.1.20.0080.0268.41
5.1.10.0030.0278.14
5.1.00.0070.0238.14
5.0.50.0040.0206.63
5.0.40.0030.0206.48
5.0.30.0050.0316.29
5.0.20.0030.0206.26
5.0.10.0050.0236.24
5.0.00.0070.0326.23
4.4.90.0030.0154.78
4.4.80.0010.0184.75
4.4.70.0070.0164.75
4.4.60.0040.0194.75
4.4.50.0030.0154.77
4.4.40.0030.0264.70
4.4.30.0030.0164.76
4.4.20.0060.0134.85
4.4.10.0050.0144.85
4.4.00.0040.0254.76
4.3.110.0040.0154.67
4.3.100.0040.0154.66
4.3.90.0010.0174.63
4.3.80.0040.0244.58
4.3.70.0020.0164.63
4.3.60.0030.0154.63
4.3.50.0030.0164.62
4.3.40.0030.0244.54
4.3.30.0010.0173.29
4.3.20.0020.0163.26
4.3.10.0030.0153.22
4.3.00.0170.01010.31

preferences:
52.39 ms | 401 KiB | 5 Q