3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public function doIt() { echo 'done'; } } function is_instance_callable(array $definition) { return count($definition) === 2 && in_array($definition[1], get_class_methods($definition[0]) ?? [], true); } $callable = [TestClass::class, 'doIt', 'param' => 'myParam']; var_dump(is_instance_callable($callable)); var_dump(is_callable($callable));

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.4.120.0090.01024.04
8.4.110.0100.01018.95
8.4.100.0100.00918.84
8.4.90.0130.00620.54
8.4.80.0110.00618.43
8.4.70.0120.00718.82
8.4.60.0120.01018.81
8.4.50.0060.00218.99
8.4.40.0130.00317.72
8.4.30.0040.00418.69
8.4.20.0100.01022.29
8.4.10.0070.01122.65
8.3.250.0100.00918.81
8.3.240.0120.00817.27
8.3.230.0120.00716.70
8.3.220.0100.00818.81
8.3.210.0020.00618.32
8.3.200.0060.00216.80
8.3.190.0110.00818.82
8.3.180.0100.00919.03
8.3.170.0150.00318.72
8.3.160.0090.00917.25
8.3.150.0070.01116.57
8.3.140.0150.00318.94
8.3.130.0060.00318.43
8.3.120.0060.00618.93
8.3.110.0040.00420.94
8.3.100.0100.00024.06
8.3.90.0080.00026.77
8.3.80.0040.00819.36
8.3.70.0080.00816.58
8.3.60.0180.00316.50
8.3.50.0160.00523.64
8.3.40.0110.00419.34
8.3.30.0060.00918.38
8.3.20.0120.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0110.00720.46
8.2.280.0060.00318.62
8.2.270.0120.00616.66
8.2.260.0110.00716.48
8.2.250.0000.00818.30
8.2.240.0030.00518.85
8.2.230.0050.00522.58
8.2.220.0040.00837.54
8.2.210.0080.00026.77
8.2.200.0000.00818.88
8.2.190.0150.00018.07
8.2.180.0100.01025.92
8.2.170.0140.00022.96
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.35
8.2.110.0040.00420.41
8.2.100.0040.00819.51
8.2.90.0040.00417.50
8.2.80.0050.00318.73
8.2.70.0030.00517.63
8.2.60.0030.00517.80
8.2.50.0090.00018.05
8.2.40.0080.00018.16
8.2.30.0070.00018.03
8.2.20.0040.00418.07
8.2.10.0030.00519.24
8.2.00.0070.00019.31
8.1.330.0090.00921.77
8.1.320.0120.00716.03
8.1.310.0120.00316.22
8.1.300.0060.00318.51
8.1.290.0050.00530.84
8.1.280.0070.01425.92
8.1.270.0040.00423.99
8.1.260.0050.00228.09
8.1.250.0080.00028.09
8.1.240.0030.00622.01
8.1.230.0070.00417.70
8.1.220.0080.00017.74
8.1.210.0100.00018.77
8.1.200.0030.00617.35
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0000.00718.81
8.1.150.0000.00818.86
8.1.140.0040.00418.94
8.1.130.0030.00320.13
8.1.120.0030.00317.54
8.1.110.0040.00417.49
8.1.100.0000.00717.41
8.1.90.0000.00817.43
8.1.80.0040.00417.38
8.1.70.0000.00717.51
8.1.60.0000.00917.56
8.1.50.0000.00817.54
8.1.40.0000.00917.57
8.1.30.0040.00417.55
8.1.20.0080.00017.60
8.1.10.0000.00817.53
8.1.00.0040.00417.34
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0070.00018.45
8.0.270.0070.00018.01
8.0.260.0000.00718.42
8.0.250.0040.00416.93
8.0.240.0030.00317.01
8.0.230.0070.00016.93
8.0.220.0080.00016.91
8.0.210.0070.00016.89
8.0.200.0040.00417.00
8.0.190.0000.00817.03
8.0.180.0040.00416.82
8.0.170.0090.00016.90
8.0.160.0040.00416.96
8.0.150.0000.00716.80
8.0.140.0040.00416.69
8.0.130.0000.00613.37
8.0.120.0080.00016.77
8.0.110.0070.00016.90
8.0.100.0040.00316.96
8.0.90.0060.00316.93
8.0.80.0130.00516.89
8.0.70.0030.00616.86
8.0.60.0070.00016.88
8.0.50.0080.00016.93
8.0.30.0130.00417.34
8.0.20.0110.01017.00
8.0.10.0050.00317.02
8.0.00.0110.00716.51
7.4.330.0000.00415.55
7.4.320.0080.00016.57
7.4.300.0080.00016.59
7.4.290.0040.00416.62
7.4.280.0000.00916.52
7.4.270.0000.01116.56
7.4.260.0000.00613.27
7.4.250.0030.00316.61
7.4.240.0020.00516.47
7.4.230.0080.00016.61
7.4.220.0000.00716.59
7.4.210.0120.00516.45
7.4.200.0030.00316.59
7.4.130.0110.01016.47
7.4.120.0140.01016.51
7.4.110.0030.01416.51
7.4.100.0080.00816.41
7.4.90.0100.01016.53
7.4.80.0100.00719.39
7.4.70.0040.01816.50
7.4.60.0030.01216.52
7.4.50.0120.00416.33
7.4.40.0120.00316.59
7.4.30.0110.00816.36
7.4.20.0130.00316.48
7.4.10.0060.01216.39
7.4.00.0130.00316.56
7.3.330.0040.00416.29
7.3.320.0000.00613.28
7.3.310.0030.00316.16
7.3.300.0000.00616.27
7.3.290.0030.01216.34
7.3.280.0000.01516.27
7.3.260.0120.01016.63
7.3.240.0090.00816.36
7.3.230.0060.01116.51
7.3.210.0100.00616.36
7.3.200.0070.01016.54
7.3.190.0130.00416.24
7.3.180.0090.00616.30
7.3.170.0090.00616.26
7.3.160.0110.00516.36
7.3.150.0070.01016.45
7.3.140.0060.00916.63
7.3.130.0080.00716.32
7.3.120.0040.01116.40
7.3.110.0080.00816.30
7.3.100.0090.00616.21
7.3.90.0130.00316.49
7.3.80.0030.01316.42
7.3.70.0180.00016.31
7.3.60.0090.00916.40
7.3.50.0090.00616.23
7.3.40.0060.00916.24
7.3.30.0030.01316.24
7.3.20.0070.01016.13
7.3.10.0080.01116.21
7.3.00.0100.00716.16
7.2.330.0060.01216.36
7.2.320.0090.00616.68
7.2.310.0090.00916.61
7.2.300.0060.01016.62
7.2.290.0060.00916.74
7.2.280.0060.01016.67
7.2.270.0080.00816.54
7.2.260.0100.00616.41
7.2.250.0080.00816.35
7.2.240.0150.00316.24
7.2.230.0080.00816.47
7.2.220.0090.00916.61
7.2.210.0190.00516.53
7.2.200.0170.00316.54
7.2.190.0080.00816.41
7.2.180.0000.01716.62
7.2.170.0140.00316.60
7.2.160.0130.00316.43
7.2.150.0110.00716.41
7.2.140.0160.00616.38
7.2.130.0110.00616.57
7.2.120.0030.01216.46
7.2.110.0030.01416.55
7.2.100.0070.01016.68
7.2.90.0150.00316.65
7.2.80.0140.00516.41
7.2.70.0100.00716.48
7.2.60.0080.01116.45
7.2.50.0080.01016.62
7.2.40.0100.00716.45
7.2.30.0110.01416.48
7.2.20.0090.00916.61
7.2.10.0100.00716.59
7.2.00.0150.00316.54

preferences:
29.51 ms | 403 KiB | 5 Q