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.0120.00818.41
8.3.50.0090.01321.04
8.3.40.0130.00719.01
8.3.30.0040.01119.08
8.3.20.0040.01120.14
8.3.10.0050.00322.14
8.3.00.0150.00319.38
8.2.180.0070.01018.30
8.2.170.0110.00422.96
8.2.160.0130.00020.40
8.2.150.0190.00024.18
8.2.140.0110.00724.66
8.2.130.0070.00726.16
8.2.120.0040.00422.23
8.2.110.0060.00620.93
8.2.100.0090.00317.91
8.2.90.0060.00318.03
8.2.80.0000.00917.97
8.2.70.0050.00317.50
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0060.00318.22
8.2.30.0050.00318.02
8.2.20.0070.00017.75
8.2.10.0040.00418.13
8.2.00.0020.00517.65
8.1.280.0140.00325.92
8.1.270.0120.00622.14
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.53
8.1.230.0030.00721.05
8.1.220.0030.00517.78
8.1.210.0090.00319.04
8.1.200.0060.00317.25
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0000.00818.34
8.1.160.0080.00022.03
8.1.150.0030.00618.83
8.1.140.0030.00517.46
8.1.130.0000.00717.75
8.1.120.0040.00417.47
8.1.110.0040.00417.51
8.1.100.0000.00717.53
8.1.90.0050.00317.44
8.1.80.0040.00417.41
8.1.70.0000.00717.50
8.1.60.0050.00317.49
8.1.50.0040.00417.45
8.1.40.0000.00817.45
8.1.30.0000.00817.61
8.1.20.0040.00417.60
8.1.10.0040.00417.59
8.1.00.0030.00517.42
8.0.300.0000.00819.62
8.0.290.0000.00716.62
8.0.280.0030.00318.29
8.0.270.0050.00317.22
8.0.260.0060.00017.13
8.0.250.0040.00416.89
8.0.240.0070.00016.88
8.0.230.0040.00416.86
8.0.220.0060.00016.95
8.0.210.0000.00716.93
8.0.200.0080.00017.10
8.0.190.0030.00516.91
8.0.180.0040.00416.96
8.0.170.0080.00017.01
8.0.160.0000.00717.05
8.0.150.0030.00316.92
8.0.140.0070.00016.79
8.0.130.0070.00013.39
8.0.120.0000.00716.97
8.0.110.0000.00717.02
8.0.100.0000.00816.86
8.0.90.0000.00817.01
8.0.80.0100.00616.87
8.0.70.0040.00417.04
8.0.60.0040.00416.93
8.0.50.0000.00716.84
8.0.30.0100.01117.08
8.0.20.0130.01017.40
8.0.10.0040.00417.10
8.0.00.0050.01216.68
7.4.330.0060.00015.00
7.4.320.0000.00816.52
7.4.300.0030.00316.51
7.4.290.0000.00716.52
7.4.280.0060.00016.52
7.4.270.0000.00716.52
7.4.260.0030.00616.65
7.4.250.0000.00816.50
7.4.240.0050.00216.57
7.4.230.0030.00316.68
7.4.220.0030.01316.60
7.4.210.0090.00616.64
7.4.200.0030.00316.53
7.4.160.0060.01016.83
7.4.150.0110.00617.40
7.4.140.0080.00917.86
7.4.130.0100.00716.60
7.4.120.0080.01016.48
7.4.110.0100.00716.50
7.4.100.0140.00316.51
7.4.90.0130.01016.48
7.4.80.0080.00819.39
7.4.70.0150.00316.72
7.4.60.0130.00316.48
7.4.50.0000.00416.33
7.4.40.0030.01316.45
7.4.30.0090.00916.57
7.4.00.0080.00715.16
7.3.330.0050.00013.25
7.3.320.0050.00013.38
7.3.310.0030.00316.34
7.3.300.0000.00716.38
7.3.290.0120.00616.40
7.3.280.0080.00816.40
7.3.270.0110.01117.40
7.3.260.0100.01316.43
7.3.250.0100.01016.38
7.3.240.0190.00416.45
7.3.230.0110.01416.50
7.3.210.0090.00916.52
7.3.200.0030.01319.39
7.3.190.0120.00616.33
7.3.180.0060.01116.49
7.3.170.0070.01516.59
7.3.160.0100.00616.43
7.3.120.0070.00714.80
7.3.110.0040.01314.91
7.3.100.0040.01114.82
7.3.90.0040.00715.03
7.3.80.0070.00714.75
7.3.70.0090.00414.82
7.3.60.0140.00014.75
7.3.50.0040.00414.59
7.3.40.0070.00714.92
7.3.30.0040.00414.66
7.3.20.0000.01216.84
7.3.10.0120.00316.58
7.3.00.0050.01016.67
7.2.330.0110.00716.62
7.2.320.0060.01116.73
7.2.310.0100.00616.70
7.2.300.0100.00616.79
7.2.290.0110.01116.61
7.2.250.0000.01414.96
7.2.240.0030.01715.07
7.2.230.0090.00615.13
7.2.220.0000.01015.14
7.2.210.0000.01415.06
7.2.200.0130.00314.91
7.2.190.0040.01115.06
7.2.180.0060.00915.07
7.2.170.0090.00314.79
7.2.130.0000.01416.85
7.2.120.0030.00616.97
7.2.110.0040.01116.93
7.2.100.0030.01016.96
7.2.90.0030.01217.04
7.2.80.0070.00717.06
7.2.70.0000.01017.04
7.2.60.0030.01216.98
7.2.50.0100.01016.90
7.2.40.0130.00616.85
7.2.30.0110.00416.82
7.2.20.0060.00616.86
7.2.10.0090.00616.99
7.2.00.0030.00818.28
7.1.330.0000.01415.93
7.1.320.0030.01015.75
7.1.310.0040.01215.75
7.1.300.0130.00015.64
7.1.290.0090.00615.57
7.1.280.0030.00915.84
7.1.270.0060.00615.55
7.1.260.0030.01515.66
7.1.250.0080.00315.91
7.1.200.0060.00615.65
7.1.100.0090.00018.00
7.1.70.0000.01017.07
7.1.60.0070.01819.32
7.1.50.0090.01616.69
7.1.00.0070.07322.44
7.0.200.0030.00516.89
7.0.140.0000.07722.08
7.0.60.0270.06720.08
7.0.50.0000.04717.86
7.0.40.0030.08020.27
7.0.30.0330.07320.19
7.0.20.0430.07020.33
7.0.10.0330.05720.06
7.0.00.0070.06020.30
5.6.280.0000.07720.82
5.6.210.0170.07320.70
5.6.200.0070.04718.15
5.6.190.0030.09020.52
5.6.180.0030.04020.61
5.6.170.0170.05320.71
5.6.160.0000.06720.45
5.6.150.0130.07718.18
5.6.140.0170.07018.24
5.6.130.0170.04718.21
5.6.120.0130.07721.15
5.6.110.0100.03721.00
5.6.100.0030.04321.09
5.6.90.0170.07020.98
5.6.80.0030.03720.36
5.6.70.0170.07020.45
5.5.350.0000.07020.45
5.5.340.0070.07717.98
5.5.330.0070.07720.21
5.5.320.0100.07720.36
5.5.310.0170.05020.51
5.5.300.0030.08317.98
5.5.290.0070.08317.97
5.5.280.0070.04020.78
5.5.270.0070.05320.66
5.5.260.0030.04720.88
5.5.250.0100.04320.70
5.5.240.0030.08020.27
5.4.450.0570.04719.28
5.4.440.0470.05019.48
5.4.430.0330.04019.40
5.4.420.0900.00019.56
5.4.410.0630.00019.42
5.4.400.0670.00019.27
5.4.390.0770.00019.14
5.4.380.0630.00019.17
5.4.370.0630.00019.08
5.4.360.0600.00019.24
5.4.350.0630.00018.99
5.4.340.0600.00019.02
5.4.320.0050.03712.51
5.4.310.0070.03712.51
5.4.300.0060.04112.51
5.4.290.0090.03512.51
5.4.280.0070.03412.41
5.4.270.0080.03412.40
5.4.260.0060.03712.41
5.4.250.0060.03712.40
5.4.240.0090.03212.41
5.4.230.0020.04112.40
5.4.220.0050.03712.40
5.4.210.0060.03312.40
5.4.200.0060.03612.40
5.4.190.0030.03812.39
5.4.180.0050.04812.39
5.4.170.0070.03512.40
5.4.160.0070.03512.39
5.4.150.0050.03812.39
5.4.140.0070.03612.08
5.4.130.0090.03312.07
5.4.120.0070.03412.02
5.4.110.0070.03412.02
5.4.100.0040.03712.02
5.4.90.0110.03212.02
5.4.80.0030.04012.02
5.4.70.0070.03312.02
5.4.60.0060.04012.02
5.4.50.0040.03612.02
5.4.40.0030.03712.01
5.4.30.0070.03412.00
5.4.20.0040.03612.00
5.4.10.0050.03512.00
5.4.00.0050.04011.49
5.3.290.0090.04012.80
5.3.280.0080.03612.71
5.3.270.0060.03912.72
5.3.260.0090.03612.72
5.3.250.0030.04212.72
5.3.240.0060.04212.72
5.3.230.0040.04112.71
5.3.220.0090.03412.68
5.3.210.0100.03412.68
5.3.200.0080.03412.68
5.3.190.0050.03912.68
5.3.180.0080.03512.67
5.3.170.0100.03212.67
5.3.160.0050.03712.68
5.3.150.0040.03912.67
5.3.140.0040.03812.66
5.3.130.0100.03412.66
5.3.120.0080.03612.66
5.3.110.0090.03512.66
5.3.100.0070.03812.13
5.3.90.0040.03812.12
5.3.80.0090.03712.11
5.3.70.0050.03812.11
5.3.60.0040.03812.10
5.3.50.0060.03612.05
5.3.40.0050.03712.04
5.3.30.0080.03312.00
5.3.20.0040.03711.79
5.3.10.0040.03711.75
5.3.00.0050.03711.73
5.2.170.0070.0299.18
5.2.160.0070.0269.18
5.2.150.0030.0389.18
5.2.140.0040.0319.18
5.2.130.0060.0279.14
5.2.120.0060.0279.14
5.2.110.0040.0309.14
5.2.100.0030.0309.14
5.2.90.0060.0269.14
5.2.80.0050.0309.14
5.2.70.0060.0289.14
5.2.60.0040.0319.09
5.2.50.0030.0329.05
5.2.40.0020.0319.03
5.2.30.0040.0299.01
5.2.20.0030.0299.00
5.2.10.0040.0328.92
5.2.00.0040.0338.79
5.1.60.0030.0258.07
5.1.50.0030.0268.06
5.1.40.0050.0248.04
5.1.30.0060.0248.39
5.1.20.0010.0398.42
5.1.10.0060.0298.14
5.1.00.0050.0258.14
5.0.50.0050.0196.63
5.0.40.0050.0186.48
5.0.30.0070.0276.29
5.0.20.0030.0196.26
5.0.10.0040.0216.24
5.0.00.0060.0296.23
4.4.90.0050.0144.78
4.4.80.0030.0154.75
4.4.70.0040.0144.76
4.4.60.0030.0154.75
4.4.50.0050.0134.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0010.0174.85
4.4.00.0060.0234.76
4.3.110.0040.0154.67
4.3.100.0030.0154.66
4.3.90.0000.0164.63
4.3.80.0000.0264.59
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0040.0244.63
4.3.40.0030.0234.54
4.3.30.0010.0173.29
4.3.20.0040.0133.26
4.3.10.0010.0163.22
4.3.00.0130.01713.50

preferences:
49.04 ms | 401 KiB | 5 Q