3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class X { function bar() { var_dump(get_called_class()); } } class Y { function foo() { X::bar(); } } class Z extends X { function foo() { X::bar(); } } (new Y)->foo(); (new Z)->foo();

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.0090.00618.43
8.3.50.0120.00822.82
8.3.40.0100.01019.02
8.3.30.0140.00018.97
8.3.20.0080.00020.21
8.3.10.0040.00423.65
8.3.00.0030.00619.51
8.2.180.0000.01516.50
8.2.170.0100.01022.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0040.00420.89
8.2.110.0030.00619.39
8.2.100.0120.00018.16
8.2.90.0070.00319.01
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0070.00020.42
8.2.30.0040.00417.88
8.2.20.0030.00517.74
8.2.10.0040.00417.98
8.2.00.0000.00717.54
8.1.280.0140.00425.92
8.1.270.0130.00623.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.46
8.1.230.0000.01217.52
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00716.98
8.1.190.0040.00417.50
8.1.180.0080.00018.10
8.1.170.0040.00418.71
8.1.160.0050.00322.17
8.1.150.0040.00418.66
8.1.140.0030.00517.28
8.1.130.0070.00017.77
8.1.120.0030.00417.22
8.1.110.0050.00317.37
8.1.100.0000.00717.37
8.1.90.0070.00017.22
8.1.80.0050.00317.23
8.1.70.0030.00517.20
8.1.60.0030.00617.49
8.1.50.0000.00817.48
8.1.40.0040.00417.45
8.1.30.0000.00817.41
8.1.20.0050.00317.61
8.1.10.0050.00317.47
8.1.00.0070.00017.46
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0040.00417.18
8.0.260.0000.00617.24
8.0.250.0030.00316.86
8.0.240.0070.00016.84
8.0.230.0030.00416.90
8.0.220.0000.00716.88
8.0.210.0030.00316.78
8.0.200.0030.00316.91
8.0.190.0040.00416.95
8.0.180.0030.00316.95
8.0.170.0030.00516.81
8.0.160.0040.00416.85
8.0.150.0040.00416.84
8.0.140.0030.00516.79
8.0.130.0040.00413.32
8.0.120.0000.00816.87
8.0.110.0040.00416.77
8.0.100.0000.00916.84
8.0.90.0020.00516.94
8.0.80.0090.00616.88
8.0.70.0030.00616.75
8.0.60.0040.00416.76
8.0.50.0000.00716.91
8.0.30.0100.01116.94
8.0.20.0100.01017.40
8.0.10.0050.00316.95
8.0.00.0100.00716.81
7.4.330.0020.00215.00
7.4.320.0000.00616.31
7.4.300.0000.00616.32
7.4.290.0030.00316.53
7.4.280.0000.00716.56
7.4.270.0070.00016.50
7.4.260.0000.00816.53
7.4.250.0070.00016.34
7.4.240.0060.00216.45
7.4.230.0000.00716.42
7.4.220.0030.01516.32
7.4.210.0140.00016.50
7.4.200.0040.00416.44
7.4.160.0040.01316.56
7.4.150.0070.01717.40
7.4.140.0090.00717.86
7.4.130.0080.01016.46
7.4.120.0080.00916.55
7.4.110.0120.01216.37
7.4.100.0060.01216.44
7.4.90.0030.01416.39
7.4.80.0090.00919.39
7.4.70.0030.01316.61
7.4.60.0100.00616.37
7.4.50.0040.00416.64
7.4.40.0130.00316.41
7.4.30.0090.00616.49
7.4.00.0050.01214.67
7.3.330.0040.00413.24
7.3.320.0030.00313.23
7.3.310.0040.00416.30
7.3.300.0030.00316.35
7.3.290.0030.01716.32
7.3.280.0050.01116.33
7.3.270.0130.00717.40
7.3.260.0160.00916.41
7.3.250.0120.00616.26
7.3.240.0090.01216.30
7.3.230.0100.00616.39
7.3.210.0040.01216.23
7.3.200.0090.01219.39
7.3.190.0070.01516.25
7.3.180.0110.00616.34
7.3.170.0080.00816.30
7.3.160.0140.00316.46
7.3.120.0030.01414.77
7.3.110.0160.00314.71
7.3.100.0060.00614.59
7.3.90.0100.00014.48
7.3.80.0060.00614.94
7.3.70.0050.00514.76
7.3.60.0090.00014.85
7.3.50.0070.00414.64
7.3.40.0090.00314.74
7.3.30.0090.00614.86
7.3.20.0000.01416.51
7.3.10.0060.00616.38
7.3.00.0100.00316.49
7.2.330.0140.01016.64
7.2.320.0140.00416.65
7.2.310.0100.01016.63
7.2.300.0110.00616.42
7.2.290.0080.00816.45
7.2.250.0120.00614.77
7.2.240.0040.01514.94
7.2.230.0120.00615.10
7.2.220.0090.00015.08
7.2.210.0030.01115.03
7.2.200.0000.01214.73
7.2.190.0110.00714.62
7.2.180.0080.00414.83
7.2.170.0050.00514.52
7.2.60.0030.01016.75
7.2.00.0040.01419.40
7.1.330.0150.00015.41
7.1.320.0090.00615.87
7.1.310.0090.00615.70
7.1.300.0060.00615.46
7.1.290.0030.00915.58
7.1.280.0100.00315.79
7.1.270.0070.00715.39
7.1.260.0040.00415.61
7.1.200.0130.00015.70
7.1.100.0080.00318.13
7.1.70.0130.00317.12
7.1.60.0110.01419.46
7.1.50.0070.01816.88
7.1.00.0100.07022.28
7.0.200.0040.00416.70
7.0.140.0000.07321.96
7.0.60.0130.07320.02
7.0.50.0030.08317.97
7.0.40.0070.08720.18
7.0.30.0630.06020.24
7.0.20.0270.06320.25
7.0.10.0170.08320.19
7.0.00.0100.08320.25
5.6.280.0000.07720.92
5.6.210.0130.06720.71
5.6.200.0130.07718.19
5.6.190.0030.05020.57
5.6.180.3030.03720.48
5.6.170.0230.05020.45
5.6.160.0030.08720.43
5.6.150.0030.04018.17
5.6.140.0070.08318.18
5.6.130.0070.04018.18
5.6.120.0200.06321.15
5.6.110.0070.05721.10
5.6.100.0070.05021.02
5.6.90.0200.07020.98
5.6.80.0070.08720.54
5.6.70.4630.04020.28
5.5.350.0200.05720.45
5.5.340.0070.08318.00
5.5.330.0070.07720.31
5.5.320.0470.07020.24
5.5.310.0400.04320.51
5.5.300.0070.03317.98
5.5.290.0100.07018.05
5.5.280.0170.04320.93
5.5.270.0000.05320.68
5.5.260.0100.08020.77
5.5.250.0070.07720.59
5.5.240.0130.04320.06
5.4.450.1300.04719.20
5.4.440.0600.03319.49
5.4.430.0330.05019.48
5.4.420.1170.03319.39
5.4.410.0300.03319.23
5.4.400.0130.03319.07
5.4.390.0100.05319.02
5.4.380.0300.05318.59
5.4.370.0300.06018.75
5.4.360.0670.04318.59
5.4.350.0230.06718.74
5.4.340.0330.06018.72
5.4.320.0040.03812.51
5.4.310.0080.03612.50
5.4.300.0060.03712.51
5.4.290.0080.03612.50
5.4.280.0060.03612.40
5.4.270.0040.03812.40
5.4.260.0080.03612.40
5.4.250.0040.03912.40
5.4.240.0030.03812.39
5.4.230.0070.03612.39
5.4.220.0060.03612.39
5.4.210.0030.03912.39
5.4.200.0090.03412.39
5.4.190.0060.03612.38
5.4.180.0030.03912.39
5.4.170.0050.03712.40
5.4.160.0070.03412.39
5.4.150.0080.04012.39
5.4.140.0050.05912.08
5.4.130.0090.03312.06
5.4.120.0080.03612.02
5.4.110.0050.03512.01
5.4.100.0060.03412.02
5.4.90.0050.04612.01
5.4.80.0060.03712.01
5.4.70.0030.03812.02
5.4.60.0080.03212.01
5.4.50.0060.03612.01
5.4.40.0050.03612.00
5.4.30.0070.03411.99
5.4.20.0050.03712.00
5.4.10.0040.03512.00
5.4.00.0080.03311.48
5.3.290.0080.04212.80
5.3.280.0050.03912.71
5.3.270.0050.03912.73
5.3.260.0080.04612.72
5.3.250.0080.03412.72
5.3.240.0070.03512.72
5.3.230.0090.03712.71
5.3.220.0030.04012.68
5.3.210.0030.04112.68
5.3.200.0040.03712.68
5.3.190.0050.03712.68
5.3.180.0070.03512.68
5.3.170.0080.03412.67
5.3.160.0070.03512.67
5.3.150.0070.03812.67
5.3.140.0060.03512.66
5.3.130.0050.03912.66
5.3.120.0110.03312.66
5.3.110.0040.04112.66
5.3.100.0020.04012.12
5.3.90.0050.04212.11
5.3.80.0060.03612.10
5.3.70.0050.03612.10
5.3.60.0090.03312.08
5.3.50.0060.03612.03
5.3.40.0090.03412.03
5.3.30.0050.03611.99
5.3.20.0060.03311.77
5.3.10.0060.03611.74
5.3.00.0040.03811.72
5.2.170.0050.0299.23
5.2.160.0040.0299.23
5.2.150.0010.0339.23
5.2.140.0050.0309.23
5.2.130.0040.0349.19
5.2.120.0090.0239.19
5.2.110.0030.0329.19
5.2.100.0060.0289.19
5.2.90.0040.0369.19
5.2.80.0050.0289.18
5.2.70.0080.0269.18
5.2.60.0050.0299.14
5.2.50.0030.0309.10
5.2.40.0050.0329.08
5.2.30.0020.0329.05
5.2.20.0050.0289.05
5.2.10.0060.0358.95
5.2.00.0030.0338.81
5.1.60.0080.0208.09
5.1.50.0030.0258.09
5.1.40.0050.0238.07
5.1.30.0060.0278.43
5.1.20.0020.0278.45
5.1.10.0050.0248.17
5.1.00.0080.0208.17
5.0.50.0030.0256.65
5.0.40.0020.0206.51
5.0.30.0040.0296.32
5.0.20.0050.0176.29
5.0.10.0030.0266.26
5.0.00.0050.0306.26
4.4.90.0040.0144.78
4.4.80.0020.0154.75
4.4.70.0020.0154.75
4.4.60.0060.0114.76
4.4.50.0030.0144.77
4.4.40.0040.0274.71
4.4.30.0030.0194.76
4.4.20.0040.0184.84
4.4.10.0040.0174.85
4.4.00.0020.0284.76
4.3.110.0020.0204.67
4.3.100.0030.0204.66
4.3.90.0030.0174.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0020.0184.63
4.3.40.0010.0264.54
4.3.30.0020.0183.31
4.3.20.0010.0193.29
4.3.10.0030.0163.25
4.3.00.0100.01315.66

preferences:
51.49 ms | 401 KiB | 5 Q