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($res);

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.0110.00416.34
8.3.50.0220.00721.14
8.3.40.0070.00718.92
8.3.30.0070.00718.83
8.3.20.0040.00420.20
8.3.10.0020.00523.48
8.3.00.0060.00319.68
8.2.180.0090.00618.18
8.2.170.0090.00922.96
8.2.160.0060.00919.23
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0060.00622.26
8.2.100.0070.00418.05
8.2.90.0000.00818.95
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0050.00321.06
8.2.30.0030.00520.77
8.2.20.0000.00717.60
8.2.10.0000.00717.95
8.2.00.0040.00418.07
8.1.280.0110.00325.92
8.1.270.0030.01323.95
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00022.61
8.1.230.0030.00917.43
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.01017.48
8.1.190.0090.00017.23
8.1.180.0050.00318.10
8.1.170.0070.00318.40
8.1.160.0040.00422.07
8.1.150.0000.00718.91
8.1.140.0000.00819.61
8.1.130.0000.00817.46
8.1.120.0000.00717.52
8.1.110.0040.00417.51
8.1.100.0040.00417.34
8.1.90.0000.00717.51
8.1.80.0070.00017.46
8.1.70.0040.00417.46
8.1.60.0040.00417.63
8.1.50.0030.00517.49
8.1.40.0050.00217.52
8.1.30.0030.00617.56
8.1.20.0030.00717.65
8.1.10.0040.00417.49
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.40
8.0.270.0070.00017.26
8.0.260.0000.00716.88
8.0.250.0040.00416.89
8.0.240.0060.00016.91
8.0.230.0000.00717.09
8.0.220.0040.00416.83
8.0.210.0070.00016.85
8.0.200.0040.00417.06
8.0.190.0040.00416.89
8.0.180.0040.00416.88
8.0.170.0000.00717.02
8.0.160.0070.00016.84
8.0.150.0000.00716.84
8.0.140.0040.00416.80
8.0.130.0000.00713.34
8.0.120.0070.00016.93
8.0.110.0000.00716.98
8.0.100.0040.00416.95
8.0.90.0030.00616.92
8.0.80.0090.01116.89
8.0.70.0050.00316.96
8.0.60.0040.00416.83
8.0.50.0040.00416.94
8.0.30.0110.00817.01
8.0.20.0140.00417.40
8.0.10.0000.00716.96
8.0.00.0060.01216.72
7.4.330.0000.00515.14
7.4.320.0060.00016.56
7.4.300.0030.00316.51
7.4.290.0070.00016.61
7.4.280.0030.00616.59
7.4.270.0030.00316.63
7.4.260.0070.00016.35
7.4.250.0070.00016.61
7.4.240.0040.00416.54
7.4.230.0030.00316.68
7.4.220.0210.00516.68
7.4.210.0060.00816.54
7.4.200.0000.00716.51
7.4.160.0080.00816.55
7.4.150.0040.01317.40
7.4.140.0090.01217.86
7.4.130.0100.00916.51
7.4.120.0070.01116.64
7.4.110.0080.00816.51
7.4.100.0140.00616.68
7.4.90.0090.00916.45
7.4.80.0120.00919.39
7.4.70.0100.00716.65
7.4.60.0090.00616.59
7.4.50.0030.00316.41
7.4.40.0090.01916.45
7.4.30.0110.00816.45
7.4.00.0060.00914.66
7.3.330.0030.00313.33
7.3.320.0030.00313.16
7.3.310.0030.00516.33
7.3.300.0040.00416.17
7.3.290.0060.00916.28
7.3.280.0080.01016.24
7.3.270.0110.00517.40
7.3.260.0040.01316.33
7.3.250.0100.00716.36
7.3.240.0120.00616.31
7.3.230.0110.00716.39
7.3.210.0130.00416.38
7.3.200.0110.00616.28
7.3.190.0060.01116.43
7.3.180.0060.00916.50
7.3.170.0030.01516.58
7.3.160.0150.00616.60
7.3.120.0080.00914.67
7.3.110.0110.00714.70
7.3.100.0060.01314.72
7.3.90.0000.01314.89
7.3.80.0060.01214.97
7.3.70.0000.01114.73
7.3.60.0030.01014.64
7.3.50.0000.01514.58
7.3.40.0130.00314.60
7.3.30.0040.00414.64
7.3.20.0100.00316.41
7.3.10.0050.00816.42
7.3.00.0050.01016.61
7.2.330.0130.00416.67
7.2.320.0090.00916.73
7.2.310.0090.01216.64
7.2.300.0030.01516.71
7.2.290.0090.01316.70
7.2.250.0040.01114.98
7.2.240.0100.00715.11
7.2.230.0040.01114.95
7.2.220.0090.00315.02
7.2.210.0000.01115.25
7.2.200.0100.00315.16
7.2.190.0080.00415.08
7.2.180.0120.00314.85
7.2.170.0000.01515.04
7.2.160.0060.00614.67
7.2.150.0040.01116.94
7.2.140.0100.00317.04
7.2.130.0050.00816.86
7.2.120.0080.00816.80
7.2.110.0100.00516.65
7.2.100.0070.00516.70
7.2.90.0080.00516.67
7.2.80.0080.00316.74
7.2.70.0050.00716.77
7.2.60.0060.00516.85
7.2.50.0020.00916.86
7.2.40.0030.00816.71
7.2.30.0040.00916.88
7.2.20.0090.00616.81
7.2.10.0020.01216.92
7.2.00.0040.00817.66
7.1.330.0090.00615.66
7.1.320.0030.01015.73
7.1.310.0000.00915.84
7.1.300.0000.00815.87
7.1.290.0000.01515.75
7.1.280.0120.00315.68
7.1.270.0030.00915.93
7.1.260.0070.00715.79
7.1.250.0020.01015.67
7.1.240.0070.00715.89
7.1.230.0030.00615.70
7.1.220.0090.00615.61
7.1.210.0040.00415.71
7.1.200.0080.00615.70
7.1.190.0080.00015.66
7.1.180.0030.00715.92
7.1.170.0030.00715.82
7.1.160.0030.00615.70
7.1.150.0050.00315.58
7.1.140.0000.00815.71
7.1.130.0120.00415.71
7.1.120.0120.00315.85
7.1.110.0000.00915.88
7.1.100.0100.00717.01
7.1.90.0080.00815.78
7.1.80.0100.00315.68
7.1.70.0030.01216.57
7.1.60.0040.00817.64
7.1.50.0050.01116.11
7.1.40.0070.00315.92
7.1.30.0000.01615.79
7.1.20.0040.00715.81
7.1.10.0030.01015.57
7.1.00.0050.04319.10
7.0.330.0070.00715.39
7.0.320.0070.00715.46
7.0.310.0090.00315.29
7.0.300.0030.01015.43
7.0.290.0070.00715.57
7.0.280.0050.00515.21
7.0.270.0000.00915.11
7.0.260.0000.00915.37
7.0.250.0070.00715.49
7.0.240.0100.00615.50
7.0.230.0040.00715.17
7.0.220.0070.00715.29
7.0.210.0030.00515.15
7.0.200.0270.00714.85
7.0.190.0000.01615.09
7.0.180.0040.01115.23
7.0.170.0060.00615.39
7.0.160.0100.00315.54
7.0.150.0030.00615.08
7.0.140.0070.00715.52
7.0.130.0000.01415.39
7.0.120.0000.01115.32
7.0.110.0000.01415.50
7.0.100.0000.01415.36
7.0.90.0060.00615.11
7.0.80.0090.00015.28
7.0.70.0100.00315.19
7.0.60.0080.04517.77
7.0.50.0040.02616.64
7.0.40.0030.02516.91
7.0.30.0200.04216.80
7.0.20.0180.03316.73
7.0.10.0160.02516.79
7.0.00.0070.04316.80
5.6.400.0030.01014.02
5.6.390.0030.01014.08
5.6.380.0050.00314.06
5.6.370.0080.00414.38
5.6.360.0060.00614.20
5.6.350.0070.00714.38
5.6.340.0100.00314.08
5.6.330.0070.00714.18
5.6.320.0000.01013.83
5.6.310.0080.00013.80
5.6.300.0030.00914.38
5.6.290.0080.00614.14
5.6.280.0040.01817.63
5.6.270.0060.00313.93
5.6.260.0040.01114.03
5.6.250.0030.01014.06
5.6.240.0000.01514.15
5.6.230.0110.00413.84
5.6.220.0000.01014.04
5.6.210.0070.03117.30
5.6.200.0090.03916.24
5.6.190.0120.04317.45
5.6.180.2050.02717.16
5.6.170.0200.02517.34
5.6.160.0050.02617.28
5.6.150.0050.02716.06
5.6.140.0070.03816.15
5.6.130.0080.04016.29
5.6.120.0050.02517.37
5.6.110.0070.04617.51
5.6.100.0050.04617.58
5.6.90.0090.03817.54
5.6.80.0130.04017.24
5.6.70.2230.02417.21
5.6.60.0030.01113.93
5.6.50.0100.00313.61
5.6.40.0000.01313.82
5.6.30.0030.01013.79
5.6.20.0060.00914.07
5.6.10.0100.00314.09
5.6.00.0080.00414.11
5.5.380.0040.00814.05
5.5.370.0030.00613.69
5.5.360.0120.00414.43
5.5.350.0120.04617.14
5.5.340.0060.04316.07
5.5.330.0080.03717.23
5.5.320.0100.02617.13
5.5.310.0180.04217.27
5.5.300.0080.04515.96
5.5.290.0050.03316.03
5.5.280.0050.02817.35
5.5.270.0080.03817.44
5.5.260.0040.03017.46
5.5.250.0050.02217.47
5.5.240.0030.04116.90
5.5.230.0090.00913.68
5.5.220.0060.00313.73
5.5.210.0110.00314.00
5.5.200.0090.00614.04
5.5.190.0040.01114.15
5.5.180.0060.00313.81
5.5.170.0070.00413.87
5.5.160.0030.00913.71
5.5.150.0070.00413.79
5.5.140.0090.00014.04
5.5.130.0040.00713.98
5.5.120.0070.01014.13
5.5.110.0080.00513.92
5.5.100.0040.00414.13
5.5.90.0040.00814.11
5.5.80.0060.00613.87
5.5.70.0110.00013.96
5.5.60.0080.00413.87
5.5.50.0100.00013.97
5.5.40.0000.01213.75
5.5.30.0030.01013.91
5.5.20.0110.00313.75
5.5.10.0100.00714.07
5.5.00.0120.00013.66
5.4.450.0150.02615.99
5.4.440.0100.03016.00
5.4.430.0180.02516.00
5.4.420.0080.03015.93
5.4.410.0090.03415.87
5.4.400.0140.03715.87
5.4.390.0220.02415.76
5.4.380.0100.02515.86
5.4.370.0090.03215.78
5.4.360.0100.02915.87
5.4.350.0100.03715.69
5.4.340.0250.02815.77
5.4.330.0000.00612.47
5.4.320.0230.02815.86
5.4.310.0250.02915.90
5.4.300.0110.03315.65
5.4.290.0140.02815.65
5.4.280.0160.03215.86
5.4.270.0360.03015.84
5.4.260.0470.03015.86
5.4.250.0470.02915.78
5.4.240.0510.02515.86
5.4.230.0460.02615.84
5.4.220.0420.03515.73
5.4.210.0270.04015.90
5.4.200.0280.04015.85
5.4.190.0160.03315.77
5.4.180.0160.03315.84
5.4.170.0220.03315.78
5.4.160.0400.02315.85
5.4.150.0160.03615.78
5.4.140.0120.03314.47
5.4.130.0100.02714.54
5.4.120.0080.02914.46
5.4.110.0130.02714.35
5.4.100.0070.02814.57
5.4.90.0100.02514.52
5.4.80.0080.02614.54
5.4.70.0060.02814.51
5.4.60.0150.03714.32
5.4.50.0120.02714.45
5.4.40.0200.02414.50
5.4.30.0080.03314.50
5.4.20.0170.03014.51
5.4.10.0380.02514.44
5.4.00.0320.02514.11

preferences:
57.56 ms | 401 KiB | 5 Q