3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function get_self() { return new self(); } public static function get_static() { return new static(); } } class B extends A { public static function get_self() { return new self(); } public static function get_static() { return new static(); } } class C extends B { public static function get_self() { return new self(); } public static function get_static() { return new static(); } } echo get_class(C::get_self()); // A echo get_class(C::get_static()); // B

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.0030.01718.20
8.3.50.0140.00321.93
8.3.40.0140.00318.80
8.3.30.0140.00018.96
8.3.20.0070.00020.20
8.3.10.0080.00020.39
8.3.00.0040.00419.01
8.2.180.0140.00316.63
8.2.170.0090.00622.96
8.2.160.0090.00620.24
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.18
8.2.110.0030.00620.56
8.2.100.0100.00018.09
8.2.90.0000.00819.28
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0070.00317.80
8.2.50.0110.00018.07
8.2.40.0040.00419.75
8.2.30.0090.00017.98
8.2.20.0090.00017.59
8.2.10.0000.00817.89
8.2.00.0000.00717.54
8.1.280.0070.00725.92
8.1.270.0060.00322.21
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00023.79
8.1.230.0090.00319.22
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0050.00316.98
8.1.180.0000.00918.10
8.1.170.0040.00418.46
8.1.160.0000.00721.82
8.1.150.0070.00018.67
8.1.140.0030.00617.20
8.1.130.0060.00017.77
8.1.120.0000.00717.41
8.1.110.0000.00717.36
8.1.100.0070.00017.22
8.1.90.0070.00017.30
8.1.80.0000.00717.36
8.1.70.0000.00717.25
8.1.60.0040.00417.53
8.1.50.0040.00417.41
8.1.40.0040.00417.47
8.1.30.0040.00417.48
8.1.20.0040.00417.50
8.1.10.0000.00817.44
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.34
8.0.270.0070.00017.23
8.0.260.0040.00418.38
8.0.250.0030.00316.83
8.0.240.0000.00716.92
8.0.230.0000.00716.77
8.0.220.0070.00016.71
8.0.210.0040.00316.67
8.0.200.0000.00716.87
8.0.190.0040.00416.88
8.0.180.0040.00416.88
8.0.170.0000.00816.77
8.0.160.0030.00316.81
8.0.150.0000.00816.64
8.0.140.0030.00316.69
8.0.130.0000.00513.14
8.0.120.0050.00316.70
8.0.110.0040.00416.73
8.0.100.0030.00316.66
8.0.90.0000.00716.65
8.0.80.0040.01116.71
8.0.70.0080.00016.65
8.0.60.0040.00416.80
8.0.50.0050.00216.69
8.0.30.0120.01116.82
8.0.20.0110.00817.40
8.0.10.0040.00416.77
8.0.00.0140.01516.61
7.4.330.0020.00215.00
7.4.320.0030.00316.29
7.4.300.0000.00616.47
7.4.290.0000.00616.42
7.4.280.0040.00416.52
7.4.270.0040.00416.52
7.4.260.0070.00016.55
7.4.250.0030.00516.41
7.4.240.0010.00616.55
7.4.230.0030.00316.53
7.4.220.0120.01316.46
7.4.210.0030.01016.58
7.4.200.0000.00716.54
7.4.160.0130.01016.63
7.4.150.0130.01017.40
7.4.140.0080.01317.86
7.4.130.0100.01016.49
7.4.120.0090.00716.45
7.4.110.0140.00716.39
7.4.100.0040.01916.48
7.4.90.0070.01616.31
7.4.80.0030.01619.39
7.4.70.0060.01016.49
7.4.60.0080.00816.45
7.4.50.0060.00316.53
7.4.40.0030.01316.20
7.4.30.0080.00816.30
7.4.00.0000.01314.74
7.3.330.0000.00613.25
7.3.320.0060.00013.24
7.3.310.0000.00716.07
7.3.300.0040.00416.11
7.3.290.0110.00316.30
7.3.280.0070.00916.24
7.3.270.0120.00617.40
7.3.260.0100.00716.16
7.3.250.0050.01116.35
7.3.240.0070.01016.29
7.3.230.0100.01316.45
7.3.210.0100.00716.32
7.3.200.0100.01319.39
7.3.190.0050.01116.16
7.3.180.0130.00316.41
7.3.170.0130.00316.47
7.3.160.0100.00716.28
7.3.10.0060.00615.95
7.3.00.0100.00316.37
7.2.330.0090.00916.61
7.2.320.0060.00916.32
7.2.310.0060.01216.50
7.2.300.0060.01116.61
7.2.290.0090.00616.25
7.2.130.0080.01216.30
7.2.120.0110.00416.79
7.2.110.0050.01116.34
7.2.100.0160.00516.59
7.2.90.0130.00616.51
7.2.80.0100.01016.68
7.2.70.0120.01216.32
7.2.60.0130.00916.34
7.2.50.0110.00616.00
7.2.40.0120.00616.66
7.2.30.0230.00016.70
7.2.20.0090.00616.98
7.2.10.0090.00916.33
7.2.00.0070.01116.90
7.1.250.0110.00415.56
7.1.70.0050.00516.97
7.1.60.0100.01419.32
7.1.50.0030.00916.83
7.1.00.0030.07722.48
7.0.200.0000.00916.69
7.0.140.0000.07322.04
7.0.70.5000.03719.86
7.0.60.0030.07019.90
7.0.50.0070.05017.86
7.0.40.0170.07720.18
7.0.30.0400.05020.35
7.0.20.0000.04720.34
7.0.10.0170.05320.24
7.0.00.0100.05320.22
5.6.280.0030.07321.10
5.6.210.0170.07020.49
5.6.200.0200.07318.23
5.6.190.0100.08020.60
5.6.180.0230.07320.63
5.6.170.0300.07320.45
5.6.160.0170.07320.46
5.6.150.0100.04318.27
5.6.140.0000.04018.21
5.6.130.0100.05718.15
5.6.120.0130.05021.15
5.6.110.0000.08721.05
5.6.100.0170.06021.13
5.6.90.0070.06721.09
5.6.80.0100.06320.49
5.6.70.0100.07320.48
5.5.350.0000.04020.33
5.5.340.0030.04018.09
5.5.330.0030.07720.42
5.5.320.0070.05020.46
5.5.310.0270.08020.30
5.5.300.0000.04718.07
5.5.290.0200.07017.98
5.5.280.0100.08720.97
5.5.270.0100.05020.88
5.5.260.0100.07720.77
5.5.250.0030.08020.66
5.5.240.0130.04720.28
5.4.450.0200.05319.17
5.4.440.0500.05019.49
5.4.430.0470.04019.40
5.4.420.0670.00019.68
5.4.410.0630.00019.41
5.4.400.0600.00019.23
5.4.390.0600.00019.18
5.4.380.0870.00019.09
5.4.370.0630.00019.11
5.4.360.0630.00019.05
5.4.350.0670.00019.19
5.4.340.0630.00019.04
5.4.320.0050.04612.51
5.4.310.0030.04612.51
5.4.300.0080.03512.51
5.4.290.0040.04012.50
5.4.280.0080.03812.40
5.4.270.0070.04012.40
5.4.260.0070.03812.40
5.4.250.0070.04112.40
5.4.240.0030.05012.40
5.4.230.0070.04612.39
5.4.220.0040.04012.39
5.4.210.0110.03312.39
5.4.200.0080.03812.39
5.4.190.0060.03612.38
5.4.180.0030.04112.38
5.4.170.0050.03612.40
5.4.160.0050.03612.39
5.4.150.0050.03712.39
5.4.140.0120.03212.07
5.4.130.0080.03612.07
5.4.120.0040.03712.02
5.4.110.0070.03312.02
5.4.100.0060.03512.02
5.4.90.0060.03612.02
5.4.80.0070.03812.02
5.4.70.0030.04212.01
5.4.60.0060.04712.01
5.4.50.0060.04312.02
5.4.40.0090.03412.00
5.4.30.0050.04012.00
5.4.20.0060.03712.00
5.4.10.0060.03512.00
5.4.00.0070.03511.48
5.3.290.0060.04612.80
5.3.280.0040.04312.70
5.3.270.0080.03912.72
5.3.260.0060.04112.71
5.3.250.0040.04112.72
5.3.240.0070.03712.72
5.3.230.0080.03712.71
5.3.220.0070.03712.68
5.3.210.0070.05412.68
5.3.200.0050.03812.68
5.3.190.0070.03812.68
5.3.180.0090.04512.67
5.3.170.0070.04712.67
5.3.160.0070.03612.67
5.3.150.0090.03812.67
5.3.140.0080.03612.66
5.3.130.0090.04312.66
5.3.120.0040.04312.66
5.3.110.0090.04812.66
5.3.100.0100.04312.12
5.3.90.0070.03812.11
5.3.80.0080.03712.09
5.3.70.0070.03812.10
5.3.60.0050.03812.08
5.3.50.0040.04012.04
5.3.40.0030.04012.03
5.3.30.0060.03511.99
5.3.20.0050.03611.78
5.3.10.0050.03611.73
5.3.00.0040.04011.73
5.2.170.0020.0349.22
5.2.160.0100.0349.22
5.2.150.0050.0319.22
5.2.140.0050.0309.21
5.2.130.0060.0309.18
5.2.120.0060.0319.18
5.2.110.0060.0319.19
5.2.100.0060.0369.18
5.2.90.0040.0299.18
5.2.80.0070.0409.18
5.2.70.0040.0349.18
5.2.60.0050.0299.13
5.2.50.0070.0319.10
5.2.40.0080.0269.08
5.2.30.0040.0309.05
5.2.20.0050.0289.04
5.2.10.0080.0258.95
5.2.00.0070.0318.81
5.1.60.0090.0308.09
5.1.50.0050.0348.09
5.1.40.0040.0268.07
5.1.30.0050.0258.43
5.1.20.0040.0308.45
5.1.10.0030.0278.17
5.1.00.0060.0248.17
5.0.50.0040.0276.64
5.0.40.0060.0216.51
5.0.30.0030.0326.32
5.0.20.0080.0216.29
5.0.10.0030.0206.26
5.0.00.0060.0276.25
4.4.90.0020.0164.78
4.4.80.0050.0174.76
4.4.70.0030.0194.76
4.4.60.0030.0154.76
4.4.50.0020.0224.77
4.4.40.0010.0264.71
4.4.30.0050.0234.76
4.4.20.0020.0164.84
4.4.10.0020.0224.85
4.4.00.0020.0384.76
4.3.110.0030.0234.66
4.3.100.0030.0184.66
4.3.90.0030.0204.63
4.3.80.0020.0284.58
4.3.70.0030.0184.63
4.3.60.0030.0164.63
4.3.50.0020.0164.63
4.3.40.0020.0334.54
4.3.30.0010.0173.30
4.3.20.0020.0223.28
4.3.10.0030.0183.24
4.3.00.0030.02013.59

preferences:
40.56 ms | 401 KiB | 5 Q