3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { public function foo(...$args) : self; } class B implements A { public function foo(...$args) : self { foreach ($args as $arg) { echo $arg."\n"; } } } $x = new B; $x->foo(1, 2, 3);

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.4.130.0050.00417.98
8.4.120.0070.00120.67
8.4.110.0110.01020.38
8.4.100.0030.00618.70
8.4.90.0070.00218.89
8.4.80.0040.00618.75
8.4.70.0140.00920.09
8.4.60.0090.01219.05
8.4.50.0110.00920.61
8.4.40.0030.01617.79
8.4.30.0170.00317.80
8.4.20.0150.00917.80
8.4.10.0060.00317.74
8.3.260.0100.00916.58
8.3.250.0110.00819.16
8.3.240.0120.00816.57
8.3.230.0130.00716.84
8.3.220.0050.00319.04
8.3.210.0040.00416.80
8.3.200.0040.00516.75
8.3.190.0100.00917.11
8.3.180.0050.00518.24
8.3.170.0090.00919.04
8.3.160.0060.01216.93
8.3.150.0130.00617.05
8.3.140.0110.00416.43
8.3.130.0080.00016.75
8.3.120.0080.00020.75
8.3.110.0040.00416.68
8.3.100.0060.00624.06
8.3.90.0060.00326.77
8.3.80.0000.00919.36
8.3.70.0130.00316.63
8.3.60.0070.00716.63
8.3.50.0120.00621.98
8.3.40.0190.00318.88
8.3.30.0100.00318.59
8.3.20.0040.00420.24
8.3.10.0080.00020.56
8.3.00.0050.00320.46
8.2.290.0140.00520.59
8.2.280.0110.00918.59
8.2.270.0040.01519.12
8.2.260.0100.01016.93
8.2.250.0000.00816.83
8.2.240.0030.00617.36
8.2.230.0030.00620.94
8.2.220.0030.00637.54
8.2.210.0060.00326.77
8.2.200.0000.00818.88
8.2.190.0060.00916.69
8.2.180.0150.00725.92
8.2.170.0100.01022.96
8.2.160.0140.00020.33
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.36
8.2.120.0040.00426.35
8.2.110.0000.01019.45
8.2.100.0120.00017.75
8.2.90.0030.00519.23
8.2.80.0000.00817.97
8.2.70.0090.00017.75
8.2.60.0050.00317.93
8.2.50.0050.00318.09
8.2.40.0040.00420.59
8.2.30.0040.00419.47
8.2.20.0040.00417.74
8.2.10.0050.00318.00
8.2.00.0000.00718.05
8.1.330.0110.00621.90
8.1.320.0110.01016.29
8.1.310.0070.00718.28
8.1.300.0030.00616.49
8.1.290.0090.00030.84
8.1.280.0140.00325.92
8.1.270.0060.00323.82
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.80
8.1.230.0090.00317.71
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0040.00418.64
8.1.160.0040.00422.66
8.1.150.0000.00818.87
8.1.140.0030.00519.57
8.1.130.0070.00017.73
8.1.120.0040.00417.44
8.1.110.0040.00417.48
8.1.100.0040.00417.38
8.1.90.0030.00517.38
8.1.80.0050.00317.45
8.1.70.0070.00017.36
8.1.60.0070.00317.57
8.1.50.0040.00417.59
8.1.40.0070.00417.41
8.1.30.0030.00717.65
8.1.20.0080.00017.61
8.1.10.0030.00617.57
8.1.00.0040.00417.59
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0070.00018.44
8.0.270.0060.00317.24
8.0.260.0030.00317.17
8.0.250.0030.00317.02
8.0.240.0000.00717.05
8.0.230.0040.00417.02
8.0.220.0040.00416.97
8.0.210.0040.00416.86
8.0.200.0030.00317.06
8.0.190.0030.00617.01
8.0.180.0040.00416.96
8.0.170.0050.00216.98
8.0.160.0030.00316.91
8.0.150.0000.00716.91
8.0.140.0040.00416.79
8.0.130.0030.00313.42
8.0.120.0030.00616.94
8.0.110.0040.00416.86
8.0.100.0040.00416.92
8.0.90.0040.00416.98
8.0.80.0130.00716.95
8.0.70.0000.00816.93
8.0.60.0000.00816.93
8.0.50.0050.00316.99
8.0.30.0090.00817.07
8.0.20.0110.00817.40
8.0.10.0000.00817.16
8.0.00.0120.01016.82
7.4.330.0020.00215.08
7.4.320.0060.00016.45
7.4.300.0070.00016.55
7.4.290.0000.00616.49
7.4.280.0040.00416.45
7.4.270.0030.00316.42
7.4.260.0030.00516.46
7.4.250.0060.00316.37
7.4.240.0030.00316.63
7.4.230.0000.00716.30
7.4.220.0040.01416.71
7.4.210.0060.01116.57
7.4.200.0050.00216.41
7.4.160.0060.01216.50
7.4.150.0170.00417.40
7.4.140.0060.01517.86
7.4.130.0100.00916.54
7.4.120.0100.00916.58
7.4.110.0170.00016.36
7.4.100.0060.01216.49
7.4.90.0090.00916.61
7.4.80.0100.00719.39
7.4.70.0030.01616.44
7.4.60.0040.01416.41
7.4.50.0090.00916.29
7.4.40.0060.01016.52
7.4.30.0100.01016.49
7.4.00.0070.01014.95
7.3.330.0000.00513.26
7.3.320.0020.00213.26
7.3.310.0070.00016.13
7.3.300.0040.00416.18
7.3.290.0090.00516.19
7.3.280.0100.00716.23
7.3.270.0150.00617.40
7.3.260.0170.00416.57
7.3.250.0080.00816.35
7.3.240.0080.01116.33
7.3.230.0070.01016.40
7.3.210.0050.01116.18
7.3.200.0080.01216.19
7.3.190.0100.01016.20
7.3.180.0100.01016.30
7.3.170.0070.01016.42
7.3.160.0100.01016.26
7.2.330.0120.00616.38
7.2.320.0070.01116.54
7.2.310.0140.00316.65
7.2.300.0130.00316.33
7.2.290.0110.00516.43
7.2.60.0030.01016.88
7.2.00.0000.01419.23
7.1.200.0030.00915.50
7.1.100.0100.00717.86
7.1.70.0070.00017.03
7.1.60.0070.01719.27
7.1.50.0030.01916.93
7.1.00.0030.07722.28
7.0.200.0140.00316.61
7.0.60.0170.07721.71
7.0.50.0030.05017.87
7.0.40.0000.06020.21
7.0.30.0230.04320.08
7.0.20.0200.05720.15
7.0.10.0030.04720.26
7.0.00.0070.05320.07
5.6.280.0030.07021.07
5.6.210.0030.06020.67
5.6.200.0130.08318.29
5.6.190.0170.07320.61
5.6.180.0300.08720.52
5.6.170.0200.05320.54
5.6.160.0130.07720.50
5.6.150.0030.08718.29
5.6.140.0100.07718.15
5.6.130.0030.07718.27
5.6.120.0030.08021.02
5.6.110.0170.06021.05
5.6.100.0100.03321.07
5.6.90.0100.07721.00
5.6.80.0130.07320.42
5.5.350.3530.04320.38
5.5.340.0000.04317.99
5.5.330.0100.08020.25
5.5.320.0230.04020.30
5.5.310.0270.07020.28
5.5.300.0030.04017.94
5.5.290.0070.08317.96
5.5.280.0170.07720.77
5.5.270.0130.07720.84
5.5.260.0070.08720.80
5.5.250.0170.04020.58
5.5.240.0130.08320.16

preferences:
36.44 ms | 403 KiB | 5 Q