3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = function (int &$foo) {}; $foo = 1; $args = [&$foo]; unset($foo); $args = [...$args]; # OK // $function(...$args); // if it is uncommented, then code below will not throw warnings # WARNING (new ReflectionFunction($function))->invokeArgs($args); # WARNING call_user_func_array($function, $args);

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.5.30.0100.00817.67
8.5.20.0130.00419.49
8.5.10.0080.01016.67
8.5.00.0130.00820.16
8.4.180.0100.01219.76
8.4.170.0130.00824.00
8.4.160.0100.01123.79
8.4.150.0080.00516.96
8.4.140.0130.00917.78
8.4.130.0090.01217.96
8.4.120.0150.00520.63
8.4.110.0120.00822.61
8.4.100.0130.00818.17
8.4.90.0110.00819.87
8.4.80.0040.00418.16
8.4.70.0050.00318.01
8.4.60.0090.01418.00
8.4.50.0110.00918.20
8.4.40.0110.00717.80
8.4.30.0100.01020.41
8.4.20.0040.01618.00
8.4.10.0120.00319.59
8.3.300.0090.01120.82
8.3.290.0110.01120.76
8.3.280.0120.00820.25
8.3.270.0140.00616.80
8.3.260.0090.01016.39
8.3.250.0110.00818.73
8.3.240.0140.00516.71
8.3.230.0120.00716.88
8.3.220.0140.00517.17
8.3.210.0040.00416.76
8.3.200.0120.00816.79
8.3.190.0110.00816.76
8.3.180.0050.00418.39
8.3.170.0110.00716.48
8.3.160.0110.00717.20
8.3.150.0150.00017.12
8.3.140.0040.01116.51
8.3.130.0080.00018.45
8.3.120.0060.00320.83
8.3.110.0110.00020.94
8.3.100.0100.01024.06
8.3.90.0150.00026.77
8.3.80.0040.00419.36
8.3.70.0140.00316.63
8.3.60.0090.00616.63
8.3.50.0050.01223.67
8.3.40.0070.01321.87
8.3.30.0110.00418.89
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.300.0130.00918.86
8.2.290.0130.00620.46
8.2.280.0130.00818.92
8.2.270.0070.01116.86
8.2.260.0130.00718.91
8.2.250.0060.00316.92
8.2.240.0050.00217.36
8.2.230.0030.00722.58
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0080.00018.88
8.2.190.0040.01116.73
8.2.180.0090.00625.92
8.2.170.0070.00718.82
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0030.00620.53
8.2.100.0030.00917.91
8.2.90.0080.00017.75
8.2.80.0050.00318.73
8.2.70.0040.00417.63
8.2.60.0040.00417.75
8.2.50.0030.00618.05
8.2.40.0000.00718.28
8.2.30.0000.00718.05
8.2.20.0020.00518.00
8.2.10.0040.00419.38
8.2.00.0090.00019.22
8.1.340.0090.01119.92
8.1.330.0120.00616.88
8.1.320.0140.00516.53
8.1.310.0120.00618.46
8.1.300.0060.00316.16
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0060.00323.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00019.01
8.1.230.0000.01120.77
8.1.220.0080.00018.68
8.1.210.0060.00318.77
8.1.200.0030.00617.47
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0000.00718.56
8.1.160.0030.00519.01
8.1.150.0050.00218.89
8.1.140.0060.00318.90
8.1.130.0030.00320.19
8.1.120.0070.00017.50
8.1.110.0040.00417.44
8.1.100.0030.00517.46
8.1.90.0040.00417.48
8.1.80.0030.00617.33
8.1.70.0070.00017.46
8.1.60.0030.00617.46
8.1.50.0040.00417.46
8.1.40.0040.00417.50
8.1.30.0000.00717.55
8.1.20.0080.00017.61
8.1.10.0060.00317.54
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.38
8.0.270.0030.00318.08
8.0.260.0000.00620.20
8.0.250.0030.00316.93
8.0.240.0040.00417.08
8.0.230.0030.00317.05
8.0.220.0040.00416.99
8.0.210.0070.00017.01
8.0.200.0030.00317.02
8.0.190.0050.00316.89
8.0.180.0000.00716.96
8.0.170.0000.00816.90
8.0.160.0060.00317.02
8.0.150.0070.00016.89
8.0.140.0040.00416.98
8.0.130.0000.00513.32
8.0.120.0040.00416.96
8.0.110.0030.00516.99
8.0.100.0030.00516.93
8.0.90.0050.00216.87
8.0.80.0100.00616.87
8.0.70.0080.00016.84
8.0.60.0070.00016.79
8.0.50.0050.00216.95
8.0.30.0030.01317.15
8.0.20.0120.01017.00
8.0.10.0000.00817.04
8.0.00.0100.01416.78
7.4.330.0000.00415.55
7.4.320.0030.00316.61
7.4.300.0060.00316.50
7.4.290.0040.00416.49
7.4.280.0000.00916.46
7.4.270.0070.00016.54
7.4.260.0030.00313.35
7.4.250.0040.00416.57
7.4.240.0030.00316.57
7.4.230.0000.00716.72
7.4.220.0050.00216.49
7.4.210.0070.00916.58
7.4.200.0070.00016.31
7.4.130.0160.00316.41
7.4.120.0110.01016.52
7.4.110.0130.00616.47
7.4.100.0110.01016.53
7.4.90.0100.01116.49
7.4.80.0070.01516.67
7.4.70.0120.00616.52
7.4.60.0110.00716.56
7.4.50.0170.00516.40
7.4.40.0100.00816.54
7.4.30.0100.01216.61
7.4.20.0120.01216.42
7.4.10.0120.00816.51
7.4.00.0060.01216.45
7.3.330.0000.00816.17
7.3.320.0060.00013.07
7.3.310.0030.00316.26
7.3.300.0030.00316.21
7.3.290.0090.00616.15
7.3.260.0130.00716.15
7.3.240.0090.00916.15
7.3.230.0130.00516.15
7.3.220.0090.01316.17
7.3.210.0120.00716.20
7.3.200.0080.01116.21
7.3.190.0110.00616.34
7.3.180.0040.01416.31
7.3.170.0080.01316.21
7.3.160.0110.00916.11
7.3.150.0070.00916.16
7.3.140.0130.00516.18
7.3.130.0120.00716.27
7.3.120.0050.01416.20
7.3.110.0130.00616.24
7.3.100.0150.00616.26
7.3.90.0100.00716.38
7.3.80.0030.01616.15
7.3.70.0130.00616.22
7.3.60.0130.00916.14
7.3.50.0070.01316.17
7.3.40.0110.00916.16
7.3.30.0150.00616.20
7.3.20.0130.00716.15
7.3.10.0160.00816.11
7.3.00.0040.01416.21
7.2.340.0120.00916.33
7.2.330.0120.01116.28
7.2.320.0060.01116.46
7.2.310.0100.01316.46
7.2.300.0080.01216.30
7.2.290.0090.00916.39
7.2.280.0130.00816.21
7.2.270.0020.01516.23
7.2.260.0060.01416.30
7.2.250.0080.00916.36
7.2.240.0110.00816.29
7.2.230.0080.01416.31
7.2.220.0120.00516.54
7.2.210.0080.01616.22
7.2.200.0050.01516.46
7.2.190.0090.01116.16
7.2.180.0110.00816.33
7.2.170.0140.00916.27
7.2.160.0170.00616.13
7.2.150.0100.00916.26
7.2.140.0170.00516.33
7.2.130.0130.01116.43
7.2.120.0090.00816.29
7.2.110.0160.00416.32
7.2.100.0170.00316.38
7.2.90.0180.00316.44
7.2.80.0190.00416.30
7.2.70.0160.00516.38
7.2.60.0190.00316.25
7.2.50.0110.01116.30
7.2.40.0170.01116.40
7.2.30.0100.01316.34
7.2.20.0120.00816.43
7.2.10.0120.00916.33
7.2.00.0120.00916.32

preferences:
50.18 ms | 1529 KiB | 5 Q