3v4l.org

run code in 300+ PHP versions simultaneously
:<?php interface FooInterface { } class Foo implements FooInterface { } class Foo2 extends Foo { } interface BarInterface { public function fooAction(Foo2 $foo); } class Bar implements BarInterface { public function fooAction(FooInterface $foo) { } } $bar = new Bar; $foo = new Foo; $bar->fooAction($foo); ?>

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.70.0100.01016.50
8.3.60.0110.01118.43
8.3.50.0090.00921.99
8.3.40.0090.00618.70
8.3.30.0100.00319.23
8.3.20.0070.00020.34
8.3.10.0040.00422.10
8.3.00.0000.00822.32
8.2.180.0140.00716.63
8.2.170.0080.00522.96
8.2.160.0080.00819.04
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0140.00026.16
8.2.120.0040.00419.26
8.2.110.0070.01022.07
8.2.100.0040.00817.72
8.2.90.0000.00818.03
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0030.00618.22
8.2.30.0000.00717.95
8.2.20.0040.00417.66
8.2.10.0030.00617.57
8.2.00.0080.00017.61
8.1.280.0030.01325.92
8.1.270.0000.00822.02
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00322.53
8.1.230.0070.00421.04
8.1.220.0030.00617.74
8.1.210.0060.00318.92
8.1.200.0000.00917.13
8.1.190.0080.00017.40
8.1.180.0040.00418.56
8.1.170.0030.00618.50
8.1.160.0070.00022.07
8.1.150.0040.00418.70
8.1.140.0030.00617.38
8.1.130.0070.00017.80
8.1.120.0000.00817.38
8.1.110.0040.00417.52
8.1.100.0030.00317.44
8.1.90.0050.00317.46
8.1.80.0000.00717.43
8.1.70.0000.00717.37
8.1.60.0090.00017.57
8.1.50.0000.00817.59
8.1.40.0030.00617.46
8.1.30.0040.00417.68
8.1.20.0040.00417.53
8.1.10.0040.00417.64
8.1.00.0030.00517.58
8.0.300.0060.00319.91
8.0.290.0000.00717.05
8.0.280.0070.00018.59
8.0.270.0040.00417.30
8.0.260.0060.00016.77
8.0.250.0000.00816.92
8.0.240.0070.00017.03
8.0.230.0030.00317.03
8.0.220.0070.00016.93
8.0.210.0030.00316.94
8.0.200.0060.00017.08
8.0.190.0080.00016.91
8.0.180.0000.00816.89
8.0.170.0050.00316.97
8.0.160.0070.00017.00
8.0.150.0030.00316.95
8.0.140.0040.00416.83
8.0.130.0050.00013.41
8.0.120.0040.00416.81
8.0.110.0070.00016.96
8.0.100.0040.00417.02
8.0.90.0040.00416.88
8.0.80.0070.00716.95
8.0.70.0000.00816.84
8.0.60.0000.00716.99
8.0.50.0040.00416.80
8.0.30.0120.01217.21
8.0.20.0090.01017.40
8.0.10.0000.00717.07
8.0.00.0100.01016.63
7.4.330.0020.00215.07
7.4.320.0000.00616.64
7.4.300.0030.00316.53
7.4.290.0030.00316.64
7.4.280.0030.00316.55
7.4.270.0070.00016.59
7.4.260.0030.00316.53
7.4.250.0000.00816.40
7.4.240.0020.00616.64
7.4.230.0030.00316.31
7.4.220.0180.00616.46
7.4.210.0080.00716.47
7.4.200.0040.00316.41
7.4.190.0030.00316.48
7.4.160.0000.01516.45
7.4.150.0100.00617.40
7.4.140.0130.01017.86
7.4.130.0070.01016.50
7.4.120.0090.00916.56
7.4.110.0070.01416.50
7.4.100.0100.00716.59
7.4.90.0110.00716.69
7.4.80.0140.00319.39
7.4.70.0060.01616.41
7.4.60.0030.01316.51
7.4.50.0000.00516.31
7.4.40.0060.00622.77
7.4.30.0110.00616.48
7.4.00.0000.01514.71
7.3.330.0000.00613.13
7.3.320.0050.00013.25
7.3.310.0060.00316.29
7.3.300.0030.00316.16
7.3.290.0070.01016.20
7.3.280.0100.00916.27
7.3.270.0130.00717.40
7.3.260.0100.00716.21
7.3.250.0100.00716.28
7.3.240.0160.00816.51
7.3.230.0130.00716.57
7.3.210.0110.00716.23
7.3.200.0050.01119.39
7.3.190.0060.01316.56
7.3.180.0060.00916.22
7.3.170.0140.00416.32
7.3.160.0120.00316.35
7.3.120.0050.00814.78
7.2.330.0140.00616.27
7.2.320.0130.00316.61
7.2.310.0100.01216.64
7.2.300.0060.00916.69
7.2.290.0090.01216.33
7.2.60.0150.00416.55
7.2.00.0000.01219.26
7.1.200.0040.01115.56
7.1.100.0040.01118.22
7.1.70.0080.00817.14
7.1.60.0070.01119.82
7.1.50.0120.00616.54
7.1.00.0070.08322.40
7.0.200.0040.00416.80
7.0.140.0100.06722.00
7.0.60.0030.08020.04
7.0.50.0100.03317.85
7.0.40.0100.05320.11
7.0.30.0230.04320.31
7.0.20.0270.08020.22
7.0.10.0070.06020.14
7.0.00.0230.05320.23
5.6.280.0030.07320.93
5.6.210.0130.03320.70
5.6.200.0100.07018.22
5.6.190.0030.06720.68
5.6.180.3200.03720.52
5.6.170.0230.04020.53
5.6.160.0030.09020.43
5.6.150.0030.04318.20
5.6.140.0130.07318.18
5.6.130.0070.06318.32
5.6.120.0130.07721.06
5.6.110.0100.07021.14
5.6.100.0170.07721.12
5.6.90.0100.05321.13
5.6.80.0070.04020.38
5.6.70.0330.08020.52
5.5.350.0070.08020.36
5.5.340.0100.08017.97
5.5.330.0100.08020.21
5.5.320.0200.08720.24
5.5.310.0170.04020.48
5.5.300.0070.04018.07
5.5.290.0130.08018.04
5.5.280.0070.08320.88
5.5.270.0000.04320.68
5.5.260.0070.05320.77
5.5.250.0200.07320.70
5.5.240.0230.06320.24
5.4.450.0600.07719.62
5.4.440.0630.04319.63
5.4.430.0070.06019.43
5.4.420.0170.05019.63
5.4.410.0170.05019.27
5.4.400.1100.00018.73
5.4.390.0900.00018.77
5.4.380.0330.06718.59
5.4.370.1030.04718.80
5.4.360.0770.05018.73
5.4.350.1030.05318.61
5.4.340.0970.04718.75
5.4.320.0080.04412.51
5.4.310.0080.03812.51
5.4.300.0070.03412.50
5.4.290.0040.04012.50
5.4.280.0070.03712.40
5.4.270.0050.03712.40
5.4.260.0100.05018.61
5.4.250.0100.06018.96
5.4.240.0070.05718.98
5.4.230.0100.05718.61
5.4.220.0070.05318.96
5.4.210.0130.06318.76
5.4.200.0100.06318.95
5.4.190.0100.05018.92
5.4.180.0100.06018.96
5.4.170.0070.07718.86
5.4.160.0100.05018.96
5.4.150.0170.05718.60
5.4.140.0070.05016.44
5.4.130.0070.07316.43
5.4.120.0100.05016.36
5.4.110.0030.05716.67
5.4.100.0100.05716.57
5.4.90.0000.05316.57
5.4.80.0130.04716.33
5.4.70.0100.04716.65
5.4.60.0130.07016.51
5.4.50.0170.04016.40
5.4.40.0070.05016.36
5.4.30.0070.05016.34
5.4.20.0030.05716.34
5.4.10.0100.04716.35
5.4.00.0030.05715.98
5.3.290.0070.04512.80
5.3.280.0100.04714.61
5.3.270.0070.05314.75
5.3.260.0100.05314.76
5.3.250.0170.04014.83
5.3.240.0030.08014.70
5.3.230.0000.05714.63
5.3.220.0000.05714.75
5.3.210.0030.05314.66
5.3.200.0070.05014.76
5.3.190.0070.06314.61
5.3.180.0070.04714.63
5.3.170.0100.06314.56
5.3.160.0070.05314.54
5.3.150.0170.04014.55
5.3.140.0030.05314.64
5.3.130.0030.07714.46
5.3.120.0200.06314.38
5.3.110.0000.06014.64
5.3.100.0100.04714.21
5.3.90.0100.06714.10
5.3.80.0170.04313.86
5.3.70.0070.05314.11
5.3.60.0070.05314.07
5.3.50.0030.05714.06
5.3.40.0030.05313.96
5.3.30.0070.06014.00
5.3.20.0070.06013.78
5.3.10.0130.05313.64
5.3.00.0100.04713.55
5.2.170.0130.03711.38
5.2.160.0030.04011.22
5.2.150.0070.04011.23
5.2.140.0100.03711.32
5.2.130.0100.04711.09
5.2.120.0000.04711.06
5.2.110.0000.04311.01
5.2.100.0070.04011.17
5.2.90.0100.03711.20
5.2.80.0030.05711.18
5.2.70.0000.04711.17
5.2.60.0000.05011.13
5.2.50.0070.05711.02
5.2.40.0070.03711.09
5.2.30.0000.04310.81
5.2.20.0000.04710.98
5.2.10.0100.03310.85
5.2.00.0030.04010.89
5.1.60.0000.03710.10
5.1.50.0100.02710.10
5.1.40.0070.03010.19
5.1.30.0000.03710.40
5.1.20.0000.04010.34
5.1.10.0030.03710.17
5.1.00.0070.03310.12
5.0.50.0000.0308.51
5.0.40.0030.0308.65
5.0.30.0070.0478.30
5.0.20.0100.0208.29
5.0.10.0030.0278.21
5.0.00.0030.0408.41
4.4.90.0030.0236.81
4.4.80.0030.0236.81
4.4.70.0030.0276.81
4.4.60.0070.0276.81
4.4.50.0000.0306.81
4.4.40.0000.0336.81
4.4.30.0130.0106.81
4.4.20.0030.0206.81
4.4.10.0030.0206.81
4.4.00.0000.0376.81
4.3.110.0000.0236.81
4.3.100.0000.0236.81
4.3.90.0030.0206.81
4.3.80.0030.0406.81
4.3.70.0000.0236.81
4.3.60.0100.0136.81
4.3.50.0030.0206.81
4.3.40.0000.0336.81
4.3.30.0000.0236.81
4.3.20.0000.0306.81
4.3.10.0070.0176.81
4.3.00.0130.0309.25

preferences:
45.03 ms | 401 KiB | 5 Q