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 stdClass()); call_user_func_array('f', $c); call_user_func_array('f', new ArrayIterator($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.0130.00616.75
8.3.50.0100.01022.11
8.3.40.0040.01118.71
8.3.30.0110.00419.25
8.3.20.0000.00820.21
8.3.10.0050.00523.47
8.3.00.0070.00019.13
8.2.180.0090.00618.41
8.2.170.0080.00622.96
8.2.160.0070.00720.32
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.77
8.2.110.0030.00622.08
8.2.100.0070.00419.16
8.2.90.0030.00617.50
8.2.80.0030.00618.05
8.2.70.0000.00817.78
8.2.60.0000.00917.80
8.2.50.0030.00618.10
8.2.40.0040.00422.14
8.2.30.0040.00418.24
8.2.20.0040.00417.66
8.2.10.0000.00717.99
8.2.00.0030.00617.84
8.1.280.0100.00725.92
8.1.270.0060.00323.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.48
8.1.230.0040.00719.14
8.1.220.0000.00917.76
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0030.00718.10
8.1.170.0060.00318.58
8.1.160.0020.00522.07
8.1.150.0050.00218.70
8.1.140.0040.00417.45
8.1.130.0040.00417.83
8.1.120.0040.00417.43
8.1.110.0050.00317.34
8.1.100.0050.00317.46
8.1.90.0030.00317.32
8.1.80.0080.00017.42
8.1.70.0000.00717.29
8.1.60.0030.00517.53
8.1.50.0040.00417.50
8.1.40.0000.00717.42
8.1.30.0040.00717.65
8.1.20.0040.00417.48
8.1.10.0000.00717.55
8.1.00.0000.00717.53
8.0.300.0050.00219.75
8.0.290.0040.00416.75
8.0.280.0080.00018.38
8.0.270.0070.00017.22
8.0.260.0040.00417.26
8.0.250.0030.00317.04
8.0.240.0040.00417.04
8.0.230.0000.00716.93
8.0.220.0080.00017.00
8.0.210.0030.00416.95
8.0.200.0030.00317.04
8.0.190.0040.00417.07
8.0.180.0020.00516.95
8.0.170.0000.00717.01
8.0.160.0000.00717.05
8.0.150.0000.00716.93
8.0.140.0070.00016.89
8.0.130.0000.00513.39
8.0.120.0000.00816.97
8.0.110.0000.00717.03
8.0.100.0070.00016.97
8.0.90.0040.00416.92
8.0.80.0070.01416.91
8.0.70.0000.00817.03
8.0.60.0040.00416.80
8.0.50.0070.00016.95
8.0.30.0050.01417.09
8.0.20.0050.01417.40
8.0.10.0000.00717.02
8.0.00.0110.00816.85
7.4.330.0000.00515.00
7.4.320.0060.00016.65
7.4.300.0000.00616.60
7.4.290.0090.00016.59
7.4.280.0030.00316.52
7.4.270.0070.00016.58
7.4.260.0030.00316.39
7.4.250.0060.00316.46
7.4.240.0040.00316.52
7.4.230.0040.00416.49
7.4.220.0090.01216.63
7.4.210.0110.00416.59
7.4.200.0000.00716.39
7.4.190.0000.00816.50
7.4.160.0000.01516.55
7.4.150.0060.01717.40
7.4.140.0140.00517.86
7.4.130.0060.01316.48
7.4.120.0080.01116.53
7.4.110.0120.00616.64
7.4.100.0110.00716.32
7.4.90.0110.00716.58
7.4.80.0080.01619.39
7.4.70.0170.00016.79
7.4.60.0110.01116.63
7.4.50.0090.00016.71
7.4.40.0100.01316.49
7.4.30.0120.00316.57
7.4.00.0080.01015.13
7.3.330.0060.00013.23
7.3.320.0050.00013.13
7.3.310.0040.00416.38
7.3.300.0030.00316.33
7.3.290.0070.00716.45
7.3.280.0050.01016.31
7.3.270.0030.02217.40
7.3.260.0000.01816.52
7.3.250.0110.00816.59
7.3.240.0040.01316.45
7.3.230.0050.01116.59
7.3.210.0110.00616.32
7.3.200.0190.00719.39
7.3.190.0110.01116.55
7.3.180.0130.00316.37
7.3.170.0060.01316.53
7.3.160.0030.01316.50
7.3.120.0100.00714.84
7.3.110.0050.01314.85
7.3.100.0100.00314.96
7.3.90.0100.00314.79
7.3.80.0040.01115.06
7.3.70.0040.01114.71
7.3.60.0040.01114.94
7.3.50.0110.00414.82
7.3.40.0030.01014.89
7.3.30.0030.00914.77
7.3.20.0070.01016.86
7.3.10.0070.01016.56
7.3.00.0070.00816.71
7.2.330.0040.01416.59
7.2.320.0030.01416.38
7.2.310.0160.00616.60
7.2.300.0100.00716.42
7.2.290.0060.01516.65
7.2.250.0070.01014.96
7.2.240.0100.00714.89
7.2.230.0130.00315.02
7.2.220.0080.00814.79
7.2.210.0070.01415.24
7.2.200.0130.00315.09
7.2.190.0000.01415.08
7.2.180.0060.00614.92
7.2.170.0080.00315.19
7.2.130.0060.01216.72
7.2.120.0040.01316.84
7.2.110.0090.00916.81
7.2.100.0090.00916.89
7.2.90.0160.00016.93
7.2.80.0060.00917.02
7.2.70.0050.00317.09
7.2.60.0100.00616.68
7.2.50.0000.00916.83
7.2.40.0060.01016.87
7.2.30.0030.00716.86
7.2.20.0030.00516.95
7.2.10.0100.00316.59
7.2.00.0040.00718.28
7.1.330.0070.00715.64
7.1.320.0040.01115.82
7.1.310.0030.01615.75
7.1.300.0050.00515.73
7.1.290.0120.00015.73
7.1.280.0070.00715.47
7.1.270.0070.00715.96
7.1.260.0000.01415.86
7.1.250.0070.00715.84
7.1.200.0120.00415.80
7.1.70.0000.00817.19
7.1.60.0060.00617.30
7.1.50.0030.01016.92
7.1.40.0070.00716.63
7.1.30.0080.00316.54
7.1.20.0050.00816.79
7.1.10.0000.01116.73
7.1.00.0030.00716.80
7.0.200.0060.00316.82
7.0.190.0080.00816.82
7.0.180.0000.00916.51
7.0.170.0000.00716.51
7.0.160.0000.00816.51
7.0.150.0080.00016.51
7.0.140.0030.00516.61
7.0.130.0050.00516.63
7.0.120.0030.00616.51
7.0.110.0090.00016.51
7.0.100.0000.00816.51
7.0.90.0000.01716.51
7.0.80.0030.01016.51
7.0.70.0000.01116.51
7.0.60.0000.00716.51
7.0.50.0030.00716.51
7.0.40.0030.00516.51
7.0.30.0110.00016.51
7.0.20.0040.00416.51
7.0.10.0000.00816.51
7.0.00.0000.00716.51
5.6.300.0000.04220.68
5.6.290.0000.04420.88
5.6.280.0030.03920.94
5.6.270.0000.04920.91
5.6.260.0060.03820.89
5.6.250.0070.03721.04
5.6.240.0030.04420.82
5.6.230.0030.04320.98
5.6.220.0030.04220.85
5.6.210.0030.04621.06
5.6.200.0030.05220.96
5.6.190.0070.05021.05
5.6.180.0030.04621.04
5.6.170.0100.03921.04
5.6.160.0100.03220.77
5.6.150.0030.04720.84
5.6.140.0070.05020.83
5.6.130.0000.04720.77
5.6.120.0000.04520.82
5.6.110.0030.04620.95
5.6.100.0070.04021.02
5.6.90.0070.04320.92
5.6.80.0030.04320.21
5.6.70.0030.04020.41
5.6.60.0070.03720.43
5.6.50.0000.04720.16
5.6.40.0030.03920.20
5.6.30.0000.04720.13
5.6.20.0070.04020.12
5.6.10.0070.04320.35
5.6.00.0030.03820.16
5.5.380.0150.03317.61
5.5.370.0030.04617.41
5.5.360.0100.03617.56
5.5.350.0040.03917.64
5.5.340.0030.04518.06
5.5.330.0070.03618.10
5.5.320.0100.03617.84
5.5.310.0030.04318.09
5.5.300.0100.04218.00
5.5.290.0100.03918.09
5.5.280.0000.04418.09
5.5.270.0060.04218.11
5.5.260.0040.04418.03
5.5.250.0000.04218.00
5.5.240.0100.03217.48
5.5.230.0030.03817.46
5.5.220.0030.04317.24
5.5.210.0030.04317.23
5.5.200.0030.03717.19
5.5.190.0030.03817.09
5.5.180.0000.04717.10
5.5.160.0070.04417.47
5.5.150.0000.06817.21
5.5.140.0070.04717.35
5.5.130.0070.05017.47
5.5.120.0030.08217.52
5.5.110.0070.03817.40
5.5.100.0060.03817.34
5.5.90.0090.03117.34
5.5.80.0030.03817.33
5.5.70.0030.03917.10
5.5.60.0000.04317.42
5.5.50.0030.03716.94
5.5.40.0030.05617.10
5.5.30.0060.03517.33
5.5.20.0030.04216.98
5.5.10.0100.03517.27
5.5.00.0000.04217.32
5.4.450.0070.04019.49
5.4.440.0090.03919.31
5.4.430.0030.04019.39
5.4.420.0070.03919.41
5.4.410.0030.03819.17
5.4.400.0040.04318.90
5.4.390.0030.04118.98
5.4.380.0070.03919.08
5.4.370.0030.03819.20
5.4.360.0090.03319.23
5.4.350.0040.03519.12
5.4.340.0070.05919.12
5.4.320.0060.04818.95
5.4.310.0000.04918.95
5.4.300.0000.04019.13
5.4.290.0030.03919.26
5.4.280.0030.04418.98
5.4.270.0070.06219.14
5.4.260.0000.04018.98
5.4.250.0030.07918.89
5.4.240.0000.03918.89
5.4.230.0030.04819.23
5.4.220.0000.04218.92
5.4.210.0060.04219.07
5.4.200.0030.05018.98
5.4.190.0130.03018.89
5.4.180.0070.03318.99
5.4.170.0130.05118.97
5.4.160.0070.04419.18
5.4.150.0000.04619.19
5.4.140.0030.03816.51
5.4.130.0000.04116.57
5.4.120.0030.03716.59
5.4.110.0000.04416.51
5.4.100.0030.03416.74
5.4.90.0130.03016.51
5.4.80.0000.04016.63
5.4.70.0000.04216.71
5.4.60.0000.03816.71
5.4.50.0070.05416.62
5.4.40.0040.03516.73
5.4.30.0030.03616.51
5.4.20.0030.03416.51
5.4.10.0060.03516.51
5.4.00.0000.03516.51
5.3.290.0030.07216.51
5.3.280.0000.04216.51
5.3.270.0100.04316.51
5.3.260.0070.05916.51
5.3.250.0000.03916.51
5.3.240.0000.04316.51
5.3.230.0130.04316.51
5.3.220.0030.03516.51
5.3.210.0070.04416.51
5.3.200.0070.07316.51
5.3.190.0000.06216.51
5.3.180.0000.04716.51
5.3.170.0000.04216.51
5.3.160.0040.03616.51
5.3.150.0000.04516.51
5.3.140.0030.04416.51
5.3.130.0060.03516.51
5.3.120.0030.05016.51
5.3.110.0000.04516.51
5.3.100.0000.04016.51
5.3.90.0030.03316.51
5.3.80.0040.03516.51
5.3.70.0070.03316.51
5.3.60.0070.03316.51
5.3.50.0000.03716.51
5.3.40.0060.03516.51
5.3.30.0030.03316.51
5.3.20.0000.03516.51
5.3.10.0060.06716.51
5.3.00.0100.04916.51
5.2.170.0000.03016.51
5.2.160.0030.03016.51
5.2.150.0000.03116.51
5.2.140.0000.03316.51
5.2.130.0030.03616.51
5.2.120.0100.04016.51
5.2.110.0070.05816.51
5.2.100.0030.03316.51
5.2.90.0030.03715.07
5.2.80.0000.03415.07
5.2.70.0030.04515.07
5.2.60.0000.04715.07
5.2.50.0030.02715.07
5.2.40.0000.03215.07
5.2.30.0000.04315.07
5.2.20.0030.02915.07
5.2.10.0000.03115.07
5.2.00.0000.03115.07
5.1.60.0040.02615.07
5.1.50.0070.02315.07
5.1.40.0040.02215.07
5.1.30.0000.03115.07
5.1.20.0060.02815.07
5.1.10.0000.02615.07
5.1.00.0100.04615.07
5.0.50.0100.01915.07
5.0.40.0030.01915.07
5.0.30.0070.03615.07
5.0.20.0060.01515.07
5.0.10.0030.01715.07
5.0.00.0000.03215.07
4.4.90.0000.02515.07
4.4.80.0000.01615.07
4.4.70.0000.01715.07
4.4.60.0000.01915.07
4.4.50.0030.01315.07
4.4.40.0000.02515.07
4.4.30.0030.01815.07
4.4.20.0030.01515.07
4.4.10.0000.02215.07
4.4.00.0000.02915.07
4.3.110.0030.01415.07
4.3.100.0040.01215.07
4.3.90.0030.01715.07
4.3.80.0000.02615.07
4.3.70.0000.01615.07
4.3.60.0000.03015.07
4.3.50.0120.03115.07
4.3.40.0030.03315.07
4.3.30.0070.01115.07
4.3.20.0040.01515.07
4.3.10.0000.01815.07
4.3.00.0000.01715.07

preferences:
50.22 ms | 401 KiB | 5 Q