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 {} 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.0070.00718.43
8.3.50.0110.00722.00
8.3.40.0090.00618.50
8.3.30.0100.00319.09
8.3.20.0050.00220.34
8.3.10.0040.00420.42
8.3.00.0080.00019.38
8.2.180.0160.00318.29
8.2.170.0000.01522.96
8.2.160.0150.00020.34
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00422.06
8.2.110.0060.00320.46
8.2.100.0040.00718.03
8.2.90.0000.00919.18
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00417.79
8.2.50.0040.00418.07
8.2.40.0090.00019.64
8.2.30.0000.00817.92
8.2.20.0040.00417.62
8.2.10.0030.00517.99
8.2.00.0040.00417.66
8.1.280.0070.01425.92
8.1.270.0040.00422.10
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00323.84
8.1.230.0120.00019.09
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00516.97
8.1.190.0040.00417.09
8.1.180.0030.00618.10
8.1.170.0050.00318.60
8.1.160.0000.00721.86
8.1.150.0000.00718.64
8.1.140.0050.00317.20
8.1.130.0030.00317.71
8.1.120.0030.00417.39
8.1.110.0030.00617.22
8.1.100.0070.00017.22
8.1.90.0030.00317.23
8.1.80.0040.00417.33
8.1.70.0000.00717.27
8.1.60.0000.00817.47
8.1.50.0000.00717.45
8.1.40.0040.00417.45
8.1.30.0080.00017.54
8.1.20.0000.00817.64
8.1.10.0050.00217.50
8.1.00.0040.00417.45
8.0.300.0000.00918.77
8.0.290.0070.00016.63
8.0.280.0030.00318.35
8.0.270.0040.00417.21
8.0.260.0040.00417.19
8.0.250.0030.00317.02
8.0.240.0040.00416.93
8.0.230.0070.00016.76
8.0.220.0030.00316.79
8.0.210.0000.00716.79
8.0.200.0030.00316.88
8.0.190.0040.00416.90
8.0.180.0050.00216.68
8.0.170.0000.00816.87
8.0.160.0030.00516.77
8.0.150.0050.00216.76
8.0.140.0040.00416.74
8.0.130.0000.00513.27
8.0.120.0040.00416.71
8.0.110.0040.00416.68
8.0.100.0000.00716.75
8.0.90.0070.00016.88
8.0.80.0050.01016.72
8.0.70.0000.00816.71
8.0.60.0040.00416.70
8.0.50.0050.00216.80
8.0.30.0070.01217.11
8.0.20.0100.00817.40
8.0.10.0030.00317.00
8.0.00.0160.00616.71
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0000.00716.30
7.4.290.0030.00316.55
7.4.280.0000.00816.52
7.4.270.0030.00316.34
7.4.260.0000.00716.32
7.4.250.0040.00416.44
7.4.240.0030.00316.48
7.4.230.0030.00316.32
7.4.220.0130.00316.47
7.4.210.0160.00016.58
7.4.200.0040.00416.57
7.4.160.0060.01016.62
7.4.150.0070.01117.40
7.4.140.0130.01117.86
7.4.130.0100.00916.40
7.4.120.0100.00716.46
7.4.110.0090.01216.54
7.4.100.0100.01016.36
7.4.90.0100.00616.39
7.4.80.0060.01319.39
7.4.70.0130.00316.57
7.4.60.0100.00716.49
7.4.50.0000.00416.33
7.4.40.0100.00716.50
7.4.30.0070.01716.41
7.4.00.0060.00915.04
7.3.330.0000.00613.23
7.3.320.0020.00213.25
7.3.310.0000.00716.28
7.3.300.0000.00716.22
7.3.290.0110.00316.18
7.3.280.0090.00816.24
7.3.270.0120.00617.40
7.3.260.0170.00016.32
7.3.250.0080.00816.37
7.3.240.0040.01116.14
7.3.230.0100.00716.39
7.3.210.0130.00316.26
7.3.200.0120.01119.39
7.3.190.0070.01316.24
7.3.180.0100.00716.32
7.3.170.0060.01016.48
7.3.160.0030.01316.43
7.3.10.0100.00716.38
7.3.00.0070.00716.06
7.2.330.0060.01216.65
7.2.320.0130.00316.60
7.2.310.0130.01016.63
7.2.300.0060.00916.64
7.2.290.0130.00716.32
7.2.130.0030.00616.66
7.2.120.0060.01016.68
7.2.110.0110.00716.69
7.2.100.0070.01316.67
7.2.90.0070.01316.45
7.2.80.0100.01016.54
7.2.70.0060.00616.34
7.2.60.0000.01516.52
7.2.50.0030.01416.66
7.2.40.0070.01016.82
7.2.30.0100.00616.92
7.2.20.0100.00716.45
7.2.10.0060.00316.46
7.2.00.0030.00918.00
7.1.250.0100.00715.59
7.1.100.0040.00717.86
7.1.70.0030.00617.01
7.1.60.0140.01019.32
7.1.50.0300.00734.73
7.1.00.0070.07322.35
7.0.200.0000.01016.69
7.0.140.0070.06322.08
7.0.60.0100.07719.89
7.0.50.0030.08717.88
7.0.40.0030.08720.24
7.0.30.0230.07020.06
7.0.20.0300.08320.23
7.0.10.0100.05320.30
7.0.00.0070.07020.24
5.6.280.0000.07721.07
5.6.210.0070.08020.67
5.6.200.0030.08018.18
5.6.190.0100.08320.64
5.6.180.0500.06020.50
5.6.170.0130.04020.62
5.6.160.0000.06320.57
5.6.150.0130.05018.18
5.6.140.0200.07318.14
5.6.130.0000.05718.16
5.6.120.0000.06320.76
5.6.110.0070.07720.98
5.6.100.0070.08720.99
5.6.90.0030.07021.10
5.6.80.0030.06020.38
5.5.350.0130.03320.43
5.5.340.0100.03318.09
5.5.330.0100.08020.19
5.5.320.0330.06320.31
5.5.310.0270.05020.33
5.5.300.0030.05717.98
5.5.290.0030.06318.06
5.5.280.0170.06720.77
5.5.270.0070.04720.75
5.5.260.0130.08320.67
5.5.250.0130.09020.69
5.5.240.0170.06020.07
5.4.450.0370.03019.55
5.4.440.0330.03719.21
5.4.430.0330.05319.39
5.4.420.0630.00019.53
5.4.410.0630.00019.13
5.4.400.0600.00019.22
5.4.390.0630.00019.06
5.4.380.0630.00019.09
5.4.370.0600.00018.98
5.4.360.0600.00019.04
5.4.350.0670.00019.12
5.4.340.0630.00019.11
5.4.320.0070.03612.50
5.4.310.0050.04312.50
5.4.300.0030.04012.51
5.4.290.0060.03812.49
5.4.280.0100.03112.40
5.4.270.0030.04012.39
5.4.260.0060.03912.39
5.4.250.0120.04712.39
5.4.240.0050.03712.40
5.4.230.0070.03612.38
5.4.220.0050.03612.38
5.4.210.0110.03112.38
5.4.200.0060.04012.38
5.4.190.0060.03612.38
5.4.180.0050.03712.38
5.4.170.0060.03612.39
5.4.160.0070.03912.39
5.4.150.0070.03512.38
5.4.140.0050.03712.07
5.4.130.0050.03712.06
5.4.120.0050.03712.02
5.4.110.0060.03512.02
5.4.100.0100.03812.02
5.4.90.0100.04412.01
5.4.80.0100.04612.02
5.4.70.0090.04612.00
5.4.60.0070.03512.01
5.4.50.0150.04012.01
5.4.40.0090.04612.00
5.4.30.0050.04111.99
5.4.20.0050.03611.99
5.4.10.0060.03512.00
5.4.00.0020.04211.48
5.3.290.0050.04312.80
5.3.280.0070.04312.71
5.3.270.0070.04312.72
5.3.260.0060.03912.72
5.3.250.0070.03612.72
5.3.240.0050.03712.72
5.3.230.0040.03912.71
5.3.220.0070.03612.68
5.3.210.0080.03812.68
5.3.200.0090.03312.68
5.3.190.0050.03812.68
5.3.180.0040.03812.67
5.3.170.0030.03912.67
5.3.160.0050.03712.68
5.3.150.0080.03612.67
5.3.140.0090.04612.66
5.3.130.0100.04612.66
5.3.120.0090.04012.65
5.3.110.0070.04412.66
5.3.100.0070.04312.12
5.3.90.0100.03412.10
5.3.80.0080.03512.10
5.3.70.0080.03712.09
5.3.60.0080.03812.08
5.3.50.0060.03812.04
5.3.40.0020.04212.04
5.3.30.0060.04211.99
5.3.20.0080.04511.78
5.3.10.0050.03511.73
5.3.00.0100.04411.72
5.2.170.0070.0419.22
5.2.160.0030.0309.22
5.2.150.0050.0309.22
5.2.140.0040.0319.21
5.2.130.0040.0299.18
5.2.120.0050.0319.18
5.2.110.0030.0339.18
5.2.100.0040.0309.18
5.2.90.0050.0299.18
5.2.80.0040.0359.18
5.2.70.0050.0309.18
5.2.60.0070.0329.13
5.2.50.0050.0329.09
5.2.40.0100.0259.07
5.2.30.0040.0309.05
5.2.20.0030.0309.04
5.2.10.0070.0258.95
5.2.00.0050.0308.81
5.1.60.0030.0258.09
5.1.50.0020.0278.09
5.1.40.0050.0248.07
5.1.30.0080.0228.42
5.1.20.0050.0298.44
5.1.10.0050.0258.17
5.1.00.0080.0248.17
5.0.50.0030.0216.64
5.0.40.0060.0176.51
5.0.30.0030.0346.32
5.0.20.0040.0186.28
5.0.10.0030.0206.26
5.0.00.0030.0306.25
4.4.90.0040.0144.78
4.4.80.0010.0174.75
4.4.70.0020.0164.75
4.4.60.0020.0154.76
4.4.50.0040.0134.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0040.0154.67
4.3.100.0060.0134.66
4.3.90.0030.0224.63
4.3.80.0030.0314.59
4.3.70.0020.0184.63
4.3.60.0050.0154.63
4.3.50.0050.0144.63
4.3.40.0030.0234.54
4.3.30.0020.0153.30
4.3.20.0020.0153.28
4.3.10.0020.0153.24
4.3.00.0070.02013.59

preferences:
31.72 ms | 401 KiB | 5 Q