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; }); $blah = $exports->call; $blah(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.0110.00418.43
8.3.50.0120.00721.97
8.3.40.0100.01019.01
8.3.30.0070.00719.18
8.3.20.0070.00020.16
8.3.10.0040.00422.00
8.3.00.0060.00319.50
8.2.180.0140.00318.41
8.2.170.0180.00422.96
8.2.160.0090.00920.38
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00422.19
8.2.110.0030.00520.47
8.2.100.0100.00018.09
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0090.00017.80
8.2.50.0100.00018.07
8.2.40.0030.00618.22
8.2.30.0040.00418.06
8.2.20.0040.00417.76
8.2.10.0060.00318.17
8.2.00.0000.00717.68
8.1.280.0040.01125.92
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.86
8.1.230.0070.00419.07
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0070.00022.02
8.1.150.0030.00618.75
8.1.140.0000.00717.36
8.1.130.0030.00317.83
8.1.120.0030.00417.39
8.1.110.0030.00517.35
8.1.100.0040.00417.47
8.1.90.0070.00017.41
8.1.80.0000.00717.50
8.1.70.0040.00417.39
8.1.60.0000.00817.66
8.1.50.0080.00017.54
8.1.40.0040.00417.49
8.1.30.0000.00817.61
8.1.20.0040.00417.66
8.1.10.0040.00417.54
8.1.00.0040.00417.50
8.0.300.0070.00018.77
8.0.290.0020.00516.63
8.0.280.0030.00318.33
8.0.270.0030.00317.20
8.0.260.0030.00317.13
8.0.250.0030.00316.94
8.0.240.0060.00316.93
8.0.230.0040.00416.89
8.0.220.0000.00716.86
8.0.210.0030.00316.94
8.0.200.0030.00316.93
8.0.190.0070.00017.00
8.0.180.0030.00316.95
8.0.170.0030.00516.99
8.0.160.0000.00716.93
8.0.150.0030.00316.73
8.0.140.0000.00816.81
8.0.130.0000.00613.36
8.0.120.0000.00817.04
8.0.110.0050.00216.96
8.0.100.0040.00416.92
8.0.90.0000.00817.03
8.0.80.0090.00617.02
8.0.70.0030.00516.99
8.0.60.0040.00416.98
8.0.50.0050.00316.91
8.0.30.0130.01017.20
8.0.20.0080.01217.40
8.0.10.0070.00016.97
8.0.00.0110.00716.79
7.4.330.0060.00015.00
7.4.320.0030.00616.38
7.4.300.0030.00316.64
7.4.290.0040.00416.62
7.4.280.0000.00716.57
7.4.270.0030.00316.63
7.4.260.0060.00013.30
7.4.250.0080.00016.40
7.4.240.0020.00516.59
7.4.230.0000.00716.31
7.4.220.0040.01216.68
7.4.210.0060.00816.53
7.4.200.0030.00316.64
7.4.160.0110.00616.51
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0040.01316.61
7.4.120.0080.00916.57
7.4.110.0100.00716.54
7.4.100.0030.01416.45
7.4.90.0100.01016.76
7.4.80.0070.01019.39
7.4.70.0070.01016.59
7.4.60.0110.00616.70
7.4.50.0000.00816.59
7.4.40.0060.00916.64
7.4.30.0100.00616.58
7.4.00.0090.00914.87
7.3.330.0000.00713.23
7.3.320.0000.00713.24
7.3.310.0030.00316.39
7.3.300.0040.00416.24
7.3.290.0080.00616.39
7.3.280.0090.00716.33
7.3.270.0170.00317.40
7.3.260.0140.00316.52
7.3.250.0070.01016.43
7.3.240.0090.00916.47
7.3.230.0100.01016.47
7.3.210.0100.01116.50
7.3.200.0040.01519.39
7.3.190.0070.01116.46
7.3.180.0090.00916.51
7.3.170.0090.00916.50
7.3.160.0130.00316.51
7.3.10.0070.00416.78
7.3.00.0070.00316.63
7.2.330.0120.00616.45
7.2.320.0100.00716.75
7.2.310.0060.01016.64
7.2.300.0120.00616.46
7.2.290.0180.00716.36
7.2.130.0100.00316.96
7.2.120.0000.00916.92
7.2.110.0030.01016.88
7.2.100.0040.00816.71
7.2.90.0100.00317.05
7.2.80.0120.00317.02
7.2.70.0030.01016.96
7.2.60.0100.00316.89
7.2.50.0090.00016.88
7.2.40.0060.01016.66
7.2.30.0080.00316.90
7.2.20.0030.00716.60
7.2.10.0080.00416.60
7.2.00.0100.00318.17
7.1.250.0030.00715.43
7.1.200.0000.00915.88
7.1.100.0220.00717.70
7.1.70.0040.00417.21
7.1.60.0140.01119.32
7.1.50.0090.01517.02
7.1.00.0000.08022.41
7.0.200.0120.00616.73
7.0.140.0030.07721.96
7.0.60.0070.07719.98
7.0.50.0070.09017.81
7.0.40.0170.08020.24
7.0.30.0500.07020.17
7.0.20.0300.06020.24
7.0.10.0070.04020.06
7.0.00.0070.07720.05
5.6.280.0030.07320.92
5.6.210.0270.05020.46
5.6.200.0000.08018.19
5.6.190.0030.08720.63
5.6.180.4000.04720.61
5.6.170.0300.07720.55
5.6.160.0030.04320.47
5.6.150.0070.03718.14
5.6.140.0030.07318.21
5.6.130.0030.04718.18
5.6.120.0000.04321.14
5.6.110.0070.06721.04
5.6.100.0000.09020.96
5.6.90.0100.07020.99
5.6.80.0030.06320.54
5.6.70.4330.04020.45
5.5.350.0030.08720.39
5.5.340.0000.07318.02
5.5.330.0100.07720.47
5.5.320.0300.07020.32
5.5.310.0330.07720.30
5.5.300.0030.04317.98
5.5.290.0100.08017.98
5.5.280.0030.06720.66
5.5.270.0100.07320.78
5.5.260.0070.05720.77
5.5.250.0100.04720.71
5.5.240.0300.08020.09
5.4.450.0030.03319.49
5.4.440.0700.04719.28
5.4.430.0800.04019.30
5.4.420.0670.00019.55
5.4.410.0670.00019.38
5.4.400.0600.00019.23
5.4.390.0630.00019.02
5.4.380.0670.00019.07
5.4.370.0600.00019.11
5.4.360.0830.00019.01
5.4.350.0670.00019.04
5.4.340.0630.00019.17
5.4.320.0080.03812.51
5.4.310.0120.04512.51
5.4.300.0090.04612.51
5.4.290.0080.03812.50
5.4.280.0090.03312.41
5.4.270.0060.04312.40
5.4.260.0160.05212.41
5.4.250.0080.04212.40
5.4.240.0090.04012.41
5.4.230.0130.04112.40
5.4.220.0090.03712.40
5.4.210.0140.03512.40
5.4.200.0160.04212.40
5.4.190.0070.03612.39
5.4.180.0080.03612.40
5.4.170.0050.03912.41
5.4.160.0060.04312.40
5.4.150.0110.03412.39
5.4.140.0100.04012.08
5.4.130.0080.03812.07
5.4.120.0080.03412.03
5.4.110.0100.03512.02
5.4.100.0070.04012.02
5.4.90.0060.03812.02
5.4.80.0070.03612.02
5.4.70.0090.03212.01
5.4.60.0090.03112.02
5.4.50.0050.03712.02
5.4.40.0080.03512.00
5.4.30.0090.03212.00
5.4.20.0050.03612.00
5.4.10.0070.03712.00
5.4.00.0050.03611.49
5.3.290.0080.03712.80
5.3.280.0070.03712.71
5.3.270.0070.03912.73
5.3.260.0120.03512.72
5.3.250.0100.03812.72
5.3.240.0040.04112.72
5.3.230.0090.03612.70
5.3.220.0030.04012.68
5.3.210.0110.03412.68
5.3.200.0050.04112.68
5.3.190.0070.03612.68
5.3.180.0070.03612.68
5.3.170.0090.03512.67
5.3.160.0110.03312.68
5.3.150.0070.04112.67
5.3.140.0100.03312.66
5.3.130.0080.04512.66
5.3.120.0080.04412.66
5.3.110.0070.04012.65
5.3.100.0050.04512.13
5.3.90.0060.04512.11
5.3.80.0030.04812.11
5.3.70.0080.03712.11
5.3.60.0080.04612.09
5.3.50.0110.04512.04
5.3.40.0060.04012.04
5.3.30.0080.03712.00
5.3.20.0120.03711.79
5.3.10.0070.03611.75
5.3.00.0070.03711.73
5.2.170.0070.0299.18
5.2.160.0070.0279.18
5.2.150.0060.0319.18
5.2.140.0040.0319.18
5.2.130.0060.0349.14
5.2.120.0050.0399.14
5.2.110.0070.0289.14
5.2.100.0070.0299.14
5.2.90.0040.0339.14
5.2.80.0060.0339.14
5.2.70.0050.0349.14
5.2.60.0040.0359.09
5.2.50.0080.0319.06
5.2.40.0060.0309.04
5.2.30.0060.0359.02
5.2.20.0080.0339.00
5.2.10.0020.0348.92
5.2.00.0100.0268.78
5.1.60.0070.0288.06
5.1.50.0050.0278.06
5.1.40.0050.0248.05
5.1.30.0070.0298.40
5.1.20.0090.0308.42
5.1.10.0070.0308.14
5.1.00.0020.0308.14
5.0.50.0020.0226.62
5.0.40.0030.0196.47
5.0.30.0060.0296.29
5.0.20.0080.0236.27
5.0.10.0030.0206.23
5.0.00.0090.0276.23
4.4.90.0020.0174.78
4.4.80.0040.0144.75
4.4.70.0050.0144.76
4.4.60.0050.0134.76
4.4.50.0030.0154.77
4.4.40.0020.0254.71
4.4.30.0040.0184.75
4.4.20.0050.0184.84
4.4.10.0020.0194.84
4.4.00.0040.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0010.0164.63
4.3.80.0020.0274.58
4.3.70.0050.0174.63
4.3.60.0020.0224.63
4.3.50.0040.0144.63
4.3.40.0030.0274.54
4.3.30.0030.0153.29
4.3.20.0010.0223.27
4.3.10.0010.0183.22
4.3.00.0200.02313.50

preferences:
48.87 ms | 401 KiB | 5 Q