3v4l.org

run code in 300+ PHP versions simultaneously
<?php function partialLeft(callable $cb) { return function($left) use ($cb) { return function($right) use ($cb, $left) { return $cb($left, $right); }; }; } $a = partialLeft(null); $b = $a("hello"); $c = $b("robert");

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.00316.63
8.3.50.0120.00316.41
8.3.40.0040.01118.77
8.3.30.0060.00918.69
8.3.20.0040.00420.26
8.3.10.0040.00423.66
8.3.00.0050.00317.80
8.2.180.0000.02218.21
8.2.170.0000.01522.96
8.2.160.0060.00920.52
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00717.63
8.2.110.0000.01122.20
8.2.100.0070.00317.80
8.2.90.0050.00319.18
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0050.00321.06
8.2.30.0000.00820.54
8.2.20.0060.00317.55
8.2.10.0000.00718.05
8.2.00.0000.00817.92
8.1.280.0130.00725.92
8.1.270.0080.00023.88
8.1.260.0050.00326.35
8.1.250.0050.00528.09
8.1.240.0030.00622.54
8.1.230.0070.00420.90
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00616.98
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00420.27
8.1.160.0000.00721.98
8.1.150.0060.00318.76
8.1.140.0030.00719.50
8.1.130.0040.00417.62
8.1.120.0040.00417.22
8.1.110.0030.00617.38
8.1.100.0050.00217.34
8.1.90.0000.00717.23
8.1.80.0000.00817.27
8.1.70.0000.00817.22
8.1.60.0000.00817.57
8.1.50.0060.00317.34
8.1.40.0000.00817.51
8.1.30.0040.00417.57
8.1.20.0030.00617.49
8.1.10.0040.00417.38
8.1.00.0040.00417.32
8.0.300.0070.00018.77
8.0.290.0050.00216.63
8.0.280.0040.00418.38
8.0.270.0070.00017.18
8.0.260.0030.00317.18
8.0.250.0000.00716.86
8.0.240.0030.00316.94
8.0.230.0000.00717.00
8.0.220.0070.00016.83
8.0.210.0040.00416.95
8.0.200.0060.00016.84
8.0.190.0030.00916.91
8.0.180.0080.00016.81
8.0.170.0030.00516.90
8.0.160.0040.00416.89
8.0.150.0090.00016.78
8.0.140.0000.00816.71
8.0.130.0060.00013.30
8.0.120.0000.00916.70
8.0.110.0020.00516.82
8.0.100.0030.00316.75
8.0.90.0040.00416.90
8.0.80.0140.00416.93
8.0.70.0070.00016.78
8.0.60.0080.00016.95
8.0.50.0070.00016.82
8.0.30.0110.01016.93
8.0.20.0120.00917.40
8.0.10.0030.00516.91
8.0.00.0080.01316.67
7.4.330.0050.00015.08
7.4.320.0070.00016.43
7.4.300.0040.00416.48
7.4.290.0030.00316.45
7.4.280.0040.00416.41
7.4.270.0000.00716.54
7.4.260.0000.00716.52
7.4.250.0000.00816.32
7.4.240.0020.00516.45
7.4.230.0070.00016.32
7.4.220.0150.00416.55
7.4.210.0110.00416.52
7.4.200.0000.00716.43
7.4.160.0050.01016.54
7.4.150.0190.00017.40
7.4.140.0090.01317.86
7.4.130.0150.00816.55
7.4.120.0080.00816.46
7.4.110.0150.00616.46
7.4.100.0100.00716.35
7.4.90.0100.00716.54
7.4.80.0060.01219.39
7.4.70.0100.00716.41
7.4.60.0080.00816.43
7.4.50.0000.00416.21
7.4.40.0080.00816.41
7.4.30.0040.01416.66
7.4.00.0070.01014.75
7.3.330.0000.00513.09
7.3.320.0000.00513.28
7.3.310.0000.00716.18
7.3.300.0000.00716.31
7.3.290.0060.01216.27
7.3.280.0050.01216.27
7.3.270.0100.00717.40
7.3.260.0130.00516.25
7.3.240.0110.01016.32
7.3.230.0110.00716.46
7.3.210.0080.00816.27
7.3.200.0090.00916.26
7.3.190.0100.00716.50
7.3.180.0110.00616.35
7.3.170.0090.00916.31
7.3.160.0060.00916.27
7.3.10.0030.01016.61
7.3.00.0030.01016.64
7.2.330.0100.00716.32
7.2.320.0060.01216.32
7.2.310.0030.01416.66
7.2.300.0060.00916.61
7.2.290.0040.01316.27
7.2.130.0070.00716.80
7.2.120.0130.00616.76
7.2.110.0040.01216.84
7.2.100.0070.00316.70
7.2.90.0070.00716.53
7.2.80.0070.00416.63
7.2.70.0060.00916.56
7.2.60.0070.00816.70
7.2.50.0070.01016.57
7.2.40.0000.01116.81
7.2.30.0000.01316.90
7.2.20.0040.00816.77
7.2.10.0070.00416.55
7.2.00.0110.00717.99
7.1.250.0040.00415.63
7.1.200.0000.01515.50
7.1.100.0050.00517.87
7.1.70.0030.00516.93
7.1.60.0070.00719.50
7.1.50.0060.01216.52
7.1.00.0070.07322.37
7.0.200.0280.00914.83
7.0.60.0000.04319.87
7.0.50.0030.03717.78
7.0.40.0030.06320.09
7.0.30.0270.08020.25
7.0.20.0270.07720.05
7.0.10.0070.08720.15
7.0.00.0070.07320.09
5.6.280.0030.03021.05
5.6.210.0070.08320.48
5.6.200.0130.05718.19
5.6.190.0170.05720.39
5.6.180.0230.07020.54
5.6.170.0200.04020.62
5.6.160.0100.03720.54
5.6.150.0130.04018.15
5.6.140.0030.04318.17
5.6.130.0170.07718.28
5.6.120.0000.06721.01
5.6.110.0000.05320.98
5.6.100.0030.04720.98
5.6.90.0000.04320.98
5.6.80.0000.06020.52
5.5.350.0270.07720.34
5.5.340.0030.06317.97
5.5.330.0030.05020.40
5.5.320.0300.05320.34
5.5.310.0330.04720.51
5.5.300.0030.06318.00
5.5.290.0100.07318.08
5.5.280.0100.07020.97
5.5.270.0030.08320.80
5.5.260.0170.07720.89
5.5.250.0100.04720.71
5.5.240.0030.06720.30
5.4.450.0170.06019.10
5.4.440.0300.04719.30
5.4.430.0100.06019.41
5.4.420.0200.07019.41
5.4.410.0230.06019.23
5.4.400.0770.03719.14
5.4.390.0700.04718.77
5.4.380.0500.06019.02
5.4.370.0500.06019.20
5.4.360.0270.06018.86
5.4.350.0100.05018.95
5.4.340.0370.05018.98
5.4.320.0530.06318.77
5.4.310.0430.04719.28
5.4.300.0130.05019.20
5.4.290.0370.05318.93
5.4.280.0530.07018.80
5.4.270.0630.05019.10
5.4.260.0670.05018.76
5.4.250.0700.05019.27
5.4.240.0600.05719.08
5.4.230.0900.04319.19
5.4.220.0670.05719.03
5.4.210.0730.06318.93
5.4.200.0770.05019.28
5.4.190.0730.06319.13
5.4.180.0670.06019.04
5.4.170.0770.04718.97
5.4.160.0630.08018.78
5.4.150.0730.04718.85
5.4.140.0630.05716.43
5.4.130.0700.04716.48
5.4.120.0770.05316.30
5.4.110.0670.06716.27
5.4.100.0830.04016.49
5.4.90.0670.05316.59
5.4.80.0500.06016.59
5.4.70.0030.06716.60
5.4.60.0230.04016.34
5.4.50.0270.06316.54
5.4.40.0130.03316.16
5.4.30.0000.06016.51
5.4.20.0030.07716.50
5.4.10.0300.06316.17

preferences:
46.16 ms | 400 KiB | 5 Q