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) { $bound_fn = Closure::bind($fn, $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.0100.01018.50
8.3.50.0120.00721.11
8.3.40.0130.00618.92
8.3.30.0130.00919.08
8.3.20.0160.00320.20
8.3.10.0110.00422.10
8.3.00.0040.00419.51
8.2.180.0070.00718.54
8.2.170.0080.00822.96
8.2.160.0130.00320.39
8.2.150.0120.00624.18
8.2.140.0150.00624.66
8.2.130.0070.01426.16
8.2.120.0050.00322.42
8.2.110.0140.00620.52
8.2.100.0090.00318.16
8.2.90.0000.00919.06
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0040.00418.09
8.2.30.0050.00317.98
8.2.20.0000.00817.75
8.2.10.0000.00717.95
8.2.00.0030.00617.67
8.1.280.0030.01425.92
8.1.270.0100.01023.96
8.1.260.0110.00726.35
8.1.250.0070.00028.09
8.1.240.0160.00323.96
8.1.230.0110.00019.02
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0030.00518.51
8.1.160.0040.00421.93
8.1.150.0060.00318.82
8.1.140.0040.00417.46
8.1.130.0040.00417.90
8.1.120.0070.00017.44
8.1.110.0040.00417.45
8.1.100.0070.00017.36
8.1.90.0030.00317.34
8.1.80.0040.00417.53
8.1.70.0040.00417.47
8.1.60.0030.00517.60
8.1.50.0030.00617.54
8.1.40.0030.00517.40
8.1.30.0000.00817.46
8.1.20.0000.00717.72
8.1.10.0040.00417.57
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.23
8.0.260.0030.00317.26
8.0.250.0060.00016.95
8.0.240.0040.00416.83
8.0.230.0000.00716.94
8.0.220.0070.00016.79
8.0.210.0030.00316.90
8.0.200.0030.00617.01
8.0.190.0000.00717.09
8.0.180.0070.00016.97
8.0.170.0040.00416.87
8.0.160.0070.00016.99
8.0.150.0000.00816.88
8.0.140.0040.00416.96
8.0.130.0050.00013.43
8.0.120.0040.00416.94
8.0.110.0040.00416.96
8.0.100.0040.00417.02
8.0.90.0000.00716.96
8.0.80.0040.01116.88
8.0.70.0000.00816.80
8.0.60.0000.00716.96
8.0.50.0040.00416.74
8.0.30.0060.01317.00
8.0.20.0130.01017.40
8.0.10.0070.00017.11
8.0.00.0060.01116.87
7.4.330.0060.00015.00
7.4.320.0040.00416.63
7.4.300.0000.00716.41
7.4.290.0070.00016.64
7.4.280.0000.00716.39
7.4.270.0030.00316.53
7.4.260.0030.00316.64
7.4.250.0070.00016.56
7.4.240.0060.00116.58
7.4.230.0000.00716.68
7.4.220.0100.01416.60
7.4.210.0030.01016.63
7.4.200.0000.00716.61
7.4.160.0120.00316.54
7.4.150.0040.01417.40
7.4.140.0090.01217.86
7.4.130.0090.01216.62
7.4.120.0060.01516.52
7.4.110.0100.00716.38
7.4.100.0070.01016.49
7.4.90.0140.00316.43
7.4.80.0070.01019.39
7.4.70.0070.01016.59
7.4.60.0120.00616.68
7.4.50.0040.00016.46
7.4.40.0070.01316.63
7.4.30.0120.00416.53
7.4.00.0070.00714.86
7.3.330.0050.00013.39
7.3.320.0020.00213.31
7.3.310.0050.00316.23
7.3.300.0040.00416.37
7.3.290.0100.01016.36
7.3.280.0080.00816.36
7.3.270.0160.00917.40
7.3.260.0090.01216.44
7.3.250.0100.00716.51
7.3.240.0070.01116.60
7.3.230.0150.00316.54
7.3.210.0040.01416.43
7.3.200.0090.01219.39
7.3.190.0100.00716.58
7.3.180.0140.00716.48
7.3.170.0110.01116.58
7.3.160.0060.01016.40
7.3.120.0070.00714.76
7.3.110.0100.00614.53
7.3.100.0030.01314.88
7.3.90.0170.00014.87
7.3.80.0060.00914.92
7.3.70.0060.01014.87
7.3.60.0070.00414.89
7.3.50.0100.00314.91
7.3.40.0030.01014.61
7.3.30.0030.01114.77
7.3.20.0080.00316.79
7.3.10.0000.01616.57
7.3.00.0070.00416.79
7.2.330.0100.00716.82
7.2.320.0090.01216.77
7.2.310.0130.00316.46
7.2.300.0060.01016.55
7.2.290.0090.00916.59
7.2.240.0000.01514.86
7.2.230.0090.00915.05
7.2.220.0030.00914.97
7.2.210.0100.00714.98
7.2.200.0070.00714.96
7.2.190.0130.00014.89
7.2.180.0000.01614.93
7.2.170.0100.00715.05
7.2.160.0070.00715.02
7.2.150.0070.01016.63
7.2.140.0040.01116.66
7.2.130.0070.01016.92
7.2.120.0000.01517.05
7.2.110.0040.01117.00
7.2.100.0030.01316.84
7.2.90.0000.01216.99
7.2.80.0100.01016.74
7.2.70.0120.00616.64
7.2.60.0050.01116.90
7.2.50.0060.00616.86
7.2.40.0120.00416.96
7.2.30.0040.01216.73
7.2.20.0040.00816.69
7.2.10.0060.00916.74
7.2.00.0030.01418.15
7.1.330.0030.01415.55
7.1.320.0030.01315.69
7.1.310.0090.00615.68
7.1.300.0060.00815.51
7.1.290.0000.01715.68
7.1.280.0120.00315.74
7.1.270.0060.00915.71
7.1.260.0110.00415.68
7.1.250.0100.00315.50
7.1.200.0060.00615.75
7.1.100.0000.01118.35
7.1.70.0030.00617.16
7.1.60.0070.01819.32
7.1.50.0170.00716.70
7.1.00.0130.06722.41
7.0.200.0100.00016.76
7.0.140.0100.06721.98
7.0.60.0130.08019.97
7.0.50.0030.04017.93
7.0.40.0230.07720.05
7.0.30.0530.06320.21
7.0.20.0200.04020.09
7.0.10.0100.06320.16
7.0.00.0130.08320.09
5.6.280.0000.07720.90
5.6.210.0100.06720.51
5.6.200.0130.04318.29
5.6.190.0070.04020.56
5.6.180.4030.04720.77
5.6.170.0170.04320.57
5.6.160.0070.04720.54
5.6.150.0000.04318.18
5.6.140.0030.04718.28
5.6.130.0000.04318.21
5.6.120.0070.04321.16
5.6.110.0130.07721.11
5.6.100.0000.06721.04
5.6.90.0000.04720.96
5.6.80.0130.07320.42
5.6.70.4470.03720.52
5.5.350.0070.08320.32
5.5.340.0070.05317.96
5.5.330.0070.07320.19
5.5.320.0270.04020.51
5.5.310.0300.06720.20
5.5.300.0070.06017.96
5.5.290.0130.03018.07
5.5.280.0030.07020.67
5.5.270.0130.06720.81
5.5.260.0070.08720.81
5.5.250.0070.06320.71
5.5.240.0270.07320.27
5.4.450.0170.04719.50
5.4.440.0300.04319.52
5.4.430.0600.05019.27
5.4.420.0770.00019.63
5.4.410.0700.00019.46
5.4.400.0600.00019.39
5.4.390.0630.00019.13
5.4.380.0630.00019.16
5.4.370.0830.00019.26
5.4.360.0630.00019.13
5.4.350.0630.00019.13
5.4.340.0600.00019.13
5.4.320.0070.04112.51
5.4.310.0030.04212.51
5.4.300.0050.03912.52
5.4.290.0080.03512.51
5.4.280.0030.03812.40
5.4.270.0060.03712.41
5.4.260.0080.03612.41
5.4.250.0070.03612.41
5.4.240.0060.04212.41
5.4.230.0040.04112.40
5.4.220.0080.03412.40
5.4.210.0030.03712.40
5.4.200.0040.03712.40
5.4.190.0040.03612.39
5.4.180.0100.03012.39
5.4.170.0050.03612.40
5.4.160.0070.03312.40
5.4.150.0080.03212.39
5.4.140.0070.03412.08
5.4.130.0050.03512.07
5.4.120.0030.03612.02
5.4.110.0040.03612.02
5.4.100.0090.03112.02
5.4.90.0050.03712.02
5.4.80.0050.03712.02
5.4.70.0040.03612.01
5.4.60.0030.03812.02
5.4.50.0050.03712.02
5.4.40.0030.03712.00
5.4.30.0070.03412.00
5.4.20.0050.03612.00
5.4.10.0050.04312.00
5.4.00.0040.03711.49
5.3.290.0040.04112.80
5.3.280.0040.04012.71
5.3.270.0020.04212.73
5.3.260.0060.04212.71
5.3.250.0050.04212.72
5.3.240.0050.03812.72
5.3.230.0090.03612.70
5.3.220.0100.03412.68
5.3.210.0050.03812.68
5.3.200.0030.03812.68
5.3.190.0060.03612.68
5.3.180.0030.03912.67
5.3.170.0100.03212.67
5.3.160.0060.03712.67
5.3.150.0030.03812.67
5.3.140.0080.03312.66
5.3.130.0040.03912.66
5.3.120.0040.04012.66
5.3.110.0110.04012.66
5.3.100.0060.03712.13
5.3.90.0060.04012.11
5.3.80.0060.03512.11
5.3.70.0050.03712.11
5.3.60.0060.03512.09
5.3.50.0100.03012.05
5.3.40.0070.03612.04
5.3.30.0070.03412.00
5.3.20.0060.03411.79
5.3.10.0090.03811.75
5.3.00.0070.03811.74
5.2.170.0040.0309.18
5.2.160.0060.0279.18
5.2.150.0050.0319.18
5.2.140.0070.0289.17
5.2.130.0110.0279.14
5.2.120.0050.0289.14
5.2.110.0060.0289.14
5.2.100.0060.0279.14
5.2.90.0040.0309.14
5.2.80.0030.0329.14
5.2.70.0050.0319.14
5.2.60.0070.0289.09
5.2.50.0050.0319.05
5.2.40.0050.0309.03
5.2.30.0050.0299.01
5.2.20.0040.0309.00
5.2.10.0070.0278.93
5.2.00.0080.0258.78
5.1.60.0060.0258.07
5.1.50.0050.0248.06
5.1.40.0060.0278.05
5.1.30.0050.0368.40
5.1.20.0050.0268.42
5.1.10.0050.0278.14
5.1.00.0040.0278.14
5.0.50.0050.0196.62
5.0.40.0060.0266.48
5.0.30.0030.0386.29
5.0.20.0090.0176.27
5.0.10.0040.0236.24
5.0.00.0070.0316.23
4.4.90.0050.0134.78
4.4.80.0040.0234.75
4.4.70.0050.0204.75
4.4.60.0020.0194.75
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0020.0144.63
4.3.80.0030.0234.59
4.3.70.0010.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0164.63
4.3.40.0030.0254.54
4.3.30.0010.0173.28
4.3.20.0040.0153.27
4.3.10.0000.0213.22
4.3.00.0070.01313.50

preferences:
46.53 ms | 401 KiB | 5 Q