3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL ^ E_NOTICE); class foo { static public function test() { var_dump(get_called_class()); } public function testTwo() { var_dump(get_called_class()); } } class bar extends foo { } class abc { function test() { foo::test(); bar::test(); } function testTwo() { foo::testTwo(); bar::testTwo(); } } echo "basic\n"; foo::test(); bar::test(); echo "basic without static declaration\n"; foo::testTwo(); bar::testTwo(); echo "in a class\n"; $abc = new abc(); $abc->test(); echo "in a class without static declaration\n"; $abc->testTwo();

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.0100.01018.55
8.3.50.0090.00921.92
8.3.40.0000.01418.65
8.3.30.0100.00318.67
8.3.20.0030.00518.79
8.3.10.0000.00820.88
8.3.00.0070.00021.77
8.2.180.0150.00616.88
8.2.170.0140.00722.96
8.2.160.0080.00520.22
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00021.12
8.2.110.0060.00320.47
8.2.100.0070.00417.78
8.2.90.0060.00319.21
8.2.80.0060.00317.97
8.2.70.0070.00317.50
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0000.00818.00
8.2.30.0040.00419.40
8.2.20.0040.00417.71
8.2.10.0000.00717.72
8.2.00.0000.00817.59
8.1.280.0170.00025.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.42
8.1.230.0120.00020.87
8.1.220.0040.00418.77
8.1.210.0080.00018.91
8.1.200.0050.00517.22
8.1.190.0070.00017.40
8.1.180.0080.00018.10
8.1.170.0030.00618.56
8.1.160.0030.00618.67
8.1.150.0000.00718.55
8.1.140.0030.00517.37
8.1.130.0000.00717.77
8.1.120.0040.00417.23
8.1.110.0040.00417.34
8.1.100.0030.00517.32
8.1.90.0040.00417.31
8.1.80.0000.00817.21
8.1.70.0000.00717.36
8.1.60.0090.00017.44
8.1.50.0040.00417.41
8.1.40.0040.00417.45
8.1.30.0000.00817.59
8.1.20.0030.00517.61
8.1.10.0040.00417.40
8.1.00.0040.00417.32
8.0.300.0000.00720.09
8.0.290.0040.00417.05
8.0.280.0040.00418.34
8.0.270.0000.00717.29
8.0.260.0030.00316.77
8.0.250.0000.01016.90
8.0.240.0030.00616.86
8.0.230.0000.00716.94
8.0.220.0040.00416.84
8.0.210.0000.00816.78
8.0.200.0000.00616.93
8.0.190.0030.00316.93
8.0.180.0030.00316.83
8.0.170.0040.00416.95
8.0.160.0040.00416.87
8.0.150.0000.00816.73
8.0.140.0040.00416.75
8.0.130.0000.00613.23
8.0.120.0000.00716.80
8.0.110.0050.00316.88
8.0.100.0050.00216.83
8.0.90.0000.00816.71
8.0.80.0090.01316.94
8.0.70.0040.00416.86
8.0.60.0000.00816.83
8.0.50.0000.00716.95
8.0.30.0150.00517.24
8.0.20.0080.01217.40
8.0.10.0080.00016.80
8.0.00.0080.01016.81
7.4.330.0000.00516.83
7.4.320.0000.00616.43
7.4.300.0060.00016.39
7.4.290.0000.00716.58
7.4.280.0070.00016.38
7.4.270.0030.00316.61
7.4.260.0050.00013.33
7.4.250.0050.00316.49
7.4.240.0030.00316.50
7.4.230.0080.00016.67
7.4.220.0180.00416.49
7.4.210.0070.00816.60
7.4.200.0000.00716.52
7.4.190.0050.00316.65
7.4.160.0070.01016.58
7.4.150.0070.01117.40
7.4.140.0150.00717.86
7.4.130.0060.01116.57
7.4.120.0090.00916.48
7.4.110.0110.00816.27
7.4.100.0140.00416.35
7.4.90.0040.01416.55
7.4.80.0060.01219.39
7.4.70.0060.01016.57
7.4.60.0110.00616.50
7.4.50.0050.00316.37
7.4.40.0070.01022.77
7.4.30.0040.01116.45
7.4.00.0080.00814.96
7.3.330.0030.00313.23
7.3.320.0050.00013.38
7.3.310.0030.00316.08
7.3.300.0000.00616.30
7.3.290.0160.00316.27
7.3.280.0100.00816.30
7.3.270.0190.00017.40
7.3.260.0100.01018.24
7.3.250.0100.01416.33
7.3.240.0090.00916.47
7.3.230.0100.00616.39
7.3.210.0150.00816.43
7.3.200.0100.00819.39
7.3.190.0100.00716.27
7.3.180.0030.01316.26
7.3.170.0090.00616.34
7.3.160.0080.01516.29
7.3.120.0060.00614.99
7.3.10.0250.00316.26
7.3.00.0190.00316.18
7.2.330.0110.00816.77
7.2.320.0070.01416.57
7.2.310.0160.00616.39
7.2.300.0140.00916.74
7.2.290.0170.00016.46
7.2.130.0040.01916.57
7.2.120.0140.01416.59
7.2.110.0170.01016.89
7.2.100.0180.00416.15
7.2.90.0240.00515.84
7.2.80.0250.00316.68
7.2.70.0160.00816.29
7.2.60.0110.01116.69
7.2.50.0080.01516.55
7.2.40.0070.01716.67
7.2.30.0170.00316.26
7.2.20.0060.00916.52
7.2.10.0110.00715.83
7.2.00.0090.00718.11
7.1.250.0250.00615.40
7.1.200.0030.00715.57
7.1.100.0060.00617.92
7.1.70.0040.00717.15
7.1.60.0130.01019.40
7.1.50.0140.00734.51
7.1.00.0030.04722.57
7.0.200.0000.00716.81
7.0.140.0030.07022.19
7.0.70.0100.07721.68
7.0.60.0030.08021.72
7.0.50.0000.07722.07
7.0.40.0030.05020.11
7.0.30.0000.04320.07
7.0.20.0100.02720.06
7.0.10.0000.04020.05
7.0.00.0000.04320.11
5.6.280.0000.07721.08
5.6.220.0070.07320.60
5.6.210.0100.07020.74
5.6.200.0070.08320.96
5.6.190.0000.05021.06
5.6.180.0100.03321.04
5.6.170.0000.04320.99
5.6.160.0000.04021.04
5.6.150.0000.03320.94
5.6.140.0000.03721.07
5.6.130.0030.03321.06
5.6.120.0030.03321.07
5.6.110.0000.03721.02
5.6.100.0000.04721.05
5.6.90.0030.04021.02
5.6.80.0000.03320.46
5.6.70.0030.04020.33
5.6.60.0000.04320.33
5.6.50.0030.03020.39
5.6.40.0000.03720.39
5.6.30.0030.03020.30
5.6.20.0030.03320.45
5.6.10.0000.03320.39
5.6.00.0030.03020.44
5.5.360.0070.06020.38
5.5.350.0000.08720.37
5.5.340.0100.07720.88
5.5.330.0030.04020.90
5.5.320.0100.03320.88
5.5.310.0100.03020.89
5.5.300.0030.03320.83
5.5.290.0030.03320.88
5.5.280.0000.04720.90
5.5.270.0000.04020.87
5.5.260.0030.04320.78
5.5.250.0070.03020.69
5.5.240.0030.04320.01
5.5.230.0000.03320.26
5.5.220.0000.03720.28
5.5.210.0000.03320.12
5.5.200.0030.03320.11
5.5.190.0030.03020.11
5.5.180.0030.03320.23
5.5.160.0070.02720.20
5.5.150.0030.03020.23
5.5.140.0000.03720.17
5.5.130.0070.03719.97
5.5.120.0030.03020.24
5.5.110.0030.03720.09
5.5.100.0030.07020.07
5.5.90.0070.03020.06
5.5.80.0070.07020.08
5.5.70.0070.07020.14
5.5.60.0000.04020.04
5.5.50.0030.04020.01
5.5.40.0070.04320.07
5.5.30.0000.05020.06
5.5.20.0070.06319.97
5.5.10.0170.06319.95
5.5.00.0000.07720.02
5.4.450.0030.04319.34
5.4.440.0000.04019.24
5.4.430.0000.04319.19
5.4.420.0000.03319.32
5.4.410.0000.03319.20
5.4.400.0000.03718.89
5.4.390.0000.03319.01
5.4.380.0030.02719.00
5.4.370.0000.03019.23
5.4.360.0000.03319.11
5.4.350.0030.03019.14
5.4.340.0000.03718.83
5.4.320.0030.03019.23
5.4.310.0000.03018.98
5.4.300.0030.03719.16
5.4.290.0000.03319.13
5.4.280.0030.03019.02
5.4.270.0000.03719.00
5.4.260.0030.03719.12
5.4.250.0000.04319.02
5.4.240.0130.07019.11
5.4.230.0030.03018.86
5.4.220.0000.03319.05
5.4.210.0030.07319.00
5.4.200.0000.05018.91
5.4.190.0070.06319.16
5.4.180.0000.07719.15
5.4.170.0000.07018.91
5.4.160.0030.05719.02
5.4.150.0070.07019.11
5.4.140.0000.07016.45
5.4.130.0130.02716.50
5.4.120.0070.03716.45
5.4.110.0030.05016.39
5.4.100.0000.06316.48
5.4.90.0030.05716.49
5.4.80.0100.06716.46
5.4.70.0030.07316.48
5.4.60.0000.07016.38
5.4.50.0070.07016.47
5.4.40.0030.04316.37
5.4.30.0030.06716.41
5.4.20.0000.05316.38
5.4.10.0070.05716.31
5.4.00.0030.04315.89
5.3.290.0000.03014.88
5.3.280.0000.07714.88
5.3.270.0070.06314.88
5.3.260.0070.07014.88
5.3.250.0070.04314.88
5.3.240.0070.03714.88
5.3.230.0030.04714.88
5.3.220.0100.07014.88
5.3.210.0070.07714.88
5.3.200.0000.06714.88
5.3.190.0030.04714.88
5.3.180.0030.07014.88
5.3.170.0000.07714.88
5.3.160.0030.05014.88
5.3.150.0100.04014.88
5.3.140.0030.07014.88
5.3.130.0030.07014.88
5.3.120.0000.08314.88
5.3.110.0070.07714.88
5.3.100.0030.03314.88
5.3.90.0100.05714.88
5.3.80.0100.06714.88
5.3.70.0000.06314.88
5.3.60.0000.07714.88
5.3.50.0000.06014.88
5.3.40.0070.06714.88
5.3.30.0000.07314.88
5.3.20.0000.07014.88
5.3.10.0070.07314.88
5.3.00.0030.06714.88
5.2.170.0070.06014.88
5.2.160.0030.06014.88
5.2.150.0000.06714.88
5.2.140.0030.05714.88
5.2.130.0000.04714.88
5.2.120.0030.06014.88
5.2.110.0030.06014.88
5.2.100.0000.05714.88
5.2.90.0070.05314.88
5.2.80.0030.06314.88
5.2.70.0030.04014.88
5.2.60.0000.06314.88
5.2.50.0030.06314.88
5.2.40.0030.05014.88
5.2.30.0070.06014.88
5.2.20.0000.06014.88
5.2.10.0000.06014.88
5.2.00.0070.04014.88
5.1.60.0000.05314.88
5.1.50.0000.05714.88
5.1.40.0000.05314.88
5.1.30.0030.05314.88
5.1.20.0030.05714.88
5.1.10.0030.04714.88
5.1.00.0000.05714.88
5.0.50.0030.04014.88
5.0.40.0030.04014.88
5.0.30.0000.06014.88
5.0.20.0000.05014.88
5.0.10.0000.04014.88
5.0.00.0070.05314.88
4.4.90.0030.03314.88
4.4.80.0030.03014.88
4.4.70.0000.03714.88
4.4.60.0000.03714.88
4.4.50.0000.03314.88
4.4.40.0000.05314.88
4.4.30.0030.02314.88
4.4.20.0000.03714.88
4.4.10.0000.03314.88
4.4.00.0000.05714.88
4.3.110.0070.02314.88
4.3.100.0030.02714.88
4.3.90.0000.03714.88
4.3.80.0070.04314.88
4.3.70.0000.02714.88
4.3.60.0070.02014.88
4.3.50.0030.03014.88
4.3.40.0000.05014.88
4.3.30.0000.02314.88
4.3.20.0000.03714.88
4.3.10.0030.03714.88
4.3.00.0030.03014.88

preferences:
37.73 ms | 401 KiB | 5 Q