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.0180.00318.23
8.3.50.0110.00621.92
8.3.40.0110.00418.84
8.3.30.0090.00619.12
8.3.20.0000.00820.21
8.3.10.0040.00423.48
8.3.00.0070.00718.89
8.2.180.0040.01218.13
8.2.170.0070.00722.96
8.2.160.0060.00922.26
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.01026.16
8.2.120.0040.00421.00
8.2.110.0140.00722.15
8.2.100.0130.00017.78
8.2.90.0000.00719.27
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0070.00018.16
8.2.30.0000.00717.99
8.2.20.0000.00717.76
8.2.10.0070.00018.03
8.2.00.0030.00617.70
8.1.280.0120.00925.92
8.1.270.0000.00918.80
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0140.00323.79
8.1.230.0110.00719.09
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0080.00017.00
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0000.00821.95
8.1.150.0040.00418.74
8.1.140.0040.00419.17
8.1.130.0040.00417.75
8.1.120.0030.00317.43
8.1.110.0030.00517.38
8.1.100.0070.00017.40
8.1.90.0000.00717.43
8.1.80.0030.00317.44
8.1.70.0030.00317.50
8.1.60.0090.00017.56
8.1.50.0050.00317.43
8.1.40.0000.00917.44
8.1.30.0040.00417.55
8.1.20.0000.00817.61
8.1.10.0060.00317.50
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0040.00418.52
8.0.270.0000.00717.13
8.0.260.0000.00617.31
8.0.250.0000.00817.01
8.0.240.0090.00016.91
8.0.230.0070.00016.94
8.0.220.0000.00716.80
8.0.210.0000.00716.91
8.0.200.0030.00316.92
8.0.190.0020.00516.93
8.0.180.0040.00416.90
8.0.170.0000.00816.82
8.0.160.0050.00216.95
8.0.150.0030.00316.86
8.0.140.0040.00416.76
8.0.130.0030.00313.36
8.0.120.0000.00816.86
8.0.110.0070.00016.93
8.0.100.0000.00816.84
8.0.90.0030.00316.79
8.0.80.0030.01316.86
8.0.70.0040.00416.89
8.0.60.0070.00016.96
8.0.50.0040.00416.79
8.0.30.0060.01417.20
8.0.20.0090.01117.40
8.0.10.0040.00416.91
8.0.00.0040.01416.88
7.4.330.0000.00615.09
7.4.320.0040.00416.65
7.4.300.0000.00816.61
7.4.290.0070.00016.50
7.4.280.0000.00816.54
7.4.270.0000.00616.46
7.4.260.0030.00316.54
7.4.250.0000.00716.52
7.4.240.0020.00616.52
7.4.230.0030.00316.39
7.4.220.0120.00616.40
7.4.210.0090.00816.62
7.4.200.0000.00816.64
7.4.160.0160.00016.63
7.4.150.0030.01317.40
7.4.140.0050.01317.86
7.4.130.0130.00616.44
7.4.120.0110.01016.51
7.4.110.0090.00916.64
7.4.100.0090.01216.53
7.4.90.0090.00916.44
7.4.80.0090.00919.39
7.4.70.0060.01616.47
7.4.60.0090.00916.61
7.4.50.0040.00416.29
7.4.40.0090.00916.70
7.4.30.0160.00716.50
7.4.00.0020.01514.94
7.3.330.0060.00013.25
7.3.320.0000.00613.23
7.3.310.0000.00816.11
7.3.300.0030.00316.14
7.3.290.0070.00916.19
7.3.280.0100.00616.23
7.3.270.0130.00317.40
7.3.260.0110.00916.54
7.3.250.0100.00716.49
7.3.240.0140.00716.20
7.3.230.0110.00716.39
7.3.210.0100.01016.23
7.3.200.0040.01119.39
7.3.190.0060.01016.20
7.3.180.0060.01016.28
7.3.170.0080.01316.39
7.3.160.0150.00616.38
7.3.120.0100.00714.84
7.3.110.0070.01014.74
7.3.100.0070.01014.61
7.3.90.0000.01414.43
7.3.80.0000.01214.74
7.3.70.0130.00014.75
7.3.60.0000.01214.53
7.3.50.0100.00314.63
7.3.40.0040.01214.70
7.3.30.0100.00314.52
7.3.20.0050.00516.53
7.3.10.0040.01116.32
7.3.00.0030.01016.63
7.2.330.0110.00616.61
7.2.320.0110.00816.57
7.2.310.0130.01016.68
7.2.300.0100.00716.64
7.2.290.0120.00916.59
7.2.250.0100.01014.93
7.2.240.0100.01015.25
7.2.230.0080.00814.91
7.2.220.0030.01214.96
7.2.210.0060.00615.00
7.2.200.0030.00915.07
7.2.190.0050.00514.77
7.2.180.0060.00914.97
7.2.170.0090.00614.79
7.2.60.0030.00716.73
7.2.00.0060.00919.56
7.1.330.0060.00615.63
7.1.320.0000.01315.73
7.1.310.0060.00615.95
7.1.300.0030.01415.55
7.1.290.0050.00915.87
7.1.280.0060.00615.65
7.1.270.0060.00615.75
7.1.260.0030.00915.59
7.1.200.0080.00315.67
7.1.100.0000.01318.14
7.1.70.0060.00617.16
7.1.60.0000.02219.46
7.1.50.0060.00616.88
7.1.00.0100.07022.35
7.0.200.0000.00816.82
7.0.140.0030.04321.97
7.0.60.0030.05319.95
7.0.50.0070.06717.85
7.0.40.0030.09320.16
7.0.30.0230.05320.07
7.0.20.0200.07720.09
7.0.10.0070.08320.16
7.0.00.0070.06020.14
5.6.280.0030.07320.82
5.6.210.0100.07720.67
5.6.200.0030.07318.19
5.6.190.0100.03720.47
5.6.180.0400.03720.57
5.6.170.0300.05320.46
5.6.160.0170.07320.47
5.6.150.0100.07318.18
5.6.140.0070.04318.11
5.6.130.0070.08718.23
5.6.120.0070.08321.00
5.6.110.0070.04021.14
5.6.100.0100.07721.01
5.6.90.0100.03320.99
5.6.80.0100.07720.53
5.5.350.0130.03320.41
5.5.340.0170.07018.05
5.5.330.0130.04320.29
5.5.320.0000.09020.36
5.5.310.0470.06020.29
5.5.300.0030.09018.04
5.5.290.0100.07017.92
5.5.280.0170.06720.88
5.5.270.0070.06020.87
5.5.260.0130.06020.80
5.5.250.0100.03320.69
5.5.240.0100.07320.27
5.4.450.0000.06719.34
5.4.440.0500.05319.21
5.4.430.0100.05319.38
5.4.420.0230.04319.45
5.4.410.0130.07319.41
5.4.400.0030.06019.06
5.4.390.0330.05018.70
5.4.380.0400.05018.61
5.4.370.0330.06318.73
5.4.360.0330.05018.69
5.4.350.0300.06318.70
5.4.340.0370.06718.50
5.4.320.0400.06318.69
5.4.310.0370.05018.55
5.4.300.0270.06018.45
5.4.290.0330.05718.55
5.4.280.0370.07018.47
5.4.270.0370.04718.58
5.4.260.0300.05018.71
5.4.250.0330.04718.54
5.4.240.0270.06718.64
5.4.230.0470.06318.73
5.4.220.0300.05718.45
5.4.210.0230.05718.48
5.4.200.0330.04716.80
5.4.190.0300.05018.59
5.4.180.0330.06318.55
5.4.170.0370.05018.70
5.4.160.0370.05318.53
5.4.150.0300.07018.71
5.4.140.0370.05316.19
5.4.130.0330.05016.24
5.4.120.0300.05316.44
5.4.110.0470.07316.33
5.4.100.0300.05716.29
5.4.90.0300.05316.34
5.4.80.0500.05016.41
5.4.70.0270.06316.27
5.4.60.0300.06016.17
5.4.50.0230.05316.24
5.4.40.0330.05016.30
5.4.30.0370.05016.24
5.4.20.0270.05716.16
5.4.10.0300.05716.38
5.4.00.0270.05015.89
5.3.290.0370.04714.71
5.3.280.0270.05714.64
5.3.270.0230.05714.77
5.3.260.0400.05714.64
5.3.250.0370.04714.73
5.3.240.0330.05014.64
5.3.230.0270.05314.63
5.3.220.0430.04714.70
5.3.210.0370.05714.75
5.3.200.0300.04714.56
5.3.190.0330.04714.79
5.3.180.0370.05714.60
5.3.170.0370.05714.59
5.3.160.0270.06014.60
5.3.150.0230.05714.55
5.3.140.0300.05014.69
5.3.130.0300.07714.57
5.3.120.0330.05314.59
5.3.110.0230.05714.67
5.3.100.0300.06014.05
5.3.90.0270.05014.13
5.3.80.0270.05014.13
5.3.70.0270.05714.13
5.3.60.0300.05314.06
5.3.50.0330.04314.01
5.3.40.0230.05714.07
5.3.30.0270.05314.02
5.3.20.0200.05713.75
5.3.10.0330.04013.76
5.3.00.0230.05313.82
5.2.170.0230.04011.19
5.2.160.0170.04711.15
5.2.150.0200.04011.18
5.2.140.0230.04011.26
5.2.130.0170.04311.19
5.2.120.0170.04711.21
5.2.110.0200.04311.24
5.2.100.0200.04011.16
5.2.90.0130.05711.13
5.2.80.0270.04011.17
5.2.70.0330.03311.16
5.2.60.0300.03711.10
5.2.50.0230.04311.01
5.2.40.0300.03011.04
5.2.30.0130.05011.07
5.2.20.0200.04011.09
5.2.10.0170.04010.91
5.2.00.0200.04010.75
5.1.60.0130.03310.19
5.1.50.0170.03710.08
5.1.40.0200.03310.02
5.1.30.0200.03310.44
5.1.20.0170.04010.35
5.1.10.0170.03310.29
5.1.00.0200.03310.17
5.0.50.0130.0338.73
5.0.40.0130.0378.50
5.0.30.0130.0408.27
5.0.20.0130.0308.22
5.0.10.0130.0238.25
5.0.00.0100.0438.25
4.4.90.0130.0205.93
4.4.80.0100.0205.91
4.4.70.0100.0205.87
4.4.60.0070.0235.90
4.4.50.0070.0235.93
4.4.40.0070.0375.88
4.4.30.0070.0235.88
4.4.20.0100.0205.95
4.4.10.0100.0205.93
4.4.00.0130.0305.94
4.3.110.0070.0235.79
4.3.100.0100.0205.82
4.3.90.0070.0235.84
4.3.80.0100.0335.80
4.3.70.0100.0205.87
4.3.60.0100.0175.89
4.3.50.0070.0235.87
4.3.40.0030.0375.75
4.3.30.0070.0234.54
4.3.20.0000.0274.62
4.3.10.0030.0234.57
4.3.00.0070.0178.32

preferences:
38.43 ms | 401 KiB | 5 Q