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 (string) is_callable($exports->call);//$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.43
8.3.50.0130.00622.02
8.3.40.0090.01218.57
8.3.30.0150.00719.23
8.3.20.0080.00020.34
8.3.10.0030.00522.01
8.3.00.0080.00019.45
8.2.180.0040.01118.24
8.2.170.0070.01022.96
8.2.160.0070.00720.58
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0000.00821.99
8.2.110.0030.00620.22
8.2.100.0060.00617.91
8.2.90.0030.00619.08
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0030.00518.16
8.2.30.0000.00718.07
8.2.20.0040.00417.84
8.2.10.0050.00218.05
8.2.00.0060.00317.67
8.1.280.0070.01025.92
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00023.93
8.1.230.0090.00324.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0070.00018.10
8.1.170.0050.00318.57
8.1.160.0040.00422.02
8.1.150.0050.00518.85
8.1.140.0050.00317.51
8.1.130.0030.00317.71
8.1.120.0070.00017.47
8.1.110.0080.00017.48
8.1.100.0040.00417.36
8.1.90.0040.00417.35
8.1.80.0000.00817.43
8.1.70.0030.00517.36
8.1.60.0000.00917.46
8.1.50.0040.00717.39
8.1.40.0000.00817.55
8.1.30.0000.00817.63
8.1.20.0000.00817.57
8.1.10.0040.00417.58
8.1.00.0040.00417.44
8.0.300.0070.00018.77
8.0.290.0080.00016.88
8.0.280.0030.00318.38
8.0.270.0040.00417.11
8.0.260.0040.00417.20
8.0.250.0040.00416.90
8.0.240.0090.00016.83
8.0.230.0000.00716.94
8.0.220.0030.00316.84
8.0.210.0030.00316.78
8.0.200.0060.00016.89
8.0.190.0000.00717.02
8.0.180.0000.00716.89
8.0.170.0060.00317.04
8.0.160.0000.00717.04
8.0.150.0000.00716.87
8.0.140.0030.00616.92
8.0.130.0000.00613.43
8.0.120.0000.00816.89
8.0.110.0070.00016.85
8.0.100.0000.00816.76
8.0.90.0020.00517.02
8.0.80.0140.00716.97
8.0.70.0080.00016.83
8.0.60.0030.00517.03
8.0.50.0070.00016.97
8.0.30.0150.00417.13
8.0.20.0060.01217.40
8.0.10.0070.00016.88
8.0.00.0090.00916.77
7.4.330.0000.00715.00
7.4.320.0080.00016.59
7.4.300.0000.00716.65
7.4.290.0070.00016.54
7.4.280.0000.00716.55
7.4.270.0040.00416.62
7.4.260.0030.00616.52
7.4.250.0040.00416.35
7.4.240.0020.00516.51
7.4.230.0000.00716.50
7.4.220.0130.01016.65
7.4.210.0100.01016.56
7.4.200.0000.00716.50
7.4.160.0180.00516.65
7.4.150.0140.00617.40
7.4.140.0060.01417.86
7.4.130.0090.00816.62
7.4.120.0080.01116.55
7.4.110.0070.01016.52
7.4.100.0070.01516.74
7.4.90.0070.01016.38
7.4.80.0160.00519.39
7.4.70.0030.01316.67
7.4.60.0090.00916.63
7.4.50.0040.00016.43
7.4.40.0060.01116.51
7.4.30.0030.01516.65
7.4.00.0090.00714.79
7.3.330.0060.00013.15
7.3.320.0050.00313.13
7.3.310.0000.00716.18
7.3.300.0080.00016.24
7.3.290.0140.00716.38
7.3.280.0050.00916.40
7.3.270.0150.00317.40
7.3.260.0140.00616.50
7.3.250.0080.01316.53
7.3.240.0100.00716.61
7.3.230.0070.01016.55
7.3.210.0140.00716.64
7.3.200.0060.01319.39
7.3.190.0100.00716.48
7.3.180.0090.00616.30
7.3.170.0070.01016.43
7.3.160.0030.01316.42
7.3.120.0080.00615.00
7.3.110.0140.00314.86
7.3.100.0060.00914.67
7.3.90.0120.00314.78
7.3.80.0070.01114.95
7.3.70.0030.01014.99
7.3.60.0080.00414.73
7.3.50.0090.00614.56
7.3.40.0090.00914.87
7.3.30.0030.01014.53
7.3.20.0090.00316.58
7.3.10.0050.00816.75
7.3.00.0050.00516.52
7.2.330.0100.00716.64
7.2.320.0000.01716.80
7.2.310.0060.01016.62
7.2.300.0080.00816.74
7.2.290.0130.00416.45
7.2.250.0040.01515.26
7.2.240.0110.00714.84
7.2.230.0030.01015.02
7.2.220.0100.00315.25
7.2.210.0140.00414.86
7.2.200.0070.00714.94
7.2.190.0070.00715.00
7.2.180.0090.00914.97
7.2.170.0150.00015.14
7.2.60.0000.01216.49
7.2.00.0070.00719.34
7.1.330.0080.00815.74
7.1.320.0000.01315.94
7.1.310.0090.00615.53
7.1.300.0040.01115.82
7.1.290.0060.00615.74
7.1.280.0070.01015.69
7.1.270.0100.00315.98
7.1.260.0070.00715.79
7.1.200.0110.00415.81
7.1.100.0060.00618.10
7.1.70.0000.01317.21
7.1.60.0070.01719.32
7.1.50.0110.01416.70
7.1.00.0000.08022.35
7.0.200.0040.00716.64
7.0.140.0100.06722.09
7.0.60.0100.07320.08
7.0.50.0070.08017.98
7.0.40.0130.08020.40
7.0.30.0570.05720.30
7.0.20.0370.06720.05
7.0.10.0100.03720.09
7.0.00.0000.05720.05
5.6.280.0000.07321.13
5.6.210.0170.08020.69
5.6.200.0070.04018.29
5.6.190.0100.05720.46
5.6.180.3630.04020.50
5.6.170.0370.07320.55
5.6.160.0070.08320.55
5.6.150.0170.07318.19
5.6.140.0100.07718.14
5.6.130.0030.05718.18
5.6.120.0030.04321.01
5.6.110.0030.06320.99
5.6.100.0130.05321.13
5.6.90.0030.07020.99
5.6.80.0030.04020.52
5.6.70.3270.02020.44
5.5.350.0000.08020.40
5.5.340.0100.07717.99
5.5.330.0030.04320.29
5.5.320.0200.04320.24
5.5.310.0130.04020.30
5.5.300.0070.06317.98
5.5.290.0070.05318.10
5.5.280.0000.06720.89
5.5.270.0030.08720.80
5.5.260.0100.07320.78
5.5.250.0030.05020.80
5.5.240.0400.06720.17
5.4.450.1070.03719.57
5.4.440.0470.03019.57
5.4.430.0770.03719.48
5.4.420.0870.00019.38
5.4.410.0630.00019.35
5.4.400.0630.00019.23
5.4.390.0630.00019.09
5.4.380.0700.00019.26
5.4.370.0630.00019.11
5.4.360.0800.00019.11
5.4.350.0630.00019.07
5.4.340.0630.00019.09
5.4.320.0080.03512.51
5.4.310.0020.04412.51
5.4.300.0050.03812.51
5.4.290.0070.04012.51
5.4.280.0070.03712.40
5.4.270.0090.03812.41
5.4.260.0060.04012.40
5.4.250.0090.03712.41
5.4.240.0070.04012.41
5.4.230.0060.04412.40
5.4.220.0030.04212.40
5.4.210.0080.03812.40
5.4.200.0050.04712.40
5.4.190.0050.03812.39
5.4.180.0060.03712.40
5.4.170.0090.04212.40
5.4.160.0050.04712.40
5.4.150.0060.03712.39
5.4.140.0140.04412.08
5.4.130.0040.03712.07
5.4.120.0040.03712.02
5.4.110.0060.03612.02
5.4.100.0070.04412.02
5.4.90.0060.04112.02
5.4.80.0090.03812.02
5.4.70.0090.04412.02
5.4.60.0050.03912.02
5.4.50.0070.04212.02
5.4.40.0030.04012.01
5.4.30.0070.03512.00
5.4.20.0040.03812.00
5.4.10.0060.03612.00
5.4.00.0070.04311.49
5.3.290.0040.04712.80
5.3.280.0070.04012.71
5.3.270.0050.04012.72
5.3.260.0060.04112.72
5.3.250.0070.03812.72
5.3.240.0120.03312.72
5.3.230.0070.03712.71
5.3.220.0090.03412.68
5.3.210.0040.04712.68
5.3.200.0090.04112.68
5.3.190.0090.04412.68
5.3.180.0070.03512.68
5.3.170.0040.03812.67
5.3.160.0040.03912.68
5.3.150.0080.03612.67
5.3.140.0100.03312.66
5.3.130.0080.03712.66
5.3.120.0040.04112.65
5.3.110.0080.03812.66
5.3.100.0070.03812.13
5.3.90.0100.03712.11
5.3.80.0040.04012.11
5.3.70.0100.03312.11
5.3.60.0080.03612.09
5.3.50.0070.03712.04
5.3.40.0070.03912.04
5.3.30.0050.03712.00
5.3.20.0050.04211.78
5.3.10.0040.03611.75
5.3.00.0030.04011.74
5.2.170.0040.0389.18
5.2.160.0050.0309.18
5.2.150.0030.0339.18
5.2.140.0040.0319.18
5.2.130.0080.0289.14
5.2.120.0030.0299.14
5.2.110.0050.0319.14
5.2.100.0060.0289.14
5.2.90.0060.0319.14
5.2.80.0050.0309.14
5.2.70.0030.0329.14
5.2.60.0060.0299.08
5.2.50.0040.0329.06
5.2.40.0050.0299.03
5.2.30.0070.0279.01
5.2.20.0040.0339.01
5.2.10.0080.0248.92
5.2.00.0060.0278.79
5.1.60.0040.0268.07
5.1.50.0070.0228.06
5.1.40.0060.0288.05
5.1.30.0040.0278.40
5.1.20.0090.0248.42
5.1.10.0010.0308.14
5.1.00.0060.0258.14
5.0.50.0020.0246.63
5.0.40.0060.0216.48
5.0.30.0040.0356.29
5.0.20.0040.0226.27
5.0.10.0040.0206.23
5.0.00.0030.0306.23
4.4.90.0020.0164.78
4.4.80.0030.0164.76
4.4.70.0010.0194.75
4.4.60.0020.0174.76
4.4.50.0010.0214.77
4.4.40.0040.0264.71
4.4.30.0050.0184.76
4.4.20.0070.0194.84
4.4.10.0040.0164.85
4.4.00.0020.0274.76
4.3.110.0040.0154.67
4.3.100.0020.0174.67
4.3.90.0030.0174.64
4.3.80.0020.0254.58
4.3.70.0040.0144.63
4.3.60.0030.0144.63
4.3.50.0070.0154.63
4.3.40.0040.0234.53
4.3.30.0040.0153.29
4.3.20.0020.0163.27
4.3.10.0040.0163.22
4.3.00.0000.01313.50

preferences:
43.3 ms | 400 KiB | 5 Q