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() { A::a2(); } static public function b2() { 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.0110.00718.18
8.3.50.0070.00718.31
8.3.40.0100.01018.85
8.3.30.0070.00718.96
8.3.20.0040.00420.29
8.3.10.0080.00021.90
8.3.00.0040.00422.21
8.2.180.0140.00716.38
8.2.170.0140.00722.96
8.2.160.0030.01318.96
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0000.00819.48
8.2.110.0090.00022.25
8.2.100.0000.01217.78
8.2.90.0050.00319.28
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0030.00618.34
8.2.30.0040.00417.81
8.2.20.0070.00017.60
8.2.10.0040.00419.45
8.2.00.0040.00417.72
8.1.270.0050.00322.05
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00622.50
8.1.230.0090.00322.63
8.1.220.0070.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.41
8.1.180.0080.00018.10
8.1.170.0000.00818.59
8.1.160.0000.00721.88
8.1.150.0040.00418.59
8.1.140.0040.00417.39
8.1.130.0030.00317.83
8.1.120.0070.00017.37
8.1.110.0000.00717.26
8.1.100.0050.00217.40
8.1.90.0070.00017.37
8.1.80.0040.00417.46
8.1.70.0000.00717.39
8.1.60.0080.00417.55
8.1.50.0050.00317.52
8.1.40.0040.00417.54
8.1.30.0030.00517.56
8.1.20.0080.00017.63
8.1.10.0030.00517.46
8.1.00.0060.00317.47
8.0.300.0070.00018.77
8.0.290.0070.00017.18
8.0.280.0000.00818.43
8.0.270.0030.00317.20
8.0.260.0000.00716.70
8.0.250.0040.00416.85
8.0.240.0040.00416.82
8.0.230.0070.00016.78
8.0.220.0030.00316.75
8.0.210.0030.00316.82
8.0.200.0070.00016.93
8.0.190.0040.00416.91
8.0.180.0050.00316.84
8.0.170.0000.00716.84
8.0.160.0060.00316.81
8.0.150.0000.00816.74
8.0.140.0030.00316.72
8.0.130.0000.00613.26
8.0.120.0000.00816.76
8.0.110.0000.00916.85
8.0.100.0000.00716.72
8.0.90.0030.00516.87
8.0.80.0110.01116.77
8.0.70.0020.00516.82
8.0.60.0040.00316.71
8.0.50.0000.00716.88
8.0.30.0060.01316.87
8.0.20.0080.01017.40
8.0.10.0000.00716.90
8.0.00.0070.01116.79
7.4.330.0000.00515.14
7.4.320.0060.00016.52
7.4.300.0000.00716.52
7.4.290.0000.00716.52
7.4.280.0020.00516.48
7.4.270.0000.00716.42
7.4.260.0030.00316.53
7.4.250.0040.00416.61
7.4.240.0020.00516.50
7.4.230.0000.00716.31
7.4.220.0030.01516.63
7.4.210.0100.00916.61
7.4.200.0030.00316.53
7.4.190.0030.00316.41
7.4.160.0060.00916.55
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0100.01116.48
7.4.120.0070.01016.61
7.4.110.0120.01216.52
7.4.100.0100.00716.54
7.4.90.0100.00716.44
7.4.80.0130.00319.39
7.4.70.0160.00016.48
7.4.60.0120.00616.28
7.4.50.0040.00016.32
7.4.40.0100.00022.77
7.4.30.0060.01016.35
7.4.00.0070.01115.21
7.3.330.0000.00513.05
7.3.320.0000.00513.26
7.3.310.0000.00716.26
7.3.300.0030.00316.11
7.3.290.0060.00916.13
7.3.280.0080.01016.20
7.3.270.0070.01017.40
7.3.260.0100.01016.54
7.3.250.0100.00816.23
7.3.240.0110.01116.42
7.3.230.0030.01316.39
7.3.210.0210.00316.38
7.3.200.0140.00719.39
7.3.190.0120.00616.23
7.3.180.0060.01016.43
7.3.170.0060.01116.30
7.3.160.0090.00616.44
7.3.120.0090.00314.85
7.2.330.0070.01716.23
7.2.320.0130.00616.66
7.2.310.0070.01016.75
7.2.300.0090.01616.45
7.2.290.0060.01216.34
7.2.00.0070.00719.41
7.1.100.0040.00717.71
7.1.70.0000.01217.04
7.1.60.0090.00617.31
7.1.50.0070.01416.82
7.1.00.0100.06722.44
7.0.200.0060.01216.50
7.0.140.0100.07021.98
7.0.60.0100.05719.91
7.0.50.0070.05017.87
7.0.40.0200.07320.20
7.0.30.0230.03720.21
7.0.20.0270.08020.33
7.0.10.0130.08020.07
7.0.00.0000.04720.12
5.6.280.0030.07320.79
5.6.210.0030.04020.73
5.6.200.0170.07718.19
5.6.190.0100.05720.46
5.6.180.0270.04720.64
5.6.170.0330.03720.54
5.6.160.0100.03720.54
5.6.150.0130.05318.15
5.6.140.0070.08018.14
5.6.130.0030.06318.20
5.6.120.0030.05021.06
5.6.110.0000.09020.96
5.6.100.0130.03020.99
5.6.90.0130.07721.00
5.6.80.0070.05020.52
5.5.350.0100.03720.44
5.5.340.0100.07017.93
5.5.330.0170.07320.38
5.5.320.0270.08720.27
5.5.310.0430.07020.41
5.5.300.0070.04018.01
5.5.290.0070.07017.94
5.5.280.0070.04020.81
5.5.270.0100.06020.77
5.5.260.0100.04320.80
5.5.250.0070.06020.71
5.5.240.0000.03320.34
5.4.450.0230.05719.47
5.4.440.0300.07019.30
5.4.430.0130.05719.46
5.4.420.0170.05019.47
5.4.410.0070.05318.87
5.4.400.0300.04718.89
5.4.390.0200.05718.82
5.4.380.0100.05718.71
5.4.370.0100.05018.47
5.4.360.0100.05718.70
5.4.350.0070.03412.03
5.4.340.0050.04512.02
5.4.320.0090.04912.51
5.4.310.0060.03812.51
5.4.300.0030.04312.51
5.4.290.0050.03812.50
5.4.280.0120.04012.40
5.4.270.0100.05319.01
5.4.260.0070.06018.82
5.4.250.0170.06318.96
5.4.240.0130.04718.98
5.4.230.0100.04718.65
5.4.220.0130.04718.74
5.4.210.0070.05318.96
5.4.200.0130.05018.77
5.4.190.0070.05018.75
5.4.180.0100.06318.83
5.4.170.0200.04018.89
5.4.160.0100.05018.79
5.4.150.0130.05018.75
5.4.140.0170.04716.37
5.4.130.0130.04316.41
5.4.120.0100.05316.38
5.4.110.0070.05016.39
5.4.100.0100.04316.57
5.4.90.0130.04316.71
5.4.80.0170.05316.43
5.4.70.0070.05716.45
5.4.60.0070.07016.50
5.4.50.0170.05716.50
5.4.40.0070.05716.44
5.4.30.0070.05716.30
5.4.20.0100.04316.63
5.4.10.0100.06716.47
5.4.00.0070.05715.82
5.3.290.0110.03412.80
5.3.280.0100.06314.59
5.3.270.0100.05014.83
5.3.260.0070.05714.77
5.3.250.0200.06714.68
5.3.240.0070.05314.68
5.3.230.0130.06314.61
5.3.220.0070.05014.55
5.3.210.0070.07314.80
5.3.200.0070.05014.68
5.3.190.0070.05314.75
5.3.180.0130.04314.73
5.3.170.0100.05014.64
5.3.160.0100.04714.75
5.3.150.0100.05014.64
5.3.140.0130.06314.79
5.3.130.0100.05014.52
5.3.120.0070.05714.55
5.3.110.0170.06714.63
5.3.100.0130.05714.12
5.3.90.0100.04714.15
5.3.80.0030.05314.18
5.3.70.0130.04713.93
5.3.60.0030.05013.99
5.3.50.0100.04314.04
5.3.40.0000.05314.03
5.3.30.0130.04313.98
5.3.20.0130.04013.68
5.3.10.0100.04313.73
5.3.00.0100.06313.71
5.2.170.0100.04311.13
5.2.160.0100.03311.05
5.2.150.0030.04311.37
5.2.140.0070.04311.20
5.2.130.0100.03711.26
5.2.120.0100.05010.93
5.2.110.0000.05311.16
5.2.100.0030.05311.31
5.2.90.0100.03710.93
5.2.80.0100.03311.27
5.2.70.0170.03011.18
5.2.60.0030.04311.02
5.2.50.0100.04311.09
5.2.40.0070.04011.07
5.2.30.0070.04010.95
5.2.20.0070.03710.95
5.2.10.0000.04310.84
5.2.00.0070.05710.78
5.1.60.0070.03010.04
5.1.50.0070.03310.05
5.1.40.0130.03310.22
5.1.30.0070.05010.51
5.1.20.0070.03310.44
5.1.10.0000.0409.99
5.1.00.0070.0379.99
5.0.50.0000.0308.61
5.0.40.0130.0208.36
5.0.30.0030.0478.28
5.0.20.0070.0278.18
5.0.10.0100.0208.16
5.0.00.0000.0578.11
4.4.90.0130.0176.84
4.4.80.0030.0206.84
4.4.70.0030.0206.84
4.4.60.0000.0236.84
4.4.50.0030.0236.84
4.4.40.0130.0236.84
4.4.30.0100.0136.84
4.4.20.0030.0236.84
4.4.10.0070.0176.84
4.4.00.0000.0376.84
4.3.110.0000.0236.84
4.3.100.0030.0236.84
4.3.90.0100.0206.84
4.3.80.0100.0276.84
4.3.70.0030.0276.84
4.3.60.0030.0276.84
4.3.50.0030.0236.84
4.3.40.0030.0406.84
4.3.30.0070.0176.84
4.3.20.0030.0276.84
4.3.10.0030.0206.84
4.3.00.0100.0277.57

preferences:
60.91 ms | 400 KiB | 5 Q