3v4l.org

run code in 300+ PHP versions simultaneously
<?php $calc = function ($arg = null, $acc = '') use (&$calc) { $currying = function ($arg = null, $saved = '') use (&$calc, $acc) { var_dump($arg); return $calc($arg, $arg . $acc . $saved); }; return $arg === null ? $acc : $currying($arg); }; $result = $calc(1)(3)(3)(8)(); var_dump($result);

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.40.0320.02337.50
8.3.30.0330.01737.71
8.3.20.0240.00339.34
8.3.10.0160.00940.77
8.3.00.0090.00638.93
8.2.170.0400.02037.95
8.2.160.0200.00740.16
8.2.150.0200.01038.14
8.2.140.0100.00739.79
8.2.130.0230.00739.27
8.2.120.0080.00840.34
8.2.110.0170.01739.58
8.2.100.0240.01036.84
8.2.90.0210.00038.06
8.2.80.0100.01036.93
8.2.70.0130.00736.63
8.2.60.0070.01437.04
8.2.50.0210.00336.91
8.2.40.0120.00939.59
8.2.30.0140.01138.38
8.2.20.0200.00037.13
8.2.10.0100.01037.20
8.2.00.0200.00037.08
8.1.270.0150.00341.21
8.1.260.0090.00941.25
8.1.250.0160.00339.31
8.1.240.0180.01440.06
8.1.230.0290.00638.13
8.1.220.0170.00336.64
8.1.210.0140.00736.48
8.1.200.0130.01340.73
8.1.190.0120.00936.45
8.1.180.0070.01436.66
8.1.170.0210.00437.62
8.1.160.0130.00738.23
8.1.150.0130.00438.71
8.1.140.0210.01141.17
8.1.130.0130.00637.95
8.1.120.0130.00636.66
8.1.110.0130.00636.60
8.1.100.0210.00036.50
8.1.90.0140.00736.63
8.1.80.0130.01036.56
8.1.70.0190.00036.50
8.1.60.0160.00636.66
8.1.50.0140.00736.66
8.1.40.0160.00636.68
8.1.30.0200.00036.79
8.1.20.0130.01036.74
8.1.10.0130.00636.63
8.1.00.0070.01436.73
8.0.300.0160.00636.78
8.0.290.0130.00935.38
8.0.280.0140.00737.22
8.0.270.0180.00436.03
8.0.260.0130.00335.55
8.0.250.0130.00635.49
8.0.240.0200.00735.51
8.0.230.0110.00735.57
8.0.220.0130.00735.67
8.0.210.0130.00635.66
8.0.200.0120.00635.65
8.0.190.0100.01035.70
8.0.180.0160.00335.49
8.0.170.0180.00335.61
8.0.160.0070.01435.53
8.0.150.0200.00035.64
8.0.140.0130.01035.63
8.0.130.0160.01336.37
8.0.120.0130.00735.66
8.0.110.0100.01035.51
8.0.100.0180.00435.52
8.0.90.0130.00635.55
8.0.80.0470.02935.50
8.0.70.0130.00735.55
8.0.60.0110.01135.63
8.0.50.0160.00335.59
8.0.30.0530.03135.81
8.0.20.0510.03435.79
8.0.10.0100.01035.57
8.0.00.0430.02736.04
7.4.330.0100.00732.09
7.4.320.0150.00435.19
7.4.300.0170.00335.08
7.4.290.0100.01035.20
7.4.280.0140.00735.33
7.4.270.0140.01135.12
7.4.260.0110.01132.09
7.4.250.0200.00335.27
7.4.240.0110.01135.16
7.4.230.0120.00835.37
7.4.220.0350.02935.22
7.4.210.0320.03035.16
7.4.200.0100.01035.16
7.4.160.0450.03735.16
7.4.150.0510.02935.30
7.4.140.0800.04735.22
7.4.130.0620.04335.22
7.4.120.0630.04235.29
7.4.110.0510.02435.14
7.4.100.0670.04335.37
7.4.90.0490.05235.37
7.4.80.0430.03935.32
7.4.70.0380.03435.22
7.4.60.0300.03635.35
7.4.50.0160.01935.13
7.4.40.0300.03435.23
7.4.30.0630.03735.34
7.4.00.0220.01633.70
7.3.330.0120.00632.16
7.3.320.0070.01132.21
7.3.310.0100.01035.05
7.3.300.0150.00435.00
7.3.290.0160.00635.05
7.3.280.0440.02735.02
7.3.270.0350.04735.00
7.3.260.0570.02735.05
7.3.250.0600.04135.05
7.3.240.0480.02535.19
7.3.230.0360.03935.10
7.3.210.0560.03435.17
7.3.200.0710.04035.19
7.3.190.0470.03435.33
7.3.180.0390.03934.87
7.3.170.0680.04435.15
7.3.160.0370.03035.10
7.3.00.1120.00734.50
7.2.330.0660.02035.27
7.2.320.0410.05635.26
7.2.310.0520.03235.48
7.2.300.0330.03935.44
7.2.290.0500.02235.55
7.2.130.0930.01034.72
7.2.120.0100.01734.86
7.2.110.0090.01234.61
7.2.100.0160.00934.86
7.2.90.0160.01034.64
7.2.80.0230.00934.78
7.2.70.0130.01034.83
7.2.60.0160.01634.93
7.2.50.0160.01234.46
7.2.40.0090.01236.72
7.2.30.0070.01734.91
7.2.20.0130.01334.76
7.2.10.0170.00734.92
7.2.00.0120.01336.08
7.1.250.0160.00633.90
7.1.240.0040.02133.45
7.1.230.0030.01733.85
7.1.220.0190.00733.67
7.1.210.0140.00733.47
7.1.200.0250.01734.47
7.1.190.0070.01633.52
7.1.180.0100.01933.67
7.1.170.0150.01533.96
7.1.160.0150.00933.79
7.1.150.0130.00933.71
7.1.140.0150.01233.75
7.1.130.0210.00633.44
7.1.120.0110.01433.85
7.1.110.0260.00733.88
7.1.100.1530.01032.04
7.1.90.0230.01133.52
7.1.80.0190.01633.96
7.1.70.0270.01234.35
7.1.60.2330.02442.89
7.1.50.2380.01342.68
7.1.40.2140.01942.79
7.1.30.2100.02342.68
7.1.20.2600.02042.72
7.1.10.2480.01736.53
7.1.00.2670.03333.68
7.0.330.0140.01035.11
7.0.320.0140.01635.24
7.0.310.0040.01435.08
7.0.300.0230.00635.32
7.0.290.0160.00935.05
7.0.280.0210.01035.42
7.0.270.0150.01235.03
7.0.260.0120.02035.09
7.0.250.0140.01435.36
7.0.240.0150.01235.44
7.0.230.0100.02535.09
7.0.220.0220.00935.35
7.0.210.0070.02935.20
7.0.200.2660.02135.57
7.0.190.2150.02835.55
7.0.180.2670.02535.23
7.0.170.2300.01635.23
7.0.160.2550.01635.54
7.0.150.3470.02435.04
7.0.140.3110.01335.36
7.0.130.3430.01835.65
7.0.120.3310.01635.53
7.0.110.3330.03035.36
7.0.100.3660.02035.52
7.0.90.3580.02835.41
7.0.80.3830.01535.40
7.0.70.4050.02035.45
7.0.60.4330.02335.32
7.0.50.4230.03035.55
7.0.40.4710.02124.40
7.0.30.4420.03124.50
7.0.20.4630.01824.65
7.0.10.5450.02524.52
7.0.00.5990.01524.48
5.6.380.0000.01013.96

preferences:
49.66 ms | 400 KiB | 5 Q