3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exports = call_user_func(function(){ $fn = function($a, $b, $c) { //echo (string) gettype($this); return "abc it's as easy as $a $b $c"; }; $fn_obj = (object) function($a, $b, $c) use(&$fn) { return call_user_func($fn, $a, $b, $c); }; $fn_obj->call = function($this_, $a, $b, $c) use($fn) { echo (string) gettype($fn); $bound_fn = $fn->bindTo($this_); return call_user_func($bound_fn, $a, $b, $c); }; return $fn_obj; }); //$blah = $exports->call; //$blah(array(), 1,2,3); call_user_func($exports->call, array(), 1,2,3);

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.01618.55
8.3.50.0090.00921.20
8.3.40.0040.01118.99
8.3.30.0100.01319.09
8.3.20.0090.00020.33
8.3.10.0070.00722.09
8.3.00.0030.00619.38
8.2.180.0160.00318.53
8.2.170.0000.01522.96
8.2.160.0150.00020.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00022.21
8.2.110.0080.00421.18
8.2.100.0060.00617.91
8.2.90.0060.00318.93
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00618.04
8.2.50.0030.00618.07
8.2.40.0080.00018.22
8.2.30.0030.00618.08
8.2.20.0070.00017.64
8.2.10.0040.00418.00
8.2.00.0030.00517.70
8.1.280.0140.00325.92
8.1.270.0160.00022.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00321.23
8.1.230.0040.00717.45
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0050.00517.12
8.1.190.0030.00517.35
8.1.180.0000.00718.10
8.1.170.0040.00418.50
8.1.160.0050.00321.96
8.1.150.0000.01018.96
8.1.140.0000.00717.35
8.1.130.0030.00317.84
8.1.120.0040.00417.52
8.1.110.0040.00417.48
8.1.100.0000.00717.48
8.1.90.0000.00817.48
8.1.80.0050.00217.48
8.1.70.0030.00317.32
8.1.60.0030.00617.49
8.1.50.0040.00417.44
8.1.40.0090.00017.45
8.1.30.0040.00417.59
8.1.20.0000.00817.66
8.1.10.0020.00517.46
8.1.00.0000.00717.50
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0040.00418.28
8.0.270.0030.00317.26
8.0.260.0030.00317.12
8.0.250.0030.00317.04
8.0.240.0040.00416.97
8.0.230.0000.00716.95
8.0.220.0030.00316.91
8.0.210.0070.00016.88
8.0.200.0050.00216.97
8.0.190.0000.00717.02
8.0.180.0050.00216.92
8.0.170.0070.00017.07
8.0.160.0000.00716.95
8.0.150.0040.00416.94
8.0.140.0000.00716.77
8.0.130.0040.00413.41
8.0.120.0080.00016.88
8.0.110.0000.00716.97
8.0.100.0040.00416.90
8.0.90.0050.00216.93
8.0.80.0090.00616.86
8.0.70.0040.00416.95
8.0.60.0070.00017.02
8.0.50.0070.00017.08
8.0.30.0100.01117.19
8.0.20.0120.01217.40
8.0.10.0040.00417.09
8.0.00.0090.00916.74
7.4.330.0030.00315.00
7.4.320.0050.00516.42
7.4.300.0000.00716.63
7.4.290.0000.00816.46
7.4.280.0040.00416.61
7.4.270.0000.00716.54
7.4.260.0070.00416.53
7.4.250.0040.00416.35
7.4.240.0040.00416.65
7.4.230.0000.00716.60
7.4.220.0060.01016.51
7.4.210.0040.01116.61
7.4.200.0070.00016.54
7.4.160.0090.00616.48
7.4.150.0070.01717.40
7.4.140.0120.01017.86
7.4.130.0080.00916.55
7.4.120.0100.00716.60
7.4.110.0130.00316.35
7.4.100.0100.01416.70
7.4.90.0030.01316.48
7.4.80.0080.01219.39
7.4.70.0100.00716.59
7.4.60.0090.00716.75
7.4.50.0060.00316.37
7.4.40.0130.00316.55
7.4.30.0040.01316.54
7.4.00.0070.00314.88
7.3.330.0030.00313.33
7.3.320.0050.00013.20
7.3.310.0050.00216.39
7.3.300.0000.00716.29
7.3.290.0000.01316.36
7.3.280.0110.00616.38
7.3.270.0090.00917.40
7.3.260.0070.01516.53
7.3.250.0120.00516.49
7.3.240.0180.00716.52
7.3.230.0100.01316.40
7.3.210.0070.01016.41
7.3.200.0110.00919.39
7.3.190.0070.01016.43
7.3.180.0030.01616.46
7.3.170.0100.00716.48
7.3.160.0090.00616.45
7.2.330.0110.00716.63
7.2.320.0130.00516.62
7.2.310.0120.00616.63
7.2.300.0120.00416.63
7.2.290.0250.02016.66
7.2.60.0110.00316.72
7.2.00.0000.01519.46
7.1.200.0070.00415.77
7.1.100.0030.00618.13
7.1.70.0030.00717.09
7.1.60.0090.01519.32
7.1.50.0140.01016.70
7.1.00.0130.06322.54
7.0.200.0000.01016.76
7.0.140.0000.07721.92
7.0.60.0170.07020.09
7.0.50.0070.04717.86
7.0.40.0030.04320.40
7.0.30.0300.07320.24
7.0.20.0270.04720.21
7.0.10.0070.08720.19
7.0.00.0030.04320.15
5.6.280.0100.06720.79
5.6.210.0070.04320.53
5.6.200.0030.04018.22
5.6.190.0070.08320.39
5.6.180.3100.04020.33
5.6.170.0370.07020.42
5.6.160.0030.05020.54
5.6.150.0130.07718.19
5.6.140.0030.08718.15
5.6.130.0070.08018.18
5.6.120.0070.06721.13
5.6.110.0100.08321.13
5.6.100.0000.04721.02
5.6.90.0030.10321.11
5.6.80.0100.07720.35
5.6.70.3970.03720.39
5.5.350.0030.05720.48
5.5.340.0100.07717.98
5.5.330.0030.09020.40
5.5.320.0370.04320.24
5.5.310.0330.07020.24
5.5.300.0130.02718.07
5.5.290.0030.06718.04
5.5.280.0070.08320.89
5.5.270.0170.07020.86
5.5.260.0100.08020.69
5.5.250.0070.08020.48
5.5.240.0300.06020.07
5.4.450.0500.05019.56
5.4.440.0970.03019.55
5.4.430.0300.03719.57
5.4.420.0630.00019.52
5.4.410.0630.00019.45
5.4.400.0630.00019.33
5.4.390.0630.00019.03
5.4.380.0600.00018.98
5.4.370.0600.00019.26
5.4.360.0630.00019.13
5.4.350.0670.00019.13
5.4.340.0630.00019.07
5.4.320.0050.05212.51
5.4.310.0120.08012.50
5.4.300.0110.04512.51
5.4.290.0140.06212.51
5.4.280.0140.07212.40
5.4.270.0160.06812.41
5.4.260.0100.04912.41
5.4.250.0080.05112.40
5.4.240.0090.07012.41
5.4.230.0220.13512.40
5.4.220.0170.05312.40
5.4.210.0160.06012.39
5.4.200.0260.09712.40
5.4.190.0140.04812.39
5.4.180.0120.07012.39
5.4.170.0060.07512.41
5.4.160.0080.03912.39
5.4.150.0070.04512.39
5.4.140.0070.04012.07
5.4.130.0090.05712.07
5.4.120.0150.05612.03
5.4.110.0140.05812.02
5.4.100.0120.05612.02
5.4.90.0090.04612.02
5.4.80.0200.07812.02
5.4.70.0130.09612.02
5.4.60.0070.06412.02
5.4.50.0200.06812.02
5.4.40.0080.03712.00
5.4.30.0150.08212.00
5.4.20.0170.08312.00
5.4.10.0120.04612.00
5.4.00.0090.06811.49
5.3.290.0120.06112.80
5.3.280.0080.05012.71
5.3.270.0110.06812.73
5.3.260.0070.08412.72
5.3.250.0070.04212.72
5.3.240.0080.06712.72
5.3.230.0080.04212.71
5.3.220.0080.04612.68
5.3.210.0070.04212.68
5.3.200.0120.08012.68
5.3.190.0100.06212.67
5.3.180.0110.05612.67
5.3.170.0070.04812.67
5.3.160.0070.04212.67
5.3.150.0110.04612.67
5.3.140.0080.06512.66
5.3.130.0070.05112.66
5.3.120.0110.05312.66
5.3.110.0080.06112.66
5.3.100.0070.05012.14
5.3.90.0090.06212.12
5.3.80.0070.05012.11
5.3.70.0090.04812.11
5.3.60.0130.07812.10
5.3.50.0200.10612.04
5.3.40.0200.07212.04
5.3.30.0150.03912.00
5.3.20.0110.05211.79
5.3.10.0100.04611.75
5.3.00.0080.04111.73
5.2.170.0100.0449.18
5.2.160.0060.0469.18
5.2.150.0130.0669.18
5.2.140.0220.1059.18
5.2.130.0160.0799.14
5.2.120.0160.0699.14
5.2.110.0180.0789.15
5.2.100.0090.0719.14
5.2.90.0110.0579.14
5.2.80.0130.0669.14
5.2.70.0060.0419.13
5.2.60.0080.0399.09
5.2.50.0030.0439.05
5.2.40.0100.0469.04
5.2.30.0060.0409.01
5.2.20.0090.0369.00
5.2.10.0090.0538.92
5.2.00.0080.0568.78
5.1.60.0170.0458.07
5.1.50.0080.0248.06
5.1.40.0040.0258.05
5.1.30.0070.0278.40
5.1.20.0070.0288.41
5.1.10.0080.0378.14
5.1.00.0130.0578.14
5.0.50.0020.0296.62
5.0.40.0090.0626.47
5.0.30.0080.0386.29
5.0.20.0040.0276.26
5.0.10.0030.0296.24
5.0.00.0060.0386.23
4.4.90.0060.0204.78
4.4.80.0050.0204.75
4.4.70.0020.0234.75
4.4.60.0030.0164.75
4.4.50.0020.0194.77
4.4.40.0040.0244.71
4.4.30.0020.0174.76
4.4.20.0030.0164.85
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0030.0164.67
4.3.100.0030.0294.66
4.3.90.0060.0304.64
4.3.80.0040.0414.58
4.3.70.0050.0174.63
4.3.60.0030.0204.63
4.3.50.0060.0424.63
4.3.40.0070.0564.53
4.3.30.0040.0463.29
4.3.20.0040.0443.27
4.3.10.0080.0263.22
4.3.00.0100.01713.50

preferences:
43.76 ms | 401 KiB | 5 Q