3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exports = call_user_func(function(){ $fn = function($a, $b, $c, $this_ = NULL) { 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) { return call_user_func($fn, $a, $b, $c, $this_); }; return $fn_obj; }); echo $exports->call(array(), 1,2,3);//$exports->call(1,2,3, array());

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.0100.01018.68
8.3.50.0130.00822.00
8.3.40.0140.00718.84
8.3.30.0100.01319.26
8.3.20.0080.00020.21
8.3.10.0040.00422.02
8.3.00.0040.00419.50
8.2.180.0110.00718.41
8.2.170.0110.00422.96
8.2.160.0070.01320.38
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00326.16
8.2.120.0000.00819.36
8.2.110.0030.00620.52
8.2.100.0070.00418.22
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0060.00317.68
8.2.50.0030.00518.07
8.2.40.0020.00518.34
8.2.30.0040.00417.99
8.2.20.0030.00517.80
8.2.10.0050.00217.98
8.2.00.0030.00617.63
8.1.280.0120.00625.92
8.1.270.0080.00023.95
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.91
8.1.230.0070.00419.04
8.1.220.0030.00517.76
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.45
8.1.160.0000.00722.07
8.1.150.0030.00718.82
8.1.140.0000.00817.47
8.1.130.0070.00017.84
8.1.120.0000.00717.47
8.1.110.0030.00517.43
8.1.100.0000.00717.41
8.1.90.0040.00417.46
8.1.80.0000.00817.44
8.1.70.0040.00417.45
8.1.60.0030.00617.57
8.1.50.0090.00017.47
8.1.40.0040.00417.50
8.1.30.0060.00317.48
8.1.20.0040.00417.49
8.1.10.0040.00417.59
8.1.00.0030.00517.51
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0070.00018.50
8.0.270.0030.00317.14
8.0.260.0030.00317.27
8.0.250.0030.00416.98
8.0.240.0040.00416.97
8.0.230.0030.00316.95
8.0.220.0000.00716.88
8.0.210.0030.00316.79
8.0.200.0000.00717.01
8.0.190.0030.00616.91
8.0.180.0040.00416.98
8.0.170.0040.00416.99
8.0.160.0070.00016.84
8.0.150.0000.00716.88
8.0.140.0040.00416.92
8.0.130.0030.00313.44
8.0.120.0000.00816.93
8.0.110.0040.00416.80
8.0.100.0040.00417.02
8.0.90.0030.00316.97
8.0.80.0040.01116.85
8.0.70.0070.00017.04
8.0.60.0040.00416.77
8.0.50.0000.00816.84
8.0.30.0070.01517.15
8.0.20.0090.01017.40
8.0.10.0000.00716.91
8.0.00.0090.00816.85
7.4.330.0000.00615.14
7.4.320.0000.00816.51
7.4.300.0060.00016.50
7.4.290.0060.00316.55
7.4.280.0000.00716.64
7.4.270.0030.00316.64
7.4.260.0030.00616.52
7.4.250.0040.00416.47
7.4.240.0060.00116.56
7.4.230.0000.00716.62
7.4.220.0100.00616.48
7.4.210.0100.00716.64
7.4.200.0070.00016.73
7.4.160.0130.01016.34
7.4.150.0110.00717.40
7.4.140.0090.00817.86
7.4.130.0070.01116.61
7.4.120.0070.01616.53
7.4.110.0100.00716.50
7.4.100.0150.00316.45
7.4.90.0060.01216.42
7.4.80.0070.01019.39
7.4.70.0030.01416.63
7.4.60.0090.00616.67
7.4.50.0000.00816.72
7.4.40.0090.00616.51
7.4.30.0090.00916.66
7.4.00.0060.01114.89
7.3.330.0050.00013.29
7.3.320.0030.00313.20
7.3.310.0000.00716.47
7.3.300.0070.00016.24
7.3.290.0070.01316.30
7.3.280.0110.00716.36
7.3.270.0080.01217.40
7.3.260.0090.00916.44
7.3.250.0110.00916.39
7.3.240.0090.01316.39
7.3.230.0080.01116.43
7.3.210.0130.00316.39
7.3.200.0000.01719.39
7.3.190.0090.00616.48
7.3.180.0060.01016.46
7.3.170.0040.01416.67
7.3.160.0060.00916.56
7.3.120.0060.01215.00
7.3.110.0070.00714.91
7.3.100.0090.00914.90
7.3.90.0110.00414.90
7.3.80.0000.01815.08
7.3.70.0080.00314.71
7.3.60.0030.00614.47
7.3.50.0080.00814.88
7.3.40.0040.00414.91
7.3.30.0030.00714.93
7.3.20.0080.00616.46
7.3.10.0080.00416.57
7.3.00.0090.00616.70
7.2.330.0070.01116.46
7.2.320.0070.01016.47
7.2.310.0080.00816.28
7.2.300.0130.00316.82
7.2.290.0100.01316.41
7.2.250.0060.01214.95
7.2.240.0030.01615.08
7.2.230.0090.00915.06
7.2.220.0070.00715.05
7.2.210.0000.01514.75
7.2.200.0090.00615.05
7.2.190.0030.01015.01
7.2.180.0000.01814.96
7.2.170.0030.01014.97
7.2.60.0100.00317.00
7.2.00.0030.01019.50
7.1.330.0100.00715.97
7.1.320.0070.00715.55
7.1.310.0000.01515.96
7.1.300.0090.00615.80
7.1.290.0000.00815.78
7.1.280.0110.00415.50
7.1.270.0030.00715.46
7.1.260.0070.00715.52
7.1.200.0070.00715.95
7.1.100.0060.00617.93
7.1.70.0050.00517.13
7.1.60.0040.02219.32
7.1.50.0040.02116.69
7.1.00.0070.07322.40
7.0.200.0000.00816.91
7.0.140.0030.07322.01
7.0.60.0100.08319.86
7.0.50.0100.07317.93
7.0.40.0170.05720.40
7.0.30.0270.04020.13
7.0.20.0300.05020.08
7.0.10.0300.05320.07
7.0.00.0130.04720.32
5.6.280.0130.06321.16
5.6.210.0170.06020.63
5.6.200.0100.07718.22
5.6.190.0070.05020.61
5.6.180.0070.05020.52
5.6.170.0270.04020.52
5.6.160.0030.05720.55
5.6.150.0100.05318.15
5.6.140.0100.03718.28
5.6.130.0070.08718.16
5.6.120.0070.04021.01
5.6.110.0130.06721.15
5.6.100.0030.05021.00
5.6.90.0030.07721.00
5.6.80.0030.07020.43
5.6.70.2870.03020.29
5.5.350.0070.08020.45
5.5.340.0100.04018.05
5.5.330.0100.08720.57
5.5.320.0070.07320.51
5.5.310.0330.07020.26
5.5.300.0100.03718.04
5.5.290.0030.08318.04
5.5.280.0130.07720.78
5.5.270.0030.05320.90
5.5.260.0000.04720.88
5.5.250.0200.05020.59
5.5.240.0070.08020.04
5.4.450.0370.04019.41
5.4.440.0870.03719.53
5.4.430.0500.03719.38
5.4.420.0670.00019.47
5.4.410.0670.00019.27
5.4.400.0670.00019.05
5.4.390.0830.00019.12
5.4.380.0670.00019.05
5.4.370.0630.00018.98
5.4.360.0800.00019.12
5.4.350.0670.00019.25
5.4.340.0630.00019.04
5.4.320.0070.03812.52
5.4.310.0060.04012.51
5.4.300.0040.03912.52
5.4.290.0080.04112.51
5.4.280.0090.03312.40
5.4.270.0090.03512.41
5.4.260.0100.03912.40
5.4.250.0080.03712.41
5.4.240.0050.03812.40
5.4.230.0050.04112.40
5.4.220.0080.03512.40
5.4.210.0070.03512.40
5.4.200.0060.03812.40
5.4.190.0090.03612.40
5.4.180.0110.03812.39
5.4.170.0040.04312.41
5.4.160.0050.04112.40
5.4.150.0050.03712.39
5.4.140.0070.04412.08
5.4.130.0040.03912.07
5.4.120.0090.04112.02
5.4.110.0040.04312.02
5.4.100.0110.04112.02
5.4.90.0090.03512.02
5.4.80.0080.04512.02
5.4.70.0070.03412.02
5.4.60.0050.03612.02
5.4.50.0080.03612.02
5.4.40.0100.03512.01
5.4.30.0080.03612.00
5.4.20.0070.04012.00
5.4.10.0080.03412.00
5.4.00.0060.03711.49
5.3.290.0080.04412.80
5.3.280.0080.04412.71
5.3.270.0080.04212.72
5.3.260.0070.04112.72
5.3.250.0090.03712.72
5.3.240.0110.03312.72
5.3.230.0050.04212.71
5.3.220.0080.04312.68
5.3.210.0070.03912.68
5.3.200.0050.03912.68
5.3.190.0090.03612.68
5.3.180.0090.03412.67
5.3.170.0100.03512.67
5.3.160.0050.03912.67
5.3.150.0060.03812.67
5.3.140.0090.03712.66
5.3.130.0060.04112.66
5.3.120.0070.03812.66
5.3.110.0050.04012.66
5.3.100.0080.03512.13
5.3.90.0060.03812.12
5.3.80.0080.03612.11
5.3.70.0070.03612.11
5.3.60.0060.03812.10
5.3.50.0080.03412.04
5.3.40.0080.03512.04
5.3.30.0080.03412.00
5.3.20.0090.03511.79
5.3.10.0040.03811.75
5.3.00.0090.03511.73
5.2.170.0070.0289.18
5.2.160.0040.0309.18
5.2.150.0060.0299.18
5.2.140.0030.0339.18
5.2.130.0090.0269.14
5.2.120.0060.0419.14
5.2.110.0100.0359.15
5.2.100.0060.0409.14
5.2.90.0040.0299.14
5.2.80.0060.0359.13
5.2.70.0050.0319.14
5.2.60.0030.0319.09
5.2.50.0040.0309.06
5.2.40.0060.0289.03
5.2.30.0060.0289.02
5.2.20.0070.0269.00
5.2.10.0060.0278.92
5.2.00.0060.0338.79
5.1.60.0030.0308.07
5.1.50.0060.0278.06
5.1.40.0050.0258.05
5.1.30.0070.0238.40
5.1.20.0020.0358.42
5.1.10.0030.0288.14
5.1.00.0070.0308.14
5.0.50.0020.0236.62
5.0.40.0020.0266.48
5.0.30.0030.0326.29
5.0.20.0040.0246.26
5.0.10.0040.0216.23
5.0.00.0010.0346.23
4.4.90.0030.0164.78
4.4.80.0030.0154.76
4.4.70.0030.0174.76
4.4.60.0070.0174.76
4.4.50.0050.0194.77
4.4.40.0050.0314.71
4.4.30.0050.0204.76
4.4.20.0050.0204.84
4.4.10.0060.0194.85
4.4.00.0060.0294.76
4.3.110.0070.0194.66
4.3.100.0050.0204.67
4.3.90.0070.0184.63
4.3.80.0010.0354.58
4.3.70.0010.0244.63
4.3.60.0020.0164.63
4.3.50.0050.0154.63
4.3.40.0030.0264.54
4.3.30.0040.0193.29
4.3.20.0030.0303.27
4.3.10.0010.0193.22
4.3.00.0100.01713.50

preferences:
46.28 ms | 401 KiB | 5 Q