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.0000.01516.38
8.3.50.0200.00721.19
8.3.40.0110.00718.92
8.3.30.0090.00618.89
8.3.20.0040.00420.36
8.3.10.0050.00223.52
8.3.00.0000.00819.69
8.2.180.0150.00018.30
8.2.170.0120.00322.96
8.2.160.0070.00719.45
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00317.63
8.2.110.0070.00319.32
8.2.100.0110.00017.84
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0050.00321.01
8.2.30.0040.00420.55
8.2.20.0030.00617.60
8.2.10.0040.00417.95
8.2.00.0030.00518.07
8.1.280.0140.00325.92
8.1.270.0120.00923.83
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0000.00922.52
8.1.230.0090.00317.77
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0050.00517.48
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0070.00418.50
8.1.160.0050.00321.93
8.1.150.0000.00718.90
8.1.140.0050.00319.62
8.1.130.0000.00817.58
8.1.120.0000.00817.46
8.1.110.0080.00017.50
8.1.100.0000.00817.50
8.1.90.0000.00817.47
8.1.80.0000.00817.44
8.1.70.0070.00017.36
8.1.60.0000.00817.44
8.1.50.0050.00317.41
8.1.40.0040.00417.55
8.1.30.0040.00417.64
8.1.20.0070.00417.55
8.1.10.0000.00817.54
8.1.00.0050.00217.49
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0030.00318.55
8.0.270.0070.00017.14
8.0.260.0050.00317.19
8.0.250.0030.00516.92
8.0.240.0000.00616.91
8.0.230.0050.00216.93
8.0.220.0040.00416.83
8.0.210.0070.00016.86
8.0.200.0000.00717.03
8.0.190.0030.00617.02
8.0.180.0000.00816.93
8.0.170.0040.00416.97
8.0.160.0070.00016.95
8.0.150.0040.00417.00
8.0.140.0030.00316.97
8.0.130.0020.00513.38
8.0.120.0070.00016.97
8.0.110.0000.00716.98
8.0.100.0030.00516.94
8.0.90.0000.00816.86
8.0.80.0100.00716.87
8.0.70.0000.00717.02
8.0.60.0040.00417.00
8.0.50.0040.00416.84
8.0.30.0110.00817.08
8.0.20.0110.01217.40
8.0.10.0040.00416.95
8.0.00.0090.01016.83
7.4.330.0050.00015.09
7.4.320.0070.00016.41
7.4.300.0070.00016.51
7.4.290.0030.00316.55
7.4.280.0090.00016.51
7.4.270.0000.00716.56
7.4.260.0030.00316.50
7.4.250.0040.00416.58
7.4.240.0050.00216.60
7.4.230.0030.00316.25
7.4.220.0120.00616.45
7.4.210.0110.00316.45
7.4.200.0030.00316.41
7.4.160.0080.01116.29
7.4.150.0110.00517.40
7.4.140.0140.00717.86
7.4.130.0050.01216.58
7.4.120.0090.01016.46
7.4.110.0100.00716.40
7.4.100.0060.01316.36
7.4.90.0120.00616.46
7.4.80.0150.00719.39
7.4.70.0120.00816.42
7.4.60.0090.00616.30
7.4.50.0030.00316.62
7.4.40.0090.01816.45
7.4.30.0130.00716.40
7.4.00.0000.01515.15
7.3.330.0030.00313.21
7.3.320.0030.00313.32
7.3.310.0000.00716.15
7.3.300.0000.00716.16
7.3.290.0120.00616.30
7.3.280.0090.01116.29
7.3.270.0110.00617.40
7.3.260.0060.01016.33
7.3.250.0100.00716.41
7.3.240.0080.01116.51
7.3.230.0030.01316.46
7.3.210.0030.01316.36
7.3.200.0140.00716.52
7.3.190.0040.01316.42
7.3.180.0090.00616.39
7.3.170.0100.01016.37
7.3.160.0060.01616.54
7.3.10.0150.00416.47
7.3.00.0070.00616.53
7.2.330.0170.00016.63
7.2.320.0000.01816.66
7.2.310.0160.00716.74
7.2.300.0110.00616.65
7.2.290.0090.00816.54
7.2.130.0080.00916.71
7.2.120.0070.00716.82
7.2.110.0120.00316.95
7.2.100.0080.00816.81
7.2.90.0090.00516.89
7.2.80.0090.00616.69
7.2.70.0070.00716.79
7.2.60.0100.00616.79
7.2.50.0100.00616.76
7.2.40.0090.00516.89
7.2.30.0070.00616.87
7.2.20.0070.00616.97
7.2.10.0120.00616.71
7.2.00.0060.00717.60
7.1.250.0060.00515.68
7.1.240.0130.00715.87
7.1.230.0090.00615.59
7.1.220.0080.00415.89
7.1.210.0090.00315.78
7.1.200.0060.00615.75
7.1.190.0040.00715.82
7.1.180.0110.00715.63
7.1.170.0000.00815.93
7.1.160.0030.00915.77
7.1.150.0090.00015.91
7.1.140.0080.00415.93
7.1.130.0030.01215.56
7.1.120.0030.01015.71
7.1.110.0070.00715.71
7.1.100.0030.00817.00
7.1.90.0060.00315.76
7.1.80.0070.00715.48
7.1.70.0070.00516.55
7.1.60.0110.00717.58
7.1.50.0060.00716.25
7.1.40.0030.01215.85
7.1.30.0030.00615.45
7.1.20.0040.00715.61
7.1.10.0100.00415.70
7.1.00.0030.04219.11
7.0.330.0000.01215.12
7.0.320.0040.00715.43
7.0.310.0070.01015.48
7.0.300.0000.01315.30
7.0.290.0000.01215.36
7.0.280.0030.00715.22
7.0.270.0030.01015.45
7.0.260.0110.00415.26
7.0.250.0040.01115.59
7.0.240.0090.00015.32
7.0.230.0040.01115.30
7.0.220.0120.00315.34
7.0.210.0200.00015.25
7.0.200.0160.01014.89
7.0.190.0090.00615.46
7.0.180.0060.00615.11
7.0.170.0000.01015.04
7.0.160.0110.00315.47
7.0.150.0030.00715.28
7.0.140.0070.00315.32
7.0.130.0000.00915.34
7.0.120.0140.00015.21
7.0.110.0110.00315.37
7.0.100.0040.01215.57
7.0.90.0070.00715.10
7.0.80.0030.01015.54
7.0.70.0090.00615.48
7.0.60.0060.03017.78
7.0.50.0080.04116.49
7.0.40.0120.03716.78
7.0.30.0190.04216.82
7.0.20.0080.02816.71
7.0.10.0100.02716.74
7.0.00.0080.04916.92
5.6.380.0030.00614.16
5.6.370.0060.00314.30
5.6.360.0060.00613.94
5.6.350.0090.00314.36
5.6.340.0040.00414.09
5.6.330.0060.00313.98
5.6.320.0040.00814.40
5.6.310.0000.01413.75
5.6.300.0090.00314.43
5.6.290.0070.00714.07
5.6.280.0000.02517.56
5.6.270.0130.00314.08
5.6.260.0080.00814.17
5.6.250.0140.00314.11
5.6.240.0040.01114.13
5.6.230.0090.00313.98
5.6.220.0070.00513.93
5.6.210.0030.04517.40
5.6.200.0110.04116.11
5.6.190.0100.02317.38
5.6.180.2120.01817.32
5.6.170.0200.03717.26
5.6.160.0070.03517.22
5.6.150.0080.04116.27
5.6.140.0100.04016.19
5.6.130.0060.03416.08
5.6.120.0060.02317.64
5.6.110.0030.04117.66
5.6.100.0070.03317.60
5.6.90.0020.05017.69
5.6.80.0050.04517.28
5.6.70.1760.02017.30
5.6.60.0000.01014.04
5.6.50.0070.00714.29
5.6.40.0000.00913.93
5.6.30.0120.00313.93
5.6.20.0000.00913.89
5.6.10.0070.00713.89
5.6.00.0070.00314.02
5.5.380.0070.00711.18
5.5.370.0030.00611.18
5.5.360.0070.00411.18
5.5.350.0150.04215.80
5.5.340.0050.02314.58
5.5.330.0120.03215.74
5.5.320.0220.03915.73
5.5.310.0130.03815.75
5.5.300.0080.03814.58
5.5.290.0020.02914.62
5.5.280.0030.04615.92
5.5.270.0080.02316.03
5.5.260.0080.04015.91
5.5.250.0050.04015.98
5.5.240.0050.04215.71
5.5.230.0100.00011.18
5.5.220.0060.00611.18
5.5.210.0000.01011.18
5.5.200.0030.00611.18
5.5.190.0060.00011.18
5.5.180.0060.00311.18
5.5.170.0000.00611.18
5.5.160.0110.00011.18
5.5.150.0030.00311.18
5.5.140.0050.00211.18
5.5.130.0030.00711.18
5.5.120.0000.01211.18
5.5.110.0000.00811.18
5.5.100.0030.00511.18
5.5.90.0060.00611.18
5.5.80.0080.00011.18
5.5.70.0030.00611.18
5.5.60.0080.00411.18
5.5.50.0020.00611.18
5.5.40.0050.00311.18
5.5.30.0080.00311.18
5.5.20.0050.00011.18
5.5.10.0030.00311.18
5.5.00.0080.00411.18
5.4.450.0150.04115.21
5.4.440.0170.03615.29
5.4.430.0310.02715.34
5.4.420.0150.03415.36
5.4.410.0120.03215.22
5.4.400.0160.02515.21
5.4.390.0150.02715.19
5.4.380.0150.03015.21
5.4.370.0130.03015.20
5.4.360.0170.02815.26
5.4.350.0140.03115.05
5.4.340.0140.02815.21
5.4.330.0000.00711.18
5.4.320.0130.03515.11
5.4.310.0250.03715.13
5.4.300.0120.02515.13
5.4.290.0150.03315.13
5.4.280.0130.03415.08
5.4.270.0440.02815.00
5.4.260.0450.03714.99
5.4.250.0460.03015.25
5.4.240.0170.03515.20
5.4.230.0350.04015.15
5.4.220.0430.02915.14
5.4.210.0370.02315.15
5.4.200.0100.03315.16
5.4.190.0070.03715.13
5.4.180.0290.02215.13
5.4.170.0120.03015.07
5.4.160.0450.03415.12
5.4.150.0130.03015.09
5.4.140.0170.02513.78
5.4.130.0120.02313.88
5.4.120.0150.02313.96
5.4.110.0230.03513.85
5.4.100.0140.02713.73
5.4.90.0100.03413.84
5.4.80.0100.03213.81
5.4.70.0120.02813.72
5.4.60.0320.02813.78
5.4.50.0070.02913.89
5.4.40.0080.02813.83
5.4.30.0120.02513.77
5.4.20.0180.03013.83
5.4.10.0150.02513.83
5.4.00.0070.03013.56

preferences:
73.81 ms | 401 KiB | 5 Q