3v4l.org

run code in 300+ PHP versions simultaneously
<?php function curry($f, ...$argsCurried) { return function(...$args) use($f, $argsCurried) { $finalArgs = array_merge($argsCurried, $args); return call_user_func_array($f, $finalArgs); }; } function add($n1, $n2) { return $n1 + $n2; } $addFive = curry('add', 5); echo $addFive(2), PHP_EOL; echo $addFive(-5), PHP_EOL;

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.0140.00318.18
8.3.50.0120.00318.35
8.3.40.0150.00018.73
8.3.30.0070.00718.67
8.3.20.0070.00019.20
8.3.10.0040.00423.65
8.3.00.0040.00422.43
8.2.180.0120.00318.23
8.2.170.0070.01018.92
8.2.160.0060.01022.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00222.08
8.2.120.0040.00426.35
8.2.110.0030.00622.25
8.2.100.0130.00017.58
8.2.90.0060.00317.91
8.2.80.0000.00819.16
8.2.70.0050.00317.63
8.2.60.0000.00817.50
8.2.50.0090.00017.80
8.2.40.0000.00819.89
8.2.30.0000.00717.57
8.2.20.0000.00918.18
8.2.10.0030.00519.84
8.2.00.0050.00319.43
8.1.280.0110.00425.92
8.1.270.0070.00723.80
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00923.86
8.1.230.0040.00820.92
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0080.00017.62
8.1.160.0030.00618.97
8.1.150.0040.00418.86
8.1.140.0040.00418.98
8.1.130.0030.00319.05
8.1.120.0000.00717.48
8.1.110.0000.00717.49
8.1.100.0050.00217.48
8.1.90.0040.00417.36
8.1.80.0050.00217.46
8.1.70.0030.00317.46
8.1.60.0000.00817.47
8.1.50.0000.00717.44
8.1.40.0030.00517.50
8.1.30.0000.00817.65
8.1.20.0040.00417.57
8.1.10.0000.00817.54
8.1.00.0030.00717.42
8.0.300.0030.00520.17
8.0.290.0040.00416.75
8.0.280.0060.00018.56
8.0.270.0040.00419.65
8.0.260.0030.00318.36
8.0.250.0050.00316.82
8.0.240.0000.00716.89
8.0.230.0030.00316.98
8.0.220.0000.00816.88
8.0.210.0030.00316.86
8.0.200.0030.00317.00
8.0.190.0040.00416.88
8.0.180.0000.00816.89
8.0.170.0060.00316.97
8.0.160.0000.00716.79
8.0.150.0030.00416.82
8.0.140.0040.00416.74
8.0.130.0030.00313.36
8.0.120.0000.00816.80
8.0.110.0040.00416.72
8.0.100.0040.00416.72
8.0.90.0000.00717.01
8.0.80.0050.01516.93
8.0.70.0070.00016.68
8.0.60.0040.00416.77
8.0.50.0040.00416.69
8.0.30.0100.00917.16
8.0.20.0090.00917.40
8.0.10.0000.00716.92
8.0.00.0130.00716.82
7.4.330.0000.00415.55
7.4.320.0030.00316.59
7.4.300.0070.00016.61
7.4.290.0030.00316.46
7.4.280.0070.00016.59
7.4.270.0040.00416.52
7.4.260.0070.00016.52
7.4.250.0050.00316.49
7.4.240.0000.00816.50
7.4.230.0000.00716.53
7.4.220.0070.00016.65
7.4.210.0050.00916.64
7.4.200.0030.00316.60
7.4.160.0110.00716.44
7.4.140.0100.00817.86
7.4.130.0030.01516.51
7.4.120.0080.01116.52
7.4.110.0070.01416.43
7.4.100.0100.00716.67
7.4.90.0120.00816.54
7.4.80.0060.00919.39
7.4.70.0100.00616.39
7.4.60.0060.01016.56
7.4.50.0100.00316.42
7.4.40.0060.01016.39
7.4.00.0030.01314.81
7.3.330.0030.00313.14
7.3.320.0000.00713.13
7.3.310.0000.00716.34
7.3.300.0000.00716.29
7.3.290.0030.00316.13
7.3.280.0090.00616.24
7.3.260.0120.00716.62
7.3.240.0160.00616.50
7.3.230.0120.00916.42
7.3.210.0160.00616.56
7.3.200.0120.00916.57
7.3.190.0070.00716.34
7.3.180.0070.01316.42
7.3.170.0000.01516.32
7.3.160.0080.00816.40
7.2.330.0170.00716.58
7.2.320.0070.01016.73
7.2.310.0090.00816.46
7.2.300.0100.00716.71
7.2.290.0120.00916.69
7.2.90.0360.01314.82
7.2.80.0370.00314.57
7.2.70.0480.00315.22
7.2.60.0590.00714.98
7.2.50.0410.00015.00
7.2.40.0360.00614.86
7.2.30.0510.00915.01
7.2.20.0460.00715.17
7.2.10.0500.00315.11
7.2.00.0580.01014.99
7.1.210.0460.00313.66
7.1.200.0480.00313.91
7.1.190.0450.00613.80
7.1.180.0570.00713.67
7.1.170.0360.01014.00
7.1.160.0390.00613.94
7.1.150.0560.01014.01
7.1.140.0440.00313.67
7.1.130.1160.01013.82
7.1.120.0570.00313.99
7.1.110.0700.00313.85
7.1.100.0460.01013.99
7.1.90.0480.00614.01
7.1.80.0430.00313.88
7.1.70.0390.00313.97
7.1.60.0480.01331.91
7.1.50.0550.00632.00
7.1.40.0540.00731.98
7.1.30.0620.01331.93
7.1.20.0820.00631.86
7.1.10.0430.00713.67
7.1.00.0460.00714.07

preferences:
61.28 ms | 401 KiB | 5 Q