3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pipeline{ public static function make_pipeline($func){ return function($args) use ($func){ return $func($args); }; } } $c = new Pipeline(); $fun = $c::make_pipeline(function($x){ return $x*3; }); echo $fun(3); // should print 9

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.0060.01218.40
8.3.50.0120.00316.36
8.3.40.0100.00518.63
8.3.30.0090.00618.84
8.3.20.0070.00021.76
8.3.10.0000.00821.75
8.3.00.0080.00020.90
8.2.180.0090.00618.29
8.2.170.0110.00422.96
8.2.160.0030.01020.45
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00419.20
8.2.120.0050.00326.35
8.2.110.0070.00419.40
8.2.100.0040.00717.78
8.2.90.0070.00020.61
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0000.00818.22
8.2.50.0050.00318.10
8.2.40.0000.01119.47
8.2.30.0000.00819.17
8.2.20.0050.00218.05
8.2.10.0030.00519.34
8.2.00.0040.00419.11
8.1.280.0060.00925.92
8.1.270.0070.00023.99
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0070.01022.38
8.1.230.0110.00021.04
8.1.220.0040.00417.75
8.1.210.0030.00618.89
8.1.200.0040.00417.35
8.1.190.0000.00817.25
8.1.180.0060.00318.10
8.1.170.0050.00318.50
8.1.160.0000.00819.07
8.1.150.0040.00418.93
8.1.140.0000.00722.15
8.1.130.0000.00717.45
8.1.120.0080.00217.52
8.1.110.0030.00517.33
8.1.100.0040.00417.35
8.1.90.0000.00717.38
8.1.80.0000.00717.46
8.1.70.0040.00417.36
8.1.60.0060.00317.54
8.1.50.0050.00317.52
8.1.40.0040.00417.45
8.1.30.0050.00217.53
8.1.20.0040.00417.58
8.1.10.0080.00017.46
8.1.00.0030.00717.40
8.0.300.0070.00020.03
8.0.290.0000.00816.75
8.0.280.0070.00018.43
8.0.270.0040.00417.25
8.0.260.0070.00016.82
8.0.250.0000.00616.85
8.0.240.0000.00716.95
8.0.230.0000.00716.86
8.0.220.0000.00916.79
8.0.210.0030.00316.86
8.0.200.0070.00016.87
8.0.190.0000.00716.84
8.0.180.0000.00816.89
8.0.170.0050.00516.92
8.0.160.0080.00016.91
8.0.150.0000.00716.77
8.0.140.0040.00416.82
8.0.130.0000.00613.32
8.0.120.0050.00316.80
8.0.110.0050.00316.77
8.0.100.0040.00416.90
8.0.90.0080.00016.84
8.0.80.0130.00316.95
8.0.70.0030.00516.93
8.0.60.0000.00716.68
8.0.50.0030.00716.80
8.0.30.0110.00816.89
8.0.20.0110.00817.38
8.0.10.0000.00816.88
8.0.00.0110.00716.74
7.4.330.0000.00515.55
7.4.320.0070.00016.49
7.4.300.0060.00016.61
7.4.290.0070.00016.41
7.4.280.0040.00416.54
7.4.270.0000.00716.54
7.4.260.0040.00416.47
7.4.250.0070.00016.54
7.4.240.0050.00216.48
7.4.230.0000.00716.57
7.4.220.0000.01016.48
7.4.210.0050.01416.63
7.4.200.0070.00016.59
7.4.160.0140.00416.51
7.4.140.0090.01217.86
7.4.130.0070.01116.52
7.4.120.0100.01016.75
7.4.110.0060.01216.48
7.4.100.0100.01316.29
7.4.90.0110.00616.65
7.4.80.0060.01019.39
7.4.70.0080.01616.59
7.4.60.0130.00316.50
7.4.50.0070.00716.56
7.4.40.0040.01116.54
7.4.00.0040.00915.02
7.3.330.0000.00513.36
7.3.320.0000.00513.18
7.3.310.0050.00316.21
7.3.300.0000.00616.36
7.3.290.0000.00716.32
7.3.280.0110.00316.34
7.3.260.0100.00816.37
7.3.240.0090.00816.42
7.3.230.0090.00916.49
7.3.210.0030.01316.36
7.3.200.0090.00916.55
7.3.190.0070.01016.64
7.3.180.0090.00816.66
7.3.170.0210.00316.31
7.3.160.0030.01316.62
7.3.00.0670.00114.79
7.2.330.0060.01316.79
7.2.320.0070.01016.90
7.2.310.0160.00316.50
7.2.300.0160.00316.59
7.2.290.0100.00616.70
7.2.130.1580.00715.13
7.2.120.0660.00315.16
7.2.110.0640.00015.23
7.2.100.0980.01014.99
7.2.90.0910.00315.02
7.2.80.0560.00015.10
7.2.70.0580.00015.17
7.2.60.0720.00314.96
7.2.50.0660.00314.75
7.2.40.0670.00714.86
7.2.30.0970.00715.13
7.2.20.0730.00614.95
7.2.10.0500.01014.95
7.2.00.0710.00315.13
7.1.250.0570.00713.97

preferences:
67.45 ms | 401 KiB | 5 Q