3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StaticA { function classInfo(){ echo get_class(new static). "\n"; } } class StaticB extends StaticA { function test(){ //echo get_class(new self). "\n"; parent::classInfo(); } } $object = new StaticB(); $object->test();

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.01418.43
8.3.50.0140.00522.12
8.3.40.0070.00718.59
8.3.30.0140.00018.98
8.3.20.0020.00520.20
8.3.10.0000.00821.97
8.3.00.0000.00822.43
8.2.180.0110.00416.71
8.2.170.0090.00922.96
8.2.160.0040.01120.73
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00719.23
8.2.110.0030.00719.41
8.2.100.0130.00317.72
8.2.90.0070.00319.64
8.2.80.0000.00818.04
8.2.70.0090.00018.05
8.2.60.0000.00817.93
8.2.50.0040.00419.25
8.2.40.0040.00420.42
8.2.30.0020.00918.16
8.2.20.0080.00017.65
8.2.10.0030.00519.31
8.2.00.0070.00017.61
8.1.280.0090.00625.92
8.1.270.0050.00322.24
8.1.260.0070.00326.35
8.1.250.0080.00028.09
8.1.240.0070.00320.75
8.1.230.0080.00420.79
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0080.00017.22
8.1.190.0030.00617.22
8.1.180.0000.00718.10
8.1.170.0030.00518.53
8.1.160.0050.00318.80
8.1.150.0000.00718.56
8.1.140.0040.00417.32
8.1.130.0070.00017.86
8.1.120.0020.00517.48
8.1.110.0000.00817.43
8.1.100.0070.00017.33
8.1.90.0020.00517.30
8.1.80.0000.00717.49
8.1.70.0000.00717.32
8.1.60.0060.00317.59
8.1.50.0040.00417.57
8.1.40.0090.00017.40
8.1.30.0040.00417.59
8.1.20.0040.00417.61
8.1.10.0000.00717.46
8.1.00.0060.00317.48
8.0.300.0000.00720.09
8.0.290.0080.00016.75
8.0.280.0040.00418.38
8.0.270.0030.00317.23
8.0.260.0030.00316.81
8.0.250.0060.00016.85
8.0.240.0080.00316.96
8.0.230.0040.00417.01
8.0.220.0030.00316.78
8.0.210.0030.00316.87
8.0.200.0000.00716.96
8.0.190.0000.00716.93
8.0.180.0050.00316.86
8.0.170.0040.00416.81
8.0.160.0040.00416.75
8.0.150.0080.00016.84
8.0.140.0050.00216.89
8.0.130.0000.00513.35
8.0.120.0030.00516.83
8.0.110.0070.00016.81
8.0.100.0030.00516.77
8.0.90.0040.00416.82
8.0.80.0090.00616.89
8.0.70.0050.00216.72
8.0.60.0040.00416.76
8.0.50.0000.00716.60
8.0.30.0120.00617.06
8.0.20.0090.01217.40
8.0.10.0000.00716.77
8.0.00.0110.00616.83
7.4.330.0060.00015.04
7.4.320.0060.00016.34
7.4.300.0030.00316.50
7.4.290.0000.00716.49
7.4.280.0030.00316.63
7.4.270.0070.00016.51
7.4.260.0030.00316.59
7.4.250.0000.00716.55
7.4.240.0060.00216.51
7.4.230.0050.00216.49
7.4.220.0120.00616.70
7.4.210.0080.00916.64
7.4.200.0000.00716.38
7.4.190.0040.00416.66
7.4.160.0120.00816.61
7.4.150.0170.00317.40
7.4.140.0130.00817.86
7.4.130.0070.01016.38
7.4.120.0080.01116.46
7.4.110.0000.01916.54
7.4.100.0120.00616.63
7.4.90.0060.01216.40
7.4.80.0070.01019.39
7.4.70.0090.00616.69
7.4.60.0080.00816.44
7.4.50.0000.00516.22
7.4.40.0100.00722.77
7.4.30.0060.00916.60
7.4.00.0040.00814.69
7.3.330.0060.00013.30
7.3.320.0000.00513.32
7.3.310.0030.00316.34
7.3.300.0030.00316.27
7.3.290.0100.00916.28
7.3.280.0090.00716.29
7.3.270.0100.00617.40
7.3.260.0110.00816.46
7.3.250.0110.00816.27
7.3.240.0180.00716.29
7.3.230.0090.00916.39
7.3.210.0120.00416.37
7.3.200.0150.00819.39
7.3.190.0030.01316.17
7.3.180.0120.00316.20
7.3.170.0150.00616.29
7.3.160.0060.01116.41
7.3.120.0090.00614.77
7.3.10.0040.01116.64
7.3.00.0030.01316.66
7.2.330.0100.01016.77
7.2.320.0090.00916.61
7.2.310.0100.01316.45
7.2.300.0030.01316.69
7.2.290.0080.00816.63
7.2.130.0000.01316.68
7.2.120.0030.00716.88
7.2.110.0100.00316.70
7.2.100.0060.00916.96
7.2.90.0070.00417.07
7.2.80.0040.00716.84
7.2.70.0040.01217.04
7.2.60.0080.00816.89
7.2.50.0120.00416.87
7.2.40.0060.00916.96
7.2.30.0120.00316.95
7.2.20.0070.00716.88
7.2.10.0040.00716.73
7.2.00.0030.01416.74
7.1.250.0070.00715.86
7.1.200.0060.00915.66
7.1.70.0040.00416.80
7.1.60.0030.02119.82
7.1.50.0100.00016.84
7.1.00.0070.07022.28
7.0.200.0000.00816.71
7.0.140.0000.07722.01
7.0.100.0300.06319.88
7.0.90.0070.04319.96
7.0.80.0170.04319.99
7.0.70.0170.06319.89
7.0.60.0130.04319.90
7.0.50.0000.08320.34
7.0.40.0070.08319.98
7.0.30.0070.04720.11
7.0.20.0070.05020.14
7.0.10.0030.08019.96
7.0.00.0070.07020.10
5.6.280.0100.06721.02
5.6.250.0070.06720.68
5.6.240.0030.05020.69
5.6.230.0070.08020.65
5.6.220.0070.07020.49
5.6.210.0100.07320.45
5.6.200.0170.07720.93
5.6.190.0000.08321.05
5.6.180.0130.04721.02
5.6.170.0170.07321.13
5.6.160.0100.07020.90
5.6.150.0070.05021.02
5.6.140.0070.07721.00
5.6.130.0170.07321.05
5.6.120.0030.04320.95
5.6.110.0100.08320.90
5.6.100.0070.06021.12
5.6.90.0170.07020.98
5.6.80.0030.07720.49
5.6.70.0130.07720.36
5.6.60.0070.04720.39
5.6.50.0070.07320.36
5.6.40.0100.03320.50
5.6.30.0070.05720.26
5.6.20.0070.08320.34
5.6.10.0130.07020.34
5.6.00.0130.05320.34
5.5.380.0200.05020.34
5.5.370.0070.08320.46
5.5.360.0070.06320.38
5.5.350.0070.07720.44
5.5.340.0100.07720.77
5.5.330.0130.07720.73
5.5.320.0070.05020.88
5.5.310.0070.05720.71
5.5.300.0070.06020.72
5.5.290.0070.06320.87
5.5.280.0100.08320.88
5.5.270.0130.06720.75
5.5.260.0030.04720.81
5.5.250.0100.07720.63
5.5.240.0070.07020.23
5.5.230.0130.06320.23
5.5.220.0070.08320.25
5.5.210.0170.07020.11
5.5.200.0070.06320.09
5.5.190.0070.08320.20
5.5.180.0000.07720.11
5.5.160.0030.08320.21
5.5.150.0070.07720.19
5.5.140.0130.06320.12
5.5.130.0100.06319.94
5.5.120.0200.06320.11
5.5.110.0030.08320.13
5.5.100.0070.08020.08
5.5.90.0100.07720.09
5.5.80.0030.07720.04
5.5.70.0100.06319.90
5.5.60.0130.07020.06
5.5.50.0100.05020.12
5.5.40.0130.06720.08
5.5.30.0070.07720.11
5.5.20.0070.07720.05
5.5.10.0000.04319.94
5.5.00.0070.05719.93
5.4.450.0070.05719.45
5.4.440.0000.06719.46
5.4.430.0130.07719.22
5.4.420.0100.07719.37
5.4.410.0130.07319.23
5.4.400.0030.07319.10
5.4.390.0130.06018.88
5.4.380.0000.07019.05
5.4.370.0100.03719.14
5.4.360.0000.04718.90
5.4.350.0000.05718.85
5.4.340.0130.05719.17
5.4.320.0100.06718.88
5.4.310.0070.04319.23
5.4.300.0000.06019.04
5.4.290.0000.06318.87
5.4.280.0000.05019.03
5.4.270.0070.07319.04
5.4.260.0100.07019.09
5.4.250.0030.04719.09
5.4.240.0130.05718.84
5.4.230.0070.07318.87
5.4.220.0070.05718.87
5.4.210.0070.04719.04
5.4.200.0070.07019.21
5.4.190.0070.05718.94
5.4.180.0100.07019.13
5.4.170.0100.04019.22
5.4.160.0030.04719.12
5.4.150.0000.08319.01
5.4.140.0070.06716.42
5.4.130.0070.07716.49
5.4.120.0030.04316.46
5.4.110.0000.04716.50
5.4.100.0070.06716.57
5.4.90.0070.06316.50
5.4.80.0030.07316.43
5.4.70.0030.04316.49
5.4.60.0030.08016.34
5.4.50.0030.04716.45
5.4.40.0070.06716.50
5.4.30.0100.03316.40
5.4.20.0130.06316.31
5.4.10.0130.03716.40
5.4.00.0030.03715.86
5.3.290.0100.07314.79
5.3.280.0130.06314.63
5.3.270.0000.04714.56
5.3.260.0070.07014.59
5.3.250.0070.07014.56
5.3.240.0130.06714.63
5.3.230.0070.07014.70
5.3.220.0100.06714.64
5.3.210.0000.06714.69
5.3.200.0070.06314.60
5.3.190.0030.03714.67
5.3.180.0030.03714.70
5.3.170.0070.04014.50
5.3.160.0130.06014.63
5.3.150.0100.08314.62
5.3.140.0000.07714.62
5.3.130.0100.03314.50
5.3.120.0070.03714.48
5.3.110.0100.07014.48
5.3.100.0100.06014.11
5.3.90.0070.04013.98
5.3.80.0100.04014.01
5.3.70.0070.07314.16
5.3.60.0030.07714.13
5.3.50.0100.07314.00
5.3.40.0100.07314.09
5.3.30.0170.06013.89
5.3.20.0030.03713.58
5.3.10.0000.07013.77
5.3.00.0100.07013.63
5.2.170.0100.06011.25
5.2.160.0100.06011.05
5.2.150.0070.06011.20
5.2.140.0070.03311.07
5.2.130.0030.06711.22
5.2.120.0070.03711.03
5.2.110.0070.03011.19
5.2.100.0070.05711.22
5.2.90.0030.04311.09
5.2.80.0130.05011.20
5.2.70.0070.06011.16
5.2.60.0000.04011.08
5.2.50.0030.06011.13
5.2.40.0030.03710.91
5.2.30.0030.03310.96
5.2.20.0000.05710.88
5.2.10.0030.04711.00
5.2.00.0100.05310.64
5.1.60.0030.0479.83
5.1.50.0030.05710.00
5.1.40.0030.0409.96
5.1.30.0100.04710.40
5.1.20.0070.03010.41
5.1.10.0100.02310.06
5.1.00.0070.05310.06
5.0.50.0030.0478.58
5.0.40.0070.0238.50
5.0.30.0070.0578.30
5.0.20.0000.0478.09
5.0.10.0000.0438.24
5.0.00.0000.0638.25
4.4.90.0000.0238.09
4.4.80.0070.0378.09
4.4.70.0070.0238.09
4.4.60.0000.0238.09
4.4.50.0000.0178.09
4.4.40.0030.0508.09
4.4.30.0030.0238.09
4.4.20.0000.0378.09
4.4.10.0100.0238.09
4.4.00.0000.0538.09
4.3.110.0030.0308.09
4.3.100.0070.0308.09
4.3.90.0030.0378.09
4.3.80.0000.0338.09
4.3.70.0070.0308.09
4.3.60.0000.0208.09
4.3.50.0000.0338.09
4.3.40.0030.0338.09
4.3.30.0000.0338.09
4.3.20.0070.0278.09
4.3.10.0000.0278.09
4.3.00.0000.0308.09

preferences:
42.71 ms | 401 KiB | 5 Q