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() { }; return $fn_obj; }); echo $exports(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.55
8.3.50.0120.00721.95
8.3.40.0070.00718.96
8.3.30.0070.00719.07
8.3.20.0040.00420.39
8.3.10.0000.00922.09
8.3.00.0030.00519.50
8.2.180.0180.00016.75
8.2.170.0140.00622.96
8.2.160.0130.00720.48
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00422.11
8.2.110.0000.00920.52
8.2.100.0080.00319.64
8.2.90.0040.00418.22
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0060.00318.08
8.2.20.0000.00717.75
8.2.10.0000.00718.07
8.2.00.0000.00817.83
8.1.280.0140.00725.92
8.1.270.0040.00423.83
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.12
8.1.230.0040.00820.89
8.1.220.0050.00317.74
8.1.210.0030.00618.87
8.1.200.0030.00617.11
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0030.00618.62
8.1.160.0000.00822.02
8.1.150.0090.00018.88
8.1.140.0050.00217.52
8.1.130.0050.00317.87
8.1.120.0000.00717.50
8.1.110.0000.00817.46
8.1.100.0040.00417.46
8.1.90.0040.00417.48
8.1.80.0030.00317.53
8.1.70.0040.00417.37
8.1.60.0000.00817.48
8.1.50.0040.00417.52
8.1.40.0030.00517.51
8.1.30.0030.00617.55
8.1.20.0060.00317.67
8.1.10.0040.00417.58
8.1.00.0040.00417.38
8.0.300.0060.00320.00
8.0.290.0070.00316.63
8.0.280.0030.00318.39
8.0.270.0030.00317.20
8.0.260.0030.00317.12
8.0.250.0070.00016.99
8.0.240.0000.00816.86
8.0.230.0040.00416.96
8.0.220.0040.00416.79
8.0.210.0080.00016.95
8.0.200.0040.00416.92
8.0.190.0040.00417.04
8.0.180.0050.00217.00
8.0.170.0090.00016.98
8.0.160.0000.00716.96
8.0.150.0040.00416.88
8.0.140.0000.00716.98
8.0.130.0030.00313.41
8.0.120.0030.00516.93
8.0.110.0030.00516.88
8.0.100.0000.00717.02
8.0.90.0000.00716.91
8.0.80.0120.00916.93
8.0.70.0070.00016.82
8.0.60.0040.00416.80
8.0.50.0000.00816.95
8.0.30.0060.01317.04
8.0.20.0120.00917.40
8.0.10.0050.00316.95
8.0.00.0090.01116.62
7.4.330.0040.00415.00
7.4.320.0070.00316.66
7.4.300.0060.00016.63
7.4.290.0000.00716.52
7.4.280.0040.00416.55
7.4.270.0000.00716.47
7.4.260.0040.00416.44
7.4.250.0080.00016.63
7.4.240.0030.00416.53
7.4.230.0070.00016.68
7.4.220.0140.01116.61
7.4.210.0090.00616.55
7.4.200.0030.00316.64
7.4.160.0130.00316.39
7.4.150.0060.01217.40
7.4.140.0080.00817.86
7.4.130.0130.00516.63
7.4.120.0090.00916.62
7.4.110.0100.00616.64
7.4.100.0060.01616.49
7.4.90.0130.00316.34
7.4.80.0100.01019.39
7.4.70.0090.00916.73
7.4.60.0040.01316.54
7.4.50.0050.00316.46
7.4.40.0100.00716.59
7.4.30.0170.00016.54
7.4.00.0070.01115.19
7.3.330.0000.00613.39
7.3.320.0060.00013.40
7.3.310.0070.00016.40
7.3.300.0070.00016.23
7.3.290.0130.00316.38
7.3.280.0070.00816.37
7.3.270.0110.00617.40
7.3.260.0070.01016.54
7.3.250.0040.01316.50
7.3.240.0150.00716.45
7.3.230.0130.00716.41
7.3.210.0070.01016.52
7.3.200.0140.00719.39
7.3.190.0100.00616.45
7.3.180.0090.00616.61
7.3.170.0030.01316.52
7.3.160.0060.01216.50
7.3.10.0170.00316.34
7.3.00.0180.00716.21
7.2.330.0100.00716.63
7.2.320.0070.01416.54
7.2.310.0090.01216.71
7.2.300.0090.01416.48
7.2.290.0060.01116.73
7.2.130.0090.00916.72
7.2.120.0120.00316.50
7.2.110.0100.01016.64
7.2.100.0110.00315.91
7.2.90.0090.00616.32
7.2.80.0070.01016.20
7.2.70.0220.00516.35
7.2.60.0130.00316.39
7.2.50.0120.01216.41
7.2.40.0120.00616.19
7.2.30.0240.00516.64
7.2.20.0160.00316.58
7.2.10.0230.00316.55
7.2.00.0160.00518.17
7.1.250.0100.00615.43
7.1.200.0060.01015.49
7.1.100.0040.01217.78
7.1.70.0040.00417.29
7.1.60.0000.02419.32
7.1.50.0130.01016.79
7.1.00.0070.07022.54
7.0.200.0030.00616.46
7.0.140.0070.07322.21
7.0.60.0100.08019.94
7.0.50.0070.04017.86
7.0.40.0030.04320.16
7.0.30.0200.04020.23
7.0.20.0170.04720.19
7.0.10.0030.04320.09
7.0.00.0070.06720.08
5.6.280.0000.07720.92
5.6.210.0100.04320.48
5.6.200.0070.05318.20
5.6.190.0000.04720.41
5.6.180.0270.07320.39
5.6.170.0400.06720.48
5.6.160.0030.04320.48
5.6.150.0030.05318.16
5.6.140.0030.04318.27
5.6.130.0170.03718.24
5.6.120.0070.05021.02
5.6.110.0130.08020.91
5.6.100.0070.08021.16
5.6.90.0170.06321.04
5.6.80.0100.05320.54
5.6.70.3770.05020.53
5.5.350.0030.08720.32
5.5.340.0030.03717.96
5.5.330.0100.06720.21
5.5.320.0230.07720.37
5.5.310.0270.06020.37
5.5.300.0030.07717.98
5.5.290.0030.08018.01
5.5.280.0100.05020.77
5.5.270.0030.04720.77
5.5.260.0100.08020.97
5.5.250.0030.08320.70
5.5.240.0000.03720.20
5.4.450.0400.03719.38
5.4.440.1030.04019.49
5.4.430.0700.03319.47
5.4.420.0830.00019.21
5.4.410.0630.00019.35
5.4.400.0830.00019.03
5.4.390.0630.00019.27
5.4.380.0630.00019.24
5.4.370.0630.00019.01
5.4.360.0600.00019.07
5.4.350.0700.00019.21
5.4.340.0630.00019.13
5.4.320.0060.04012.52
5.4.310.0060.04012.51
5.4.300.0080.03612.51
5.4.290.0060.03912.51
5.4.280.0110.03312.41
5.4.270.0060.03612.40
5.4.260.0050.04112.41
5.4.250.0010.04612.41
5.4.240.0070.03912.41
5.4.230.0070.03912.39
5.4.220.0070.03812.40
5.4.210.0080.03612.39
5.4.200.0040.03812.40
5.4.190.0070.03412.40
5.4.180.0090.03212.39
5.4.170.0040.03812.41
5.4.160.0070.03412.40
5.4.150.0070.03412.39
5.4.140.0050.03812.08
5.4.130.0080.03712.07
5.4.120.0070.04112.02
5.4.110.0070.04212.02
5.4.100.0030.03812.02
5.4.90.0100.04212.02
5.4.80.0030.03912.02
5.4.70.0080.03312.02
5.4.60.0040.03812.02
5.4.50.0060.03612.02
5.4.40.0000.04012.01
5.4.30.0120.02912.00
5.4.20.0020.03812.00
5.4.10.0070.03412.00
5.4.00.0100.03111.49
5.3.290.0070.03812.80
5.3.280.0070.03712.71
5.3.270.0060.03812.72
5.3.260.0050.04012.72
5.3.250.0040.03812.71
5.3.240.0040.03912.71
5.3.230.0040.03912.71
5.3.220.0060.03712.68
5.3.210.0090.03912.68
5.3.200.0090.03512.68
5.3.190.0050.03812.68
5.3.180.0070.03612.67
5.3.170.0020.04312.67
5.3.160.0070.03712.67
5.3.150.0090.03412.67
5.3.140.0070.03512.66
5.3.130.0080.03712.66
5.3.120.0090.03612.66
5.3.110.0080.03712.66
5.3.100.0080.03512.13
5.3.90.0040.04312.11
5.3.80.0020.04012.11
5.3.70.0070.03412.11
5.3.60.0060.03712.09
5.3.50.0070.03512.04
5.3.40.0060.03712.04
5.3.30.0060.03912.01
5.3.20.0080.04011.79
5.3.10.0040.03911.74
5.3.00.0090.03611.73
5.2.170.0060.0299.18
5.2.160.0050.0289.18
5.2.150.0070.0289.18
5.2.140.0080.0279.18
5.2.130.0090.0249.14
5.2.120.0050.0279.14
5.2.110.0030.0319.14
5.2.100.0050.0289.14
5.2.90.0060.0279.14
5.2.80.0060.0299.14
5.2.70.0040.0319.14
5.2.60.0060.0299.09
5.2.50.0050.0299.05
5.2.40.0020.0329.04
5.2.30.0060.0299.02
5.2.20.0050.0289.00
5.2.10.0040.0288.92
5.2.00.0030.0308.79
5.1.60.0050.0258.07
5.1.50.0060.0238.07
5.1.40.0030.0258.05
5.1.30.0070.0238.40
5.1.20.0070.0238.42
5.1.10.0060.0258.14
5.1.00.0030.0268.14
5.0.50.0040.0206.62
5.0.40.0040.0186.48
5.0.30.0050.0336.29
5.0.20.0050.0206.27
5.0.10.0030.0206.23
5.0.00.0040.0316.23
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0050.0134.76
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0050.0134.85
4.4.00.0030.0254.76
4.3.110.0050.0184.67
4.3.100.0020.0194.67
4.3.90.0020.0194.63
4.3.80.0050.0264.58
4.3.70.0060.0124.63
4.3.60.0050.0144.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0040.0143.29
4.3.20.0010.0173.27
4.3.10.0030.0153.21
4.3.00.0070.01013.50

preferences:
40.72 ms | 401 KiB | 5 Q