3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { var_dump(func_get_args()); } class C implements IteratorAggregate { private $arr; function __construct(array $arr) {$this->arr = $arr;} function getIterator() { return new ArrayIterator($this->arr); } } $a = array('a' => 1, 'b' => 2, 3, 4, 5); $c = new C($a); call_user_func_array('f', new ArrayObject($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.0100.01016.38
8.3.50.0080.01321.92
8.3.40.0140.00018.98
8.3.30.0120.00619.21
8.3.20.0060.00320.30
8.3.10.0050.00323.69
8.3.00.0100.01019.19
8.2.180.0140.00318.41
8.2.170.0150.00022.96
8.2.160.0140.00320.43
8.2.150.0080.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00020.85
8.2.110.0060.00322.32
8.2.100.0060.00617.72
8.2.90.0000.00819.17
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0060.00318.04
8.2.50.0030.00618.07
8.2.40.0030.00619.95
8.2.30.0040.00418.13
8.2.20.0000.00817.64
8.2.10.0040.00418.23
8.2.00.0080.00017.82
8.1.280.0170.00025.92
8.1.270.0090.00623.96
8.1.260.0030.00626.35
8.1.250.0020.00528.09
8.1.240.0030.00623.83
8.1.230.0070.00417.42
8.1.220.0030.00617.75
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0060.00318.53
8.1.160.0050.00321.88
8.1.150.0050.00218.65
8.1.140.0000.00817.56
8.1.130.0030.00317.74
8.1.120.0040.00417.51
8.1.110.0000.00817.48
8.1.100.0040.00417.41
8.1.90.0050.00217.36
8.1.80.0040.00417.34
8.1.70.0030.00317.33
8.1.60.0040.00417.48
8.1.50.0040.00417.50
8.1.40.0000.01117.50
8.1.30.0040.00417.70
8.1.20.0030.00517.59
8.1.10.0050.00217.49
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0040.00418.36
8.0.270.0030.00517.20
8.0.260.0000.00717.16
8.0.250.0030.00417.04
8.0.240.0000.00816.91
8.0.230.0000.00717.04
8.0.220.0020.00516.95
8.0.210.0030.00316.89
8.0.200.0000.00716.91
8.0.190.0070.00016.98
8.0.180.0030.00616.92
8.0.170.0040.00416.96
8.0.160.0040.00416.96
8.0.150.0000.00816.97
8.0.140.0050.00316.84
8.0.130.0050.00013.40
8.0.120.0040.00416.90
8.0.110.0030.00616.89
8.0.100.0000.00816.89
8.0.90.0040.00417.03
8.0.80.0130.00316.91
8.0.70.0000.00717.03
8.0.60.0000.00716.83
8.0.50.0000.00716.95
8.0.30.0130.00517.08
8.0.20.0100.01217.40
8.0.10.0070.00017.07
8.0.00.0110.01016.81
7.4.330.0030.00315.00
7.4.320.0000.00716.50
7.4.300.0000.00716.60
7.4.290.0030.00316.50
7.4.280.0030.00316.40
7.4.270.0040.00416.41
7.4.260.0030.00316.60
7.4.250.0000.00816.61
7.4.240.0020.00516.42
7.4.230.0000.00716.49
7.4.220.0040.01516.61
7.4.210.0100.00716.65
7.4.200.0040.00416.43
7.4.190.0030.00316.77
7.4.160.0110.00616.53
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0070.01016.50
7.4.120.0090.00916.61
7.4.110.0120.01216.63
7.4.100.0080.00816.62
7.4.90.0100.00716.77
7.4.80.0000.01719.39
7.4.70.0090.00916.70
7.4.60.0100.01016.51
7.4.50.0020.00216.50
7.4.40.0100.00716.45
7.4.30.0120.00416.59
7.4.00.0080.00714.87
7.3.330.0030.00313.19
7.3.320.0000.00613.36
7.3.310.0030.00316.37
7.3.300.0060.00016.28
7.3.290.0030.01116.41
7.3.280.0060.01116.33
7.3.270.0110.00617.40
7.3.260.0080.01616.60
7.3.250.0130.00616.37
7.3.240.0130.00316.36
7.3.230.0060.01016.59
7.3.210.0070.01416.59
7.3.200.0060.01219.39
7.3.190.0070.01016.36
7.3.180.0100.00716.43
7.3.170.0120.00916.55
7.3.160.0000.01616.56
7.3.120.0030.01014.88
7.3.110.0130.00614.82
7.3.100.0040.01115.01
7.3.90.0060.00914.86
7.3.80.0070.00414.91
7.3.70.0110.00414.70
7.3.60.0000.01014.90
7.3.50.0070.00714.67
7.3.40.0120.00314.56
7.3.30.0030.01214.75
7.3.20.0030.01616.68
7.3.10.0070.01016.42
7.3.00.0220.00316.49
7.2.330.0060.01216.50
7.2.320.0090.00916.32
7.2.310.0160.00916.63
7.2.300.0100.00716.41
7.2.290.0100.00616.66
7.2.250.0120.00615.02
7.2.240.0100.01015.07
7.2.230.0100.00614.79
7.2.220.0100.01015.05
7.2.210.0000.01514.86
7.2.200.0070.01315.20
7.2.190.0030.01014.73
7.2.180.0000.01514.84
7.2.170.0030.01015.08
7.2.60.0040.00716.80
7.1.330.0000.01615.64
7.1.320.0100.00615.57
7.1.310.0040.00415.88
7.1.300.0030.00615.75
7.1.290.0050.00315.62
7.1.280.0030.01415.77
7.1.270.0130.00315.70
7.1.260.0130.00615.66
7.1.200.0070.00715.64
7.1.70.0030.00317.26
7.1.60.0070.01119.46
7.1.50.0090.01316.63
7.1.00.0070.07322.36
7.0.200.0000.01016.84
7.0.140.0100.06321.96
7.0.60.0000.04320.03
7.0.50.0100.07717.96
7.0.40.0230.07320.24
7.0.30.0400.07720.38
7.0.20.0230.07320.30
7.0.10.0000.06020.21
7.0.00.0130.07020.07
5.6.280.0030.07021.03
5.6.210.0130.07720.52
5.6.200.0070.06318.20
5.6.190.0070.08320.64
5.6.180.0170.04320.34
5.6.170.0270.07720.51
5.6.160.0130.07020.45
5.6.150.0100.04718.23
5.6.140.0030.04018.30
5.6.130.0130.07718.18
5.6.120.0030.08720.99
5.6.110.0070.08020.99
5.6.100.0030.04021.00
5.6.90.0070.03721.11
5.6.80.0030.08720.37
5.6.70.4530.04320.52
5.5.350.0030.08020.39
5.5.340.0000.08317.96
5.5.330.0030.05020.35
5.5.320.0030.09020.31
5.5.310.0270.07720.32
5.5.300.0070.08717.98
5.5.290.0070.04717.98
5.5.280.0170.06320.69
5.5.270.0070.04020.74
5.5.260.0030.08020.97
5.5.250.0170.04720.59
5.5.240.0000.08020.36
5.4.450.0830.05019.61
5.4.440.1130.08019.19
5.4.430.0200.06019.36
5.4.420.0730.05719.41
5.4.410.0870.05019.53
5.4.400.0930.05319.32
5.4.390.0630.06018.90
5.4.380.0230.06018.60
5.4.370.0300.06018.73
5.4.360.0400.05318.77
5.4.350.0230.06718.58
5.4.340.0330.05318.59
5.4.320.0070.04712.51
5.4.310.0050.04412.50
5.4.300.0050.04312.51
5.4.290.0060.04512.50
5.4.280.0030.03912.40
5.4.270.0080.03612.41
5.4.260.0070.03812.41
5.4.250.0050.04012.40
5.4.240.0030.04112.40
5.4.230.0060.03912.39
5.4.220.0080.03612.39
5.4.210.0050.03912.39
5.4.200.0110.03412.40
5.4.190.0060.03712.39
5.4.180.0050.03712.39
5.4.170.0040.03912.40
5.4.160.0090.03512.39
5.4.150.0080.03912.39
5.4.140.0060.05312.08
5.4.130.0050.05112.07
5.4.120.0070.03512.02
5.4.110.0090.04612.02
5.4.100.0060.04112.02
5.4.90.0060.03612.02
5.4.80.0040.03812.02
5.4.70.0060.03412.02
5.4.60.0080.03312.01
5.4.50.0060.03512.01
5.4.40.0040.03712.00
5.4.30.0060.05012.00
5.4.20.0080.05112.00
5.4.10.0070.05112.00
5.4.00.0070.07611.49
5.3.290.0050.04612.80
5.3.280.0070.05212.71
5.3.270.0070.04312.72
5.3.260.0070.03912.72
5.3.250.0080.03512.71
5.3.240.0050.03912.72
5.3.230.0040.04012.71
5.3.220.0080.03612.68
5.3.210.0060.03912.68
5.3.200.0050.03712.68
5.3.190.0100.03312.67
5.3.180.0050.04212.67
5.3.170.0070.04912.67
5.3.160.0130.04412.68
5.3.150.0050.05012.67
5.3.140.0070.04612.66
5.3.130.0080.04012.66
5.3.120.0050.04112.66
5.3.110.0080.03712.66
5.3.100.0050.03812.13
5.3.90.0060.03612.11
5.3.80.0050.03712.10
5.3.70.0050.03712.10
5.3.60.0030.03912.08
5.3.50.0060.03512.03
5.3.40.0070.03412.02
5.3.30.0070.03311.98
5.3.20.0040.03611.77
5.3.10.0060.03411.73
5.3.00.0050.03611.72
5.2.170.0050.0309.23
5.2.160.0020.0319.23
5.2.150.0020.0329.22
5.2.140.0030.0329.22
5.2.130.0040.0339.18
5.2.120.0040.0289.18
5.2.110.0040.0299.19
5.2.100.0010.0329.18
5.2.90.0050.0289.18
5.2.80.0070.0329.18
5.2.70.0050.0329.18
5.2.60.0050.0309.13
5.2.50.0040.0319.10
5.2.40.0070.0279.07
5.2.30.0020.0349.05
5.2.20.0060.0299.04
5.2.10.0040.0308.95
5.2.00.0090.0278.81
5.1.60.0070.0238.09
5.1.50.0030.0278.09
5.1.40.0040.0268.07
5.1.30.0100.0208.42
5.1.20.0040.0288.44
5.1.10.0030.0278.17
5.1.00.0020.0288.17
5.0.50.0030.0216.64
5.0.40.0020.0216.50
5.0.30.0050.0306.32
5.0.20.0010.0226.29
5.0.10.0030.0216.27
5.0.00.0030.0326.26
4.4.90.0050.0134.78
4.4.80.0000.0184.75
4.4.70.0020.0164.76
4.4.60.0020.0164.76
4.4.50.0010.0184.77
4.4.40.0030.0254.71
4.4.30.0030.0154.75
4.4.20.0000.0184.84
4.4.10.0010.0174.84
4.4.00.0070.0204.76
4.3.110.0000.0184.66
4.3.100.0010.0204.66
4.3.90.0040.0194.63
4.3.80.0030.0324.58
4.3.70.0060.0174.63
4.3.60.0030.0174.63
4.3.50.0030.0174.63
4.3.40.0050.0294.54
4.3.30.0030.0253.30
4.3.20.0030.0223.29
4.3.10.0030.0213.24
4.3.00.0130.0277.40

preferences:
45.65 ms | 401 KiB | 5 Q