3v4l.org

run code in 300+ PHP versions simultaneously
<?php function curry(\Closure $f, $params = []) { return function() use($f, $params) { $refl = new ReflectionFunction($f); $arity = $refl->getNumberOfParameters(); $args = array_merge($params, func_get_args()); return (count($args) >= $arity) ? call_user_func_array($f, $args) : curry($f, $args); }; }; // ================================================== $abc = function($a, $b, $c) { return [$a, $b ,$c]; }; $cur = curry($abc); // $res = $cur(1)(2)(3); $res1 = $cur (1); $res2 = $res1(2); $res3 = $res2(3); var_dump($res3);

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.0000.01416.35
8.3.50.0150.00821.04
8.3.40.0120.00618.83
8.3.30.0110.00318.49
8.3.20.0050.00320.36
8.3.10.0050.00223.71
8.3.00.0050.00319.81
8.2.180.0090.00618.07
8.2.170.0170.00022.96
8.2.160.0090.00619.36
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0100.00017.63
8.2.110.0060.00622.11
8.2.100.0090.00317.93
8.2.90.0040.00419.30
8.2.80.0000.00817.97
8.2.70.0040.00417.47
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0060.00321.20
8.2.30.0040.00420.68
8.2.20.0000.00817.70
8.2.10.0070.00018.05
8.2.00.0040.00418.07
8.1.280.0070.00725.92
8.1.270.0090.00623.70
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.54
8.1.230.0040.00717.65
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0070.00318.66
8.1.160.0020.00522.08
8.1.150.0070.00018.80
8.1.140.0000.00819.57
8.1.130.0070.00017.70
8.1.120.0000.00717.35
8.1.110.0040.00417.52
8.1.100.0000.00717.36
8.1.90.0030.00517.51
8.1.80.0080.00017.50
8.1.70.0070.00017.50
8.1.60.0070.00017.59
8.1.50.0000.00817.52
8.1.40.0040.00417.54
8.1.30.0040.00417.62
8.1.20.0050.00517.70
8.1.10.0040.00417.60
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.51
8.0.270.0030.00317.24
8.0.260.0070.00017.13
8.0.250.0000.00717.04
8.0.240.0070.00017.02
8.0.230.0030.00416.97
8.0.220.0070.00016.98
8.0.210.0000.00716.86
8.0.200.0040.00417.03
8.0.190.0080.00016.92
8.0.180.0040.00416.97
8.0.170.0000.00717.00
8.0.160.0070.00016.89
8.0.150.0030.00316.86
8.0.140.0040.00416.87
8.0.130.0050.00313.39
8.0.120.0040.00416.82
8.0.110.0040.00416.94
8.0.100.0030.00316.80
8.0.90.0000.00916.93
8.0.80.0140.00717.02
8.0.70.0000.00816.94
8.0.60.0000.00816.90
8.0.50.0040.00416.93
8.0.30.0130.00617.21
8.0.20.0110.00817.40
8.0.10.0070.00017.02
8.0.00.0090.00916.74
7.4.330.0000.00515.08
7.4.320.0070.00016.51
7.4.300.0040.00416.57
7.4.290.0000.00716.63
7.4.280.0080.00016.44
7.4.270.0030.00316.59
7.4.260.0000.00716.41
7.4.250.0040.00416.54
7.4.240.0020.00516.54
7.4.230.0000.00716.70
7.4.220.0030.01516.45
7.4.210.0090.00616.68
7.4.200.0030.00316.68
7.4.160.0040.01116.64
7.4.150.0080.00817.40
7.4.140.0080.01317.86
7.4.130.0110.00716.54
7.4.120.0090.00916.58
7.4.110.0160.00616.47
7.4.100.0090.00916.42
7.4.90.0130.00416.48
7.4.80.0260.00419.39
7.4.70.0090.00916.55
7.4.60.0060.00916.41
7.4.50.0000.00716.55
7.4.40.0130.01416.43
7.4.30.0070.01416.61
7.4.00.0060.00914.89
7.3.330.0000.00613.27
7.3.320.0050.00013.38
7.3.310.0030.00316.15
7.3.300.0070.00016.27
7.3.290.0070.00816.28
7.3.280.0110.00716.29
7.3.270.0130.01017.40
7.3.260.0060.01216.31
7.3.250.0110.00616.46
7.3.240.0100.01116.47
7.3.230.0090.01516.39
7.3.210.0100.00616.26
7.3.200.0120.00316.53
7.3.190.0100.00616.45
7.3.180.0060.01016.46
7.3.170.0040.01216.32
7.3.160.0090.01216.28
7.2.330.0180.00016.59
7.2.320.0080.01216.71
7.2.310.0100.01316.56
7.2.300.0100.00716.37
7.2.290.0060.01216.66
7.2.00.0100.00619.45
7.1.100.0000.01118.11
7.1.70.0060.01016.93
7.1.60.0140.01019.50
7.1.50.0160.00316.79
7.1.00.0100.07022.29
7.0.200.0230.00814.64
7.0.60.0030.09019.89
7.0.50.0070.04717.85
7.0.40.0100.03720.14
7.0.30.0170.09320.04
7.0.20.0470.07020.16
7.0.10.0270.07720.24
7.0.00.0030.09020.38
5.6.280.0000.03321.09
5.6.210.0200.06320.77
5.6.200.0070.03718.22
5.6.190.0070.04320.41
5.6.180.3770.04320.39
5.6.170.0230.05020.51
5.6.160.0200.04320.57
5.6.150.0100.03318.29
5.6.140.0070.08318.16
5.6.130.0030.07718.19
5.6.120.0000.05020.97
5.6.110.0030.08321.13
5.6.100.0000.08721.10
5.6.90.0100.07021.12
5.6.80.0170.07320.39
5.6.70.3070.03720.40
5.5.350.0170.08320.45
5.5.340.0000.04717.99
5.5.330.0100.08020.27
5.5.320.0400.03720.38
5.5.310.0170.04020.25
5.5.300.0230.03318.07
5.5.290.0000.05018.06
5.5.280.0070.07720.81
5.5.270.0030.08320.81
5.5.260.0130.03020.81
5.5.250.0070.06720.59
5.5.240.0070.08720.16
5.4.450.0570.06319.25
5.4.440.0570.05719.50
5.4.430.0500.05019.30
5.4.420.0230.05019.57
5.4.410.0100.05719.00
5.4.400.0070.06019.25
5.4.390.0770.04319.10
5.4.380.0570.06718.81
5.4.370.0330.05319.02
5.4.360.0130.05719.09
5.4.350.0230.05319.11
5.4.340.0200.05319.27
5.4.320.0170.06019.08
5.4.310.0130.06019.07
5.4.300.0230.04319.24
5.4.290.0200.04719.21
5.4.280.0200.05018.94
5.4.270.0330.04719.09
5.4.260.0300.05718.92
5.4.250.0170.05719.23
5.4.240.0100.05719.20
5.4.230.0130.06018.80
5.4.220.0270.04718.97
5.4.210.0300.05719.23
5.4.200.0170.06319.09
5.4.190.0170.05719.11
5.4.180.0200.05319.21
5.4.170.0230.05019.08
5.4.160.0230.05018.78
5.4.150.0300.05019.21
5.4.140.0270.05716.36
5.4.130.0270.06016.34
5.4.120.0300.05316.48
5.4.110.0130.07716.66
5.4.100.0300.06016.50
5.4.90.0370.06316.57
5.4.80.0170.06716.64
5.4.70.0170.06016.48
5.4.60.0130.04716.54
5.4.50.0170.04016.17
5.4.40.0070.05316.40
5.4.30.0570.04716.53
5.4.20.0270.05016.61
5.4.10.0100.05016.57
5.4.00.0070.05315.80

preferences:
34.58 ms | 401 KiB | 5 Q