3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); interface I { function foo(); static function bar(); } class C implements I { public function foo() { echo "foo\n"; } //public static function bar() { echo "bar\n"; } public function test() { $this->foo(); //self::bar(); } } $c = new C(); $c->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.0060.00918.43
8.3.50.0100.01121.89
8.3.40.0120.00918.66
8.3.30.0120.00318.92
8.3.20.0070.00020.16
8.3.10.0050.00323.63
8.3.00.0140.00019.22
8.2.180.0090.00918.25
8.2.170.0100.00322.96
8.2.160.0160.00322.21
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0100.00018.96
8.2.110.0040.00422.20
8.2.100.0100.00317.59
8.2.90.0080.00019.08
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00418.07
8.2.20.0080.00017.68
8.2.10.0000.00717.88
8.2.00.0040.00417.62
8.1.280.0110.00725.92
8.1.270.0040.00418.88
8.1.260.0080.00026.35
8.1.250.0070.01028.09
8.1.240.0060.00323.60
8.1.230.0080.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0000.00818.64
8.1.160.0050.00322.06
8.1.150.0030.00618.78
8.1.140.0040.00419.21
8.1.130.0080.00017.68
8.1.120.0000.00817.43
8.1.110.0050.00317.41
8.1.100.0000.00717.44
8.1.90.0050.00317.43
8.1.80.0070.00017.38
8.1.70.0030.00317.41
8.1.60.0050.00517.51
8.1.50.0000.00917.43
8.1.40.0080.00017.32
8.1.30.0030.00617.49
8.1.20.0000.00817.50
8.1.10.0030.00517.30
8.1.00.0090.00017.34
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0040.00418.52
8.0.270.0030.00317.18
8.0.260.0030.00317.07
8.0.250.0030.00317.00
8.0.240.0060.00316.88
8.0.230.0070.00016.96
8.0.220.0000.00716.93
8.0.210.0020.00516.95
8.0.200.0060.00016.95
8.0.190.0040.00416.95
8.0.180.0000.00716.83
8.0.170.0030.00616.98
8.0.160.0030.00316.86
8.0.150.0070.00016.93
8.0.140.0000.00716.86
8.0.130.0000.00613.34
8.0.120.0080.00016.82
8.0.110.0050.00316.97
8.0.100.0060.00316.72
8.0.90.0030.00316.91
8.0.80.0030.01316.83
8.0.70.0040.00416.85
8.0.60.0000.00716.88
8.0.50.0000.00816.86
8.0.30.0100.01117.18
8.0.20.0170.00617.40
8.0.10.0050.00316.80
8.0.00.0070.01016.80
7.4.330.0020.00215.03
7.4.320.0030.00316.52
7.4.300.0040.00416.52
7.4.290.0000.00616.46
7.4.280.0040.00416.32
7.4.270.0030.00316.54
7.4.260.0030.00316.54
7.4.250.0040.00416.44
7.4.240.0060.00216.54
7.4.230.0040.00416.34
7.4.220.0100.01616.60
7.4.210.0060.00916.42
7.4.200.0050.00316.33
7.4.160.0090.00616.58
7.4.150.0100.01317.40
7.4.140.0130.00517.86
7.4.130.0110.00816.58
7.4.120.0070.01316.53
7.4.110.0180.00416.34
7.4.100.0160.00616.38
7.4.90.0070.01116.25
7.4.80.0060.01619.39
7.4.70.0070.01116.43
7.4.60.0130.00616.50
7.4.50.0050.00316.43
7.4.40.0130.00316.44
7.4.30.0130.01016.30
7.4.00.0080.00714.84
7.3.330.0040.00413.21
7.3.320.0000.00513.24
7.3.310.0000.00716.22
7.3.300.0040.00216.27
7.3.290.0090.00816.24
7.3.280.0110.00616.20
7.3.270.0140.00317.40
7.3.260.0060.01016.41
7.3.250.0110.00716.38
7.3.240.0080.00816.32
7.3.230.0110.00616.39
7.3.210.0070.01316.57
7.3.200.0080.00819.39
7.3.190.0070.01016.42
7.3.180.0190.00316.20
7.3.170.0130.01016.54
7.3.160.0080.00816.41
7.3.120.0110.00714.75
7.3.110.0130.00314.76
7.3.100.0070.01114.57
7.3.90.0000.01114.34
7.3.80.0070.01014.50
7.3.70.0070.01014.77
7.3.60.0060.00314.45
7.3.50.0090.00614.91
7.3.40.0060.00914.81
7.3.30.0120.00314.82
7.3.20.0030.00916.74
7.3.10.0040.00716.82
7.3.00.0100.00316.39
7.2.330.0050.01116.26
7.2.320.0060.01316.55
7.2.310.0080.01516.57
7.2.300.0100.00716.46
7.2.290.0070.00716.43
7.2.250.0100.01014.64
7.2.240.0090.00914.90
7.2.230.0030.01414.82
7.2.220.0080.00415.00
7.2.210.0030.01314.91
7.2.200.0070.00715.09
7.2.190.0030.01314.97
7.2.180.0040.01114.97
7.2.170.0000.01415.00
7.2.80.0070.00716.51
7.2.60.0210.00916.25
7.2.00.0120.01218.91
7.1.330.0000.01515.63
7.1.320.0030.00915.85
7.1.310.0120.00615.75
7.1.300.0040.01115.48
7.1.290.0110.00015.70
7.1.280.0000.01015.42
7.1.270.0070.01115.48
7.1.260.0000.01215.61
7.1.200.0030.01215.64
7.1.100.0030.00918.05
7.1.70.0040.00416.77
7.1.60.0140.01019.46
7.1.50.0040.02216.74
7.1.00.0070.07322.57
7.0.200.0090.00616.70
7.0.140.0030.05322.00
7.0.60.0200.05019.93
7.0.50.0030.08717.84
7.0.40.0070.09720.24
7.0.30.0170.05320.10
7.0.20.0270.05320.27
7.0.10.0030.09020.24
7.0.00.0030.07320.16
5.6.280.0030.07321.16
5.6.210.0130.07720.77
5.6.200.0170.03718.14
5.6.190.0030.04320.60
5.6.180.0400.07020.49
5.6.170.0500.06020.44
5.6.160.0070.04018.18
5.6.150.0030.07718.18
5.6.140.0070.07718.15
5.6.130.0070.03718.19
5.6.120.0070.05321.04
5.6.110.0100.08321.02
5.6.100.0000.05021.17
5.6.90.0070.06020.97
5.6.80.0070.08020.47
5.5.350.0030.08020.37
5.5.340.0100.04018.05
5.5.330.0070.04320.37
5.5.320.0070.07720.34
5.5.310.0330.07020.41
5.5.300.0170.06018.04
5.5.290.0070.08318.02
5.5.280.0070.05320.90
5.5.270.0100.07720.77
5.5.260.0000.07020.80
5.5.250.0170.05320.66
5.5.240.0230.06720.26
5.4.450.0270.04019.62
5.4.440.0870.05019.61
5.4.430.0130.05019.37
5.4.420.0170.05019.67
5.4.410.0200.04319.52
5.4.400.0070.05719.16
5.4.390.0230.05018.70
5.4.380.0170.06018.41
5.4.370.0200.05718.55
5.4.360.0270.05018.55
5.4.350.0270.05718.70
5.4.340.0270.05018.73
5.4.320.0230.05718.54
5.4.310.0370.04318.71
5.4.300.0170.06018.69
5.4.290.0230.05718.72
5.4.280.0330.05718.54
5.4.270.0270.05318.72
5.4.260.0300.04718.68
5.4.250.0330.06018.62
5.4.240.0330.05318.58
5.4.230.0270.05318.55
5.4.220.0270.05318.58
5.4.210.0270.05018.71
5.4.200.0300.05316.59
5.4.190.0270.05018.47
5.4.180.0370.04318.58
5.4.170.0300.05018.33
5.4.160.0230.05318.70
5.4.150.0270.05718.39
5.4.140.0230.06016.43
5.4.130.0230.04716.29
5.4.120.0270.05316.28
5.4.110.0200.05016.43
5.4.100.0200.05716.33
5.4.90.0330.04316.33
5.4.80.0300.05716.32
5.4.70.0300.05016.17
5.4.60.0200.05316.27
5.4.50.0330.05016.27
5.4.40.0370.05016.39
5.4.30.0230.05316.32
5.4.20.0400.04016.26
5.4.10.0200.05716.23
5.4.00.0170.05715.63
5.3.290.0300.05014.68
5.3.280.0270.05014.70
5.3.270.0270.05714.83
5.3.260.0070.07014.66
5.3.250.0300.05014.60
5.3.240.0370.05314.71
5.3.230.0230.05714.61
5.3.220.0270.05014.79
5.3.210.0300.05014.73
5.3.200.0300.05314.79
5.3.190.0200.05714.70
5.3.180.0400.04714.61
5.3.170.0430.04014.74
5.3.160.0370.04314.76
5.3.150.0300.06014.77
5.3.140.0330.04714.55
5.3.130.0330.05014.57
5.3.120.0400.04314.68
5.3.110.0300.05014.77
5.3.100.0300.05714.07
5.3.90.0330.04314.15
5.3.80.0270.05014.23
5.3.70.0300.05714.21
5.3.60.0230.05014.06
5.3.50.0270.05014.08
5.3.40.0270.05314.06
5.3.30.0200.05314.12
5.3.20.0300.04713.74
5.3.10.0270.04713.71
5.3.00.0270.05013.63
5.2.170.0130.04311.25
5.2.160.0170.04711.18
5.2.150.0230.04011.22
5.2.140.0230.03711.16
5.2.130.0230.04011.13
5.2.120.0130.04711.14
5.2.110.0270.03311.32
5.2.100.0170.04311.10
5.2.90.0230.03711.08
5.2.80.0130.04711.14
5.2.70.0330.03011.22
5.2.60.0270.03311.18
5.2.50.0130.04711.10
5.2.40.0170.04011.09
5.2.30.0200.04011.09
5.2.20.0170.04010.96
5.2.10.0200.03710.91
5.2.00.0170.04010.82
5.1.60.0200.03310.13
5.1.50.0130.04010.11
5.1.40.0130.0379.96
5.1.30.0200.04010.32
5.1.20.0230.03310.39
5.1.10.0230.03310.20
5.1.00.0200.03310.10
5.0.50.0130.0278.57
5.0.40.0100.0278.46
5.0.30.0070.0478.43
5.0.20.0130.0238.33
5.0.10.0130.0308.30
5.0.00.0170.0438.19
4.4.90.0130.0175.88
4.4.80.0070.0235.89
4.4.70.0030.0275.82
4.4.60.0070.0235.89
4.4.50.0100.0275.90
4.4.40.0100.0375.86
4.4.30.0100.0205.95
4.4.20.0100.0235.98
4.4.10.0200.0105.97
4.4.00.0100.0335.91
4.3.110.0130.0175.80
4.3.100.0030.0235.79
4.3.90.0070.0235.79
4.3.80.0130.0305.84
4.3.70.0130.0175.80
4.3.60.0100.0205.81
4.3.50.0100.0235.80
4.3.40.0170.0335.77
4.3.30.0000.0274.55
4.3.20.0100.0174.55
4.3.10.0030.0234.49
4.3.00.0070.0178.31

preferences:
55.64 ms | 401 KiB | 5 Q