3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { } } function test (callable $arg) { echo "CHECK"; } $foo = new Foo(); var_dump(is_callable(array($foo, 'bar'))); var_dump(is_callable(array(0 => $foo, 1 => 'bar'))); test(array($foo, 'bar')); test(array(0 => $foo, 1 => 'bar'));

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.0040.01116.50
8.3.50.0070.00821.93
8.3.40.0130.00718.71
8.3.30.0070.00719.17
8.3.20.0070.00020.20
8.3.10.0050.00320.38
8.3.00.0050.00319.38
8.2.180.0090.00616.63
8.2.170.0100.00722.96
8.2.160.0100.00320.39
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00421.17
8.2.110.0060.00320.38
8.2.100.0130.00417.65
8.2.90.0070.00019.20
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0000.00919.37
8.2.20.0000.00817.63
8.2.10.0040.00418.09
8.2.00.0040.00417.79
8.1.280.0140.00725.92
8.1.270.0040.00423.73
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.75
8.1.230.0040.00821.01
8.1.220.0050.00317.76
8.1.210.0000.00918.77
8.1.200.0050.00517.23
8.1.190.0070.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0060.00322.00
8.1.150.0000.00818.80
8.1.140.0070.00017.50
8.1.130.0000.00717.80
8.1.120.0020.00517.48
8.1.110.0040.00417.47
8.1.100.0030.00317.43
8.1.90.0000.00717.44
8.1.80.0070.00017.39
8.1.70.0070.00017.41
8.1.60.0030.00617.58
8.1.50.0040.00417.53
8.1.40.0040.00417.53
8.1.30.0030.00617.67
8.1.20.0000.00817.65
8.1.10.0020.00517.57
8.1.00.0050.00317.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.51
8.0.270.0030.00617.15
8.0.260.0030.00317.29
8.0.250.0030.00317.05
8.0.240.0040.00416.88
8.0.230.0000.00717.03
8.0.220.0000.00716.98
8.0.210.0070.00016.84
8.0.200.0000.00716.99
8.0.190.0070.00017.03
8.0.180.0000.00717.00
8.0.170.0050.00316.93
8.0.160.0000.00817.07
8.0.150.0000.00716.99
8.0.140.0040.00416.85
8.0.130.0030.00313.36
8.0.120.0080.00016.91
8.0.110.0040.00416.98
8.0.100.0070.00016.97
8.0.90.0000.00716.91
8.0.80.0060.00916.87
8.0.70.0070.00016.75
8.0.60.0040.00417.06
8.0.50.0040.00416.81
8.0.30.0090.01217.09
8.0.20.0080.01217.40
8.0.10.0050.00217.09
8.0.00.0120.00716.60
7.4.330.0020.00215.15
7.4.320.0040.00416.58
7.4.300.0000.00716.41
7.4.290.0040.00416.44
7.4.280.0090.00016.54
7.4.270.0000.00716.52
7.4.260.0030.00316.57
7.4.250.0050.00216.47
7.4.240.0000.00716.52
7.4.230.0070.00016.57
7.4.220.0130.00316.50
7.4.210.0040.01116.45
7.4.200.0000.00716.66
7.4.160.0140.00716.38
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0060.01416.52
7.4.120.0060.01116.42
7.4.110.0060.01016.53
7.4.100.0110.00616.63
7.4.90.0100.00716.45
7.4.80.0120.00919.39
7.4.70.0110.00616.25
7.4.60.0070.01016.43
7.4.50.0030.00516.38
7.4.40.0120.00416.50
7.4.30.0080.00816.54
7.4.00.0090.00615.00
7.3.330.0050.00013.33
7.3.320.0000.00513.37
7.3.310.0070.00016.34
7.3.300.0030.00316.32
7.3.290.0120.00616.44
7.3.280.0050.01216.35
7.3.270.0120.00617.40
7.3.260.0100.00716.44
7.3.250.0090.00816.56
7.3.240.0070.01016.59
7.3.230.0100.01116.66
7.3.210.0150.00616.50
7.3.200.0030.01419.39
7.3.190.0090.00916.52
7.3.180.0080.00816.52
7.3.170.0110.00616.66
7.3.160.0090.00916.53
7.3.120.0080.00914.96
7.3.110.0060.00914.73
7.3.100.0050.00914.87
7.3.90.0040.00914.80
7.3.80.0050.00614.75
7.3.70.0020.01214.68
7.3.60.0060.00714.83
7.3.50.0060.00814.77
7.3.40.0020.01114.82
7.3.30.0050.00614.90
7.3.20.0070.00816.55
7.3.10.0090.00516.72
7.3.00.0070.00516.62
7.2.330.0110.01116.46
7.2.320.0090.01316.80
7.2.310.0030.01316.79
7.2.300.0070.01016.80
7.2.290.0110.00616.76
7.2.250.0090.00814.99
7.2.240.0070.01015.26
7.2.230.0070.00815.17
7.2.220.0040.01015.11
7.2.210.0070.00715.00
7.2.200.0060.00715.06
7.2.190.0100.00315.06
7.2.180.0050.00915.03
7.2.170.0090.00615.16
7.2.160.0040.00815.07
7.2.150.0080.00316.89
7.2.140.0100.00716.92
7.2.130.0070.00716.98
7.2.120.0000.01317.02
7.2.110.0070.00717.17
7.2.100.0060.00616.90
7.2.90.0090.00916.63
7.2.80.0060.00317.05
7.2.70.0060.00617.00
7.2.60.0030.01016.95
7.2.50.0060.00616.86
7.2.40.0070.00316.75
7.2.30.0140.00016.64
7.2.20.0080.00816.79
7.2.10.0070.00716.82
7.2.00.0020.01017.91
7.1.330.0040.01115.89
7.1.320.0070.00515.80
7.1.310.0060.00815.79
7.1.300.0040.00715.70
7.1.290.0030.01115.63
7.1.280.0060.00515.48
7.1.270.0080.00315.70
7.1.260.0060.00815.73
7.1.250.0120.00015.89
7.1.200.0030.00915.66
7.1.100.0030.00617.92
7.1.70.0040.00417.25
7.1.60.0100.01319.61
7.1.50.0230.01734.86
7.1.00.0000.08022.44
7.0.200.0050.00516.89
7.0.140.0000.07322.00
7.0.60.0070.05719.95
7.0.50.0030.08717.85
7.0.40.0100.03720.18
7.0.30.0500.07320.29
7.0.20.0230.08020.08
7.0.10.0030.09720.23
7.0.00.0030.04020.05
5.6.280.0000.07720.86
5.6.210.0030.04020.47
5.6.200.0100.04718.29
5.6.190.0100.03720.61
5.6.180.0330.05020.50
5.6.170.0370.08020.50
5.6.160.0030.05720.47
5.6.150.0070.06018.22
5.6.140.0030.08318.21
5.6.130.0030.08318.16
5.6.120.0200.06720.94
5.6.110.0100.07021.05
5.6.100.0170.07021.00
5.6.90.0130.08021.11
5.6.80.0100.03020.41
5.5.350.0170.06320.43
5.5.340.0130.05017.96
5.5.330.0030.04720.31
5.5.320.0030.05320.35
5.5.310.0230.07720.35
5.5.300.0070.06717.99
5.5.290.0130.07717.97
5.5.280.0030.04320.78
5.5.270.0030.06320.88
5.5.260.0100.06720.87
5.5.250.0030.08720.59
5.5.240.0100.04020.14
5.4.450.1130.04319.48
5.4.440.0170.05019.55
5.4.430.0770.03319.21
5.4.420.0700.06019.23
5.4.410.0700.06019.50
5.4.400.0970.05319.15
5.4.390.0870.05019.14
5.4.380.0200.06718.79
5.4.370.0370.04318.72
5.4.360.0470.06018.51
5.4.350.0270.05318.56
5.4.340.0400.05018.78
5.4.320.0080.03812.51
5.4.310.0060.03812.50
5.4.300.0060.03612.50
5.4.290.0070.03712.50
5.4.280.0060.03712.39
5.4.270.0050.03812.40
5.4.260.0090.03612.40
5.4.250.0070.03612.40
5.4.240.0100.03912.40
5.4.230.0090.04212.39
5.4.220.0080.03412.39
5.4.210.0060.03912.39
5.4.200.0060.03812.39
5.4.190.0080.03412.39
5.4.180.0070.03812.39
5.4.170.0060.03612.39
5.4.160.0060.03612.39
5.4.150.0080.03412.39
5.4.140.0040.03912.07
5.4.130.0050.03712.06
5.4.120.0070.03612.02
5.4.110.0050.03912.01
5.4.100.0070.03512.02
5.4.90.0090.03412.02
5.4.80.0080.03612.02
5.4.70.0060.04712.01
5.4.60.0040.03712.00
5.4.50.0070.03412.01
5.4.40.0070.03312.00
5.4.30.0070.03512.00
5.4.20.0070.03312.00
5.4.10.0070.03311.99
5.4.00.0020.03911.48
5.3.290.0070.04212.80
5.3.280.0100.03712.71
5.3.270.0090.04712.72
5.3.260.0070.04212.72
5.3.250.0080.04412.72
5.3.240.0060.04112.72
5.3.230.0090.03712.70
5.3.220.0100.03512.68
5.3.210.0070.04612.68
5.3.200.0050.04012.68
5.3.190.0100.04312.68
5.3.180.0090.03712.68
5.3.170.0080.03712.66
5.3.160.0080.03712.67
5.3.150.0060.03712.67
5.3.140.0070.04512.66
5.3.130.0040.04112.65
5.3.120.0060.04512.66
5.3.110.0070.03912.66
5.3.100.0080.04012.12
5.3.90.0090.03312.11
5.3.80.0060.04012.10
5.3.70.0060.03712.10
5.3.60.0090.04512.08
5.3.50.0060.03612.03
5.3.40.0060.03812.04
5.3.30.0070.03411.99
5.3.20.0080.03711.77
5.3.10.0110.04511.73
5.3.00.0150.03511.73
5.2.170.0080.0289.23
5.2.160.0040.0369.23
5.2.150.0080.0289.23
5.2.140.0090.0279.23
5.2.130.0070.0289.18
5.2.120.0080.0249.18
5.2.110.0050.0299.19
5.2.100.0040.0299.19
5.2.90.0040.0299.19
5.2.80.0100.0299.18
5.2.70.0010.0349.18
5.2.60.0050.0309.13
5.2.50.0030.0329.10
5.2.40.0040.0299.08
5.2.30.0070.0279.05
5.2.20.0050.0289.04
5.2.10.0050.0288.95
5.2.00.0020.0328.81
5.1.60.0020.0268.10
5.1.50.0030.0268.09
5.1.40.0030.0268.07
5.1.30.0050.0268.42
5.1.20.0070.0338.44
5.1.10.0070.0238.17
5.1.00.0050.0318.17
5.0.50.0020.0236.64
5.0.40.0030.0206.50
5.0.30.0030.0326.32
5.0.20.0060.0176.29
5.0.10.0060.0276.26
5.0.00.0070.0306.25
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0050.0134.76
4.4.60.0040.0144.75
4.4.50.0030.0204.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0040.0184.84
4.4.10.0040.0204.85
4.4.00.0030.0264.76
4.3.110.0000.0224.66
4.3.100.0060.0134.67
4.3.90.0050.0134.63
4.3.80.0040.0234.58
4.3.70.0040.0154.63
4.3.60.0030.0154.63
4.3.50.0050.0134.63
4.3.40.0030.0244.54
4.3.30.0010.0163.30
4.3.20.0030.0153.28
4.3.10.0020.0153.24
4.3.00.0130.02713.92

preferences:
41.88 ms | 401 KiB | 5 Q