3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function a1() { static::foo(); } static public function a2() { static::foo(); } static public function foo() { echo 'A'; } } class B { public function b1() { $this->a1(); A::a2(); } static public function b2() { $this->a1(); A::a2(); } static public function foo() { echo 'B'; } } B::b2();//A $b = new B; $b->b1();//B $b->b2();//A

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.00718.23
8.3.50.0100.00722.05
8.3.40.0070.00718.79
8.3.30.0110.00419.18
8.3.20.0000.00720.07
8.3.10.0080.00022.09
8.3.00.0000.00922.40
8.2.180.0150.00616.38
8.2.170.0070.00722.96
8.2.160.0130.00318.82
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00017.50
8.2.110.0030.00622.28
8.2.100.0080.00419.40
8.2.90.0080.00019.09
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0030.00518.09
8.2.30.0040.00418.00
8.2.20.0040.00417.52
8.2.10.0030.00617.70
8.2.00.0000.00717.66
8.1.280.0100.00725.92
8.1.270.0090.00021.84
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.73
8.1.230.0080.00419.20
8.1.220.0000.00717.79
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0040.00417.40
8.1.180.0000.00918.10
8.1.170.0040.00418.41
8.1.160.0000.00721.95
8.1.150.0000.00718.48
8.1.140.0030.00617.31
8.1.130.0000.00717.76
8.1.120.0070.00017.32
8.1.110.0000.00717.34
8.1.100.0070.00017.36
8.1.90.0000.00717.21
8.1.80.0000.00717.32
8.1.70.0050.00217.28
8.1.60.0080.00317.41
8.1.50.0030.00517.51
8.1.40.0000.00717.42
8.1.30.0030.00517.64
8.1.20.0040.00417.56
8.1.10.0030.00517.55
8.1.00.0050.00217.45
8.0.300.0040.00418.77
8.0.290.0000.00717.03
8.0.280.0040.00418.39
8.0.270.0040.00416.93
8.0.260.0030.00318.28
8.0.250.0080.00016.91
8.0.240.0070.00016.93
8.0.230.0030.00316.99
8.0.220.0040.00416.91
8.0.210.0030.00316.85
8.0.200.0030.00316.93
8.0.190.0030.00616.87
8.0.180.0030.00516.81
8.0.170.0040.00416.89
8.0.160.0000.00716.76
8.0.150.0060.00316.90
8.0.140.0070.00016.86
8.0.130.0030.00313.31
8.0.120.0090.00016.75
8.0.110.0000.00816.87
8.0.100.0040.00417.00
8.0.90.0050.00316.71
8.0.80.0140.00416.84
8.0.70.0070.00016.70
8.0.60.0070.00016.68
8.0.50.0000.00716.93
8.0.30.0110.00816.85
8.0.20.0050.01217.40
8.0.10.0000.00816.93
8.0.00.0130.00816.79
7.4.330.0060.00015.00
7.4.320.0030.00316.33
7.4.300.0000.00716.54
7.4.290.0030.00316.52
7.4.280.0030.00316.56
7.4.270.0000.00716.59
7.4.260.0030.00316.41
7.4.250.0040.00416.41
7.4.240.0030.00316.49
7.4.230.0030.00316.61
7.4.220.0150.00916.43
7.4.210.0050.01116.48
7.4.200.0030.00316.43
7.4.190.0070.00016.49
7.4.160.0070.01516.46
7.4.150.0110.00717.40
7.4.140.0130.01017.86
7.4.130.0070.01216.38
7.4.120.0050.01516.47
7.4.110.0120.00916.63
7.4.100.0130.01016.59
7.4.90.0090.00816.48
7.4.80.0140.00419.39
7.4.70.0090.00916.57
7.4.60.0160.00016.59
7.4.50.0000.00616.52
7.4.40.0040.01122.77
7.4.30.0080.00816.70
7.4.00.0100.00514.96
7.3.330.0050.00013.33
7.3.320.0020.00213.34
7.3.310.0030.00316.34
7.3.300.0030.00316.22
7.3.290.0070.00716.36
7.3.280.0080.01016.35
7.3.270.0130.00317.40
7.3.260.0150.00916.63
7.3.250.0070.01016.54
7.3.240.0100.01116.57
7.3.230.0130.01016.39
7.3.210.0070.01016.29
7.3.200.0100.00719.39
7.3.190.0090.01016.20
7.3.180.0130.00316.48
7.3.170.0110.00416.55
7.3.160.0030.01316.38
7.3.120.0030.01214.86
7.3.110.0110.00314.68
7.3.100.0000.01615.05
7.3.90.0100.00614.78
7.3.80.0070.00714.75
7.3.70.0030.01414.54
7.3.60.0070.00714.62
7.3.50.0040.01114.75
7.3.40.0110.00014.74
7.3.30.0030.00914.74
7.3.20.0080.00616.79
7.3.10.0080.00616.55
7.3.00.0020.01216.42
7.2.330.0040.01416.35
7.2.320.0060.01216.43
7.2.310.0060.01216.61
7.2.300.0120.00816.30
7.2.290.0140.00616.49
7.2.250.0060.01015.07
7.2.240.0100.01014.56
7.2.230.0090.00914.85
7.2.220.0070.00715.13
7.2.210.0070.01015.13
7.2.200.0060.00314.62
7.2.190.0000.01614.86
7.2.180.0090.00614.66
7.2.170.0060.01014.67
7.2.130.0030.01316.64
7.2.120.0110.00416.88
7.2.110.0150.00616.75
7.2.100.0150.00416.38
7.2.90.0000.01916.86
7.2.80.0070.00716.55
7.2.70.0130.00716.55
7.2.60.0100.00916.82
7.2.50.0150.01116.69
7.2.40.0120.00816.68
7.2.30.0190.01216.69
7.2.20.0140.01016.88
7.2.10.0120.01216.44
7.2.00.0060.01018.09
7.1.330.0040.01115.80
7.1.320.0060.00615.54
7.1.310.0050.00515.77
7.1.300.0070.00315.25
7.1.290.0070.00715.80
7.1.280.0100.00315.54
7.1.270.0060.00615.68
7.1.260.0100.00315.65
7.1.250.0130.00715.21
7.1.200.0090.00015.42
7.1.100.0040.01118.08
7.1.70.0060.00316.96
7.1.60.0070.01819.82
7.1.50.0030.01216.91
7.1.00.0070.07322.33
7.0.200.0130.00316.76
7.0.140.0030.07322.12
7.0.60.0030.07019.77
7.0.50.0100.08317.91
7.0.40.0100.06720.18
7.0.30.0200.04720.11
7.0.20.0270.08020.06
7.0.10.0300.07320.27
7.0.00.0000.09020.25
5.6.280.0100.06720.89
5.6.210.0170.07020.68
5.6.200.0070.03718.20
5.6.190.0070.08320.67
5.6.180.3370.03720.63
5.6.170.0270.05020.46
5.6.160.0100.07720.61
5.6.150.0000.06718.18
5.6.140.0070.05018.14
5.6.130.0100.08718.16
5.6.120.0000.08721.15
5.6.110.0100.08021.11
5.6.100.0030.06020.99
5.6.90.0100.08021.02
5.6.80.0030.04020.36
5.6.70.0330.07020.54
5.5.350.0070.08720.39
5.5.340.0130.03017.97
5.5.330.0030.04320.29
5.5.320.0330.05720.34
5.5.310.0270.08020.30
5.5.300.0100.07018.07
5.5.290.0070.05717.98
5.5.280.0130.07720.88
5.5.270.0130.07720.87
5.5.260.0030.06020.80
5.5.250.0100.06720.79
5.5.240.0170.05320.20
5.4.450.0500.06319.61
5.4.440.0130.05319.30
5.4.430.0070.05719.32
5.4.420.0270.05719.63
5.4.410.0130.05019.21
5.4.400.1030.00018.77
5.4.390.0930.00018.84
5.4.380.0270.05018.79
5.4.370.0200.06018.73
5.4.360.0200.05718.66
5.4.350.0230.05018.84
5.4.340.0300.05318.76
5.4.320.0070.03512.51
5.4.310.0050.03712.50
5.4.300.0080.04112.51
5.4.290.0060.03812.51
5.4.280.0080.03812.41
5.4.270.0100.05719.02
5.4.260.0130.07318.96
5.4.250.0070.07018.93
5.4.240.0130.04718.74
5.4.230.0030.06718.90
5.4.220.0130.05018.81
5.4.210.0070.05318.82
5.4.200.0230.06318.93
5.4.190.0170.04719.00
5.4.180.0100.05018.79
5.4.170.0170.06018.94
5.4.160.0100.07018.98
5.4.150.0100.06718.82
5.4.140.0100.06716.45
5.4.130.0030.05016.44
5.4.120.0200.05716.54
5.4.110.0200.04716.70
5.4.100.0130.04316.70
5.4.90.0030.05016.56
5.4.80.0170.04016.52
5.4.70.0070.05016.49
5.4.60.0100.04716.52
5.4.50.0030.05316.47
5.4.40.0070.05316.68
5.4.30.0100.05716.38
5.4.20.0030.05316.50
5.4.10.0070.07016.38
5.4.00.0070.07315.79
5.3.290.0080.03612.80
5.3.280.0070.07014.69
5.3.270.0100.06014.68
5.3.260.0070.06014.64
5.3.250.0030.06014.70
5.3.240.0000.08314.70
5.3.230.0100.04714.82
5.3.220.0030.06714.59
5.3.210.0170.04314.57
5.3.200.0130.05014.60
5.3.190.0030.05314.56
5.3.180.0070.06014.65
5.3.170.0030.07314.65
5.3.160.0000.05714.65
5.3.150.0100.06014.65
5.3.140.0070.05014.64
5.3.130.0100.05014.54
5.3.120.0130.07014.63
5.3.110.0000.06014.54
5.3.100.0170.05714.06
5.3.90.0100.04714.16
5.3.80.0130.04314.10
5.3.70.0230.04014.11
5.3.60.0100.06713.99
5.3.50.0170.05314.04
5.3.40.0130.04713.79
5.3.30.0130.04313.82
5.3.20.0130.04313.69
5.3.10.0030.05313.71
5.3.00.0030.05013.47
5.2.170.0030.04311.22
5.2.160.0100.03711.23
5.2.150.0030.04311.23
5.2.140.0170.04011.30
5.2.130.0030.04011.07
5.2.120.0100.03311.10
5.2.110.0100.03711.25
5.2.100.0030.06011.27
5.2.90.0030.05311.08
5.2.80.0100.03711.26
5.2.70.0030.04310.99
5.2.60.0100.04711.14
5.2.50.0070.04011.00
5.2.40.0100.04011.16
5.2.30.0030.04311.05
5.2.20.0100.05011.03
5.2.10.0070.03710.93
5.2.00.0100.03710.94
5.1.60.0000.0379.98
5.1.50.0030.03710.06
5.1.40.0130.03310.03
5.1.30.0070.03310.42
5.1.20.0130.03010.53
5.1.10.0070.03310.14
5.1.00.0030.05010.16
5.0.50.0030.0378.50
5.0.40.0030.0278.40
5.0.30.0030.0408.28
5.0.20.0100.0308.34
5.0.10.0000.0308.41
5.0.00.0100.0338.25
4.4.90.0030.0276.84
4.4.80.0000.0236.84
4.4.70.0030.0206.84
4.4.60.0030.0206.84
4.4.50.0070.0176.84
4.4.40.0030.0336.84
4.4.30.0000.0306.84
4.4.20.0100.0236.84
4.4.10.0070.0276.84
4.4.00.0070.0376.84
4.3.110.0030.0206.84
4.3.100.0030.0206.84
4.3.90.0070.0176.84
4.3.80.0000.0376.84
4.3.70.0070.0236.84
4.3.60.0000.0236.84
4.3.50.0030.0306.84
4.3.40.0000.0336.84
4.3.30.0070.0206.84
4.3.20.0000.0236.84
4.3.10.0030.0206.84
4.3.00.0070.0277.39

preferences:
52.03 ms | 401 KiB | 5 Q