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 {} class C extends B {} 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.0150.00618.28
8.3.50.0110.00621.95
8.3.40.0110.00618.84
8.3.30.0100.00319.11
8.3.20.0070.00020.09
8.3.10.0080.00020.48
8.3.00.0000.00819.35
8.2.180.0170.00016.50
8.2.170.0100.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.04
8.2.110.0000.00820.35
8.2.100.0040.00818.03
8.2.90.0050.00318.96
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0030.00617.67
8.2.50.0080.00018.07
8.2.40.0040.00419.85
8.2.30.0030.00617.86
8.2.20.0070.00017.69
8.2.10.0040.00417.80
8.2.00.0040.00417.42
8.1.280.0040.01125.92
8.1.270.0030.00622.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.79
8.1.230.0070.00419.11
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0080.00017.00
8.1.180.0070.00018.10
8.1.170.0000.00818.47
8.1.160.0000.00821.99
8.1.150.0000.00718.67
8.1.140.0050.00217.27
8.1.130.0070.00017.75
8.1.120.0030.00317.27
8.1.110.0090.00017.23
8.1.100.0040.00417.38
8.1.90.0000.00817.23
8.1.80.0070.00017.22
8.1.70.0030.00317.29
8.1.60.0000.00817.49
8.1.50.0000.00717.36
8.1.40.0000.00717.43
8.1.30.0030.00517.48
8.1.20.0000.00817.58
8.1.10.0040.00417.48
8.1.00.0020.00517.46
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0000.00718.42
8.0.270.0000.00717.25
8.0.260.0040.00417.27
8.0.250.0030.00316.85
8.0.240.0030.00316.97
8.0.230.0030.00316.91
8.0.220.0000.00716.82
8.0.210.0000.00716.73
8.0.200.0030.00316.92
8.0.190.0040.00416.86
8.0.180.0040.00416.75
8.0.170.0030.00516.82
8.0.160.0000.00816.83
8.0.150.0070.00016.59
8.0.140.0040.00416.65
8.0.130.0030.00313.28
8.0.120.0050.00316.61
8.0.110.0070.00016.66
8.0.100.0000.00716.75
8.0.90.0040.00416.64
8.0.80.0120.00316.79
8.0.70.0080.00016.61
8.0.60.0080.00016.71
8.0.50.0050.00216.82
8.0.30.0090.00916.96
8.0.20.0070.01217.40
8.0.10.0040.00416.68
8.0.00.0140.00616.69
7.4.330.0050.00015.00
7.4.320.0000.00616.37
7.4.300.0000.00616.54
7.4.290.0060.00016.52
7.4.280.0040.00416.52
7.4.270.0070.00016.39
7.4.260.0040.00416.43
7.4.250.0030.00516.40
7.4.240.0030.00416.52
7.4.230.0030.00316.41
7.4.220.0040.01416.50
7.4.210.0100.01016.41
7.4.200.0020.00516.27
7.4.160.0100.00616.51
7.4.150.0060.01317.40
7.4.140.0130.00817.86
7.4.130.0120.00516.43
7.4.120.0080.00916.54
7.4.110.0070.01016.64
7.4.100.0110.00716.57
7.4.90.0090.01316.38
7.4.80.0130.00719.39
7.4.70.0040.01416.39
7.4.60.0140.00316.40
7.4.50.0000.00716.36
7.4.40.0110.00516.35
7.4.30.0060.00916.38
7.4.00.0000.01214.96
7.3.330.0050.00013.20
7.3.320.0060.00013.20
7.3.310.0000.00716.12
7.3.300.0070.00016.23
7.3.290.0040.01116.21
7.3.280.0110.00716.20
7.3.270.0080.00817.40
7.3.260.0120.00616.50
7.3.250.0080.01116.41
7.3.240.0070.01016.43
7.3.230.0170.00616.39
7.3.210.0110.01116.31
7.3.200.0030.01319.39
7.3.190.0090.00916.21
7.3.180.0090.00616.23
7.3.170.0080.00816.40
7.3.160.0090.00916.48
7.3.120.0070.00714.45
7.3.110.0120.00414.73
7.3.100.0030.01014.67
7.3.90.0040.01214.55
7.3.80.0030.01314.38
7.3.70.0070.00714.73
7.3.60.0000.01514.59
7.3.50.0040.01114.74
7.3.40.0060.00914.79
7.3.30.0030.01314.59
7.3.20.0070.01016.50
7.3.10.0080.00516.26
7.3.00.0020.01116.46
7.2.330.0040.01416.31
7.2.320.0060.01016.33
7.2.310.0120.00916.69
7.2.300.0130.00416.40
7.2.290.0090.01316.44
7.2.240.0000.01814.92
7.2.230.0040.01114.80
7.2.220.0030.00714.55
7.2.210.0080.00814.64
7.2.200.0000.01815.05
7.2.190.0030.01014.93
7.2.180.0140.00314.98
7.2.170.0040.01114.97
7.2.160.0060.00915.02
7.2.150.0100.00616.72
7.2.140.0100.00616.81
7.2.130.0020.00816.66
7.2.120.0100.00516.84
7.2.110.0050.00816.88
7.2.100.0030.01216.74
7.2.90.0050.01016.69
7.2.80.0050.00916.91
7.2.70.0080.00716.89
7.2.60.0040.00916.80
7.2.50.0050.00716.79
7.2.40.0030.01216.79
7.2.30.0040.01116.73
7.2.20.0070.00716.74
7.2.10.0050.00616.78
7.2.00.0050.00917.48
7.1.330.0030.01415.83
7.1.320.0060.01115.86
7.1.310.0070.00715.68
7.1.300.0080.00815.30
7.1.290.0070.00715.63
7.1.280.0030.01015.45
7.1.270.0030.00715.71
7.1.260.0140.00015.84
7.1.250.0070.00815.58
7.1.200.0040.01215.56
7.1.100.0040.01218.09
7.1.70.0040.00916.96
7.1.60.0160.00619.32
7.1.50.0190.01534.51
7.1.00.0070.07322.30
7.0.200.0000.01016.41
7.0.140.0030.07322.15
7.0.60.0130.07320.05
7.0.50.0030.04017.82
7.0.40.0000.05320.26
7.0.30.0230.05720.13
7.0.20.0200.05720.06
7.0.10.0170.07320.30
7.0.00.0070.08320.30
5.6.280.0130.06321.08
5.6.210.0100.08320.50
5.6.200.0070.08718.14
5.6.190.0070.04020.48
5.6.180.0370.06020.63
5.6.170.0200.05320.46
5.6.160.0030.09020.46
5.6.150.0030.03718.19
5.6.140.0000.04718.28
5.6.130.0130.07018.29
5.6.120.0030.05320.74
5.6.110.0170.07721.15
5.6.100.0000.07320.96
5.6.90.0030.04721.06
5.6.80.0200.06320.48
5.5.350.0170.08320.32
5.5.340.0130.03317.98
5.5.330.0100.08320.31
5.5.320.0370.07720.34
5.5.310.0330.07020.19
5.5.300.0100.08017.99
5.5.290.0070.08317.97
5.5.280.0030.04320.78
5.5.270.0030.09020.85
5.5.260.0070.08720.64
5.5.250.0070.05320.59
5.5.240.0130.08020.19
5.4.450.0170.03019.47
5.4.440.0430.03019.46
5.4.430.0800.02719.58
5.4.420.0670.00019.56
5.4.410.0670.00019.43
5.4.400.0630.00019.22
5.4.390.0700.00019.12
5.4.380.0670.00019.26
5.4.370.0630.00019.02
5.4.360.0630.00019.22
5.4.350.0630.00019.01
5.4.340.0630.00019.11
5.4.320.0070.04412.50
5.4.310.0080.03612.50
5.4.300.0050.03812.51
5.4.290.0020.04212.49
5.4.280.0080.03412.39
5.4.270.0080.03812.39
5.4.260.0090.03512.40
5.4.250.0050.03812.39
5.4.240.0100.03712.40
5.4.230.0070.04212.38
5.4.220.0060.03512.38
5.4.210.0060.03712.39
5.4.200.0080.03712.39
5.4.190.0070.03612.38
5.4.180.0050.04612.38
5.4.170.0070.03712.39
5.4.160.0050.03812.39
5.4.150.0080.03512.39
5.4.140.0070.04012.07
5.4.130.0060.03912.06
5.4.120.0070.03912.02
5.4.110.0100.03712.02
5.4.100.0070.03512.02
5.4.90.0120.03512.02
5.4.80.0060.04312.02
5.4.70.0100.03712.01
5.4.60.0050.03512.01
5.4.50.0090.03212.01
5.4.40.0060.03811.99
5.4.30.0080.03712.00
5.4.20.0060.03712.00
5.4.10.0060.03712.00
5.4.00.0100.03611.48
5.3.290.0120.04112.80
5.3.280.0090.04712.71
5.3.270.0080.04412.73
5.3.260.0050.04212.72
5.3.250.0080.04412.72
5.3.240.0080.03512.72
5.3.230.0040.04012.71
5.3.220.0060.03812.68
5.3.210.0060.04212.68
5.3.200.0100.03512.68
5.3.190.0060.03812.68
5.3.180.0070.04012.67
5.3.170.0050.04012.67
5.3.160.0050.03912.67
5.3.150.0040.03812.68
5.3.140.0050.03912.66
5.3.130.0080.04212.66
5.3.120.0070.04212.65
5.3.110.0060.04112.66
5.3.100.0090.03812.12
5.3.90.0040.04012.11
5.3.80.0070.03712.10
5.3.70.0090.04012.09
5.3.60.0060.03812.08
5.3.50.0070.03812.03
5.3.40.0110.03312.03
5.3.30.0110.03611.98
5.3.20.0100.04011.77
5.3.10.0090.04011.73
5.3.00.0170.03411.73
5.2.170.0070.0369.22
5.2.160.0070.0379.22
5.2.150.0070.0399.22
5.2.140.0130.0339.22
5.2.130.0080.0359.18
5.2.120.0090.0309.18
5.2.110.0080.0289.19
5.2.100.0090.0269.18
5.2.90.0040.0329.18
5.2.80.0070.0289.18
5.2.70.0080.0359.18
5.2.60.0050.0339.13
5.2.50.0020.0349.10
5.2.40.0050.0319.08
5.2.30.0050.0339.05
5.2.20.0030.0339.04
5.2.10.0030.0308.95
5.2.00.0050.0288.82
5.1.60.0100.0258.09
5.1.50.0100.0298.09
5.1.40.0020.0338.07
5.1.30.0060.0448.42
5.1.20.0080.0408.44
5.1.10.0060.0368.17
5.1.00.0080.0358.16
5.0.50.0070.0266.64
5.0.40.0070.0246.50
5.0.30.0070.0376.32
5.0.20.0050.0256.29
5.0.10.0080.0256.26
5.0.00.0100.0316.25
4.4.90.0030.0224.78
4.4.80.0070.0184.75
4.4.70.0040.0214.75
4.4.60.0030.0214.76
4.4.50.0050.0194.77
4.4.40.0040.0314.71
4.4.30.0020.0164.76
4.4.20.0030.0164.84
4.4.10.0030.0164.85
4.4.00.0020.0304.75
4.3.110.0040.0184.67
4.3.100.0030.0174.67
4.3.90.0050.0174.63
4.3.80.0090.0264.59
4.3.70.0030.0184.63
4.3.60.0060.0154.63
4.3.50.0070.0134.63
4.3.40.0040.0224.54
4.3.30.0010.0173.30
4.3.20.0010.0223.28
4.3.10.0030.0153.23
4.3.00.0000.01313.59

preferences:
55.34 ms | 401 KiB | 5 Q