3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public function doIt() { echo 'done'; } } function is_instance_callable(array $definition) { return isset($definition[0], $definition[1]) && 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.00820.58
8.4.110.0100.01018.71
8.4.100.0040.00517.73
8.4.90.0140.00617.74
8.4.80.0140.00517.86
8.4.70.0070.01218.80
8.4.60.0110.00918.82
8.4.50.0060.00318.94
8.4.40.0150.00617.42
8.4.30.0100.00718.79
8.4.20.0160.00322.29
8.4.10.0000.01522.57
8.3.250.0100.00818.89
8.3.240.0080.01116.44
8.3.230.0130.00816.74
8.3.220.0140.00417.33
8.3.210.0080.00718.65
8.3.200.0040.00516.55
8.3.190.0080.01019.21
8.3.180.0100.00918.85
8.3.170.0140.00318.87
8.3.160.0070.01117.07
8.3.150.0100.01016.50
8.3.140.0100.00717.05
8.3.130.0050.00318.27
8.3.120.0030.00618.82
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0030.00526.77
8.3.80.0110.00019.36
8.3.70.0150.00416.75
8.3.60.0100.01016.38
8.3.50.0130.00723.65
8.3.40.0080.00619.38
8.3.30.0110.01118.79
8.3.20.0070.01024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.290.0130.00720.48
8.2.280.0040.00518.27
8.2.270.0110.00716.63
8.2.260.0040.00416.84
8.2.250.0040.00418.29
8.2.240.0030.00618.57
8.2.230.0060.00322.58
8.2.220.0030.00737.54
8.2.210.0050.00326.77
8.2.200.0030.00618.88
8.2.190.0070.00718.38
8.2.180.0140.00725.92
8.2.170.0120.00322.96
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.05
8.2.110.0070.00319.18
8.2.100.0040.00717.91
8.2.90.0040.00417.75
8.2.80.0040.00418.73
8.2.70.0040.00417.50
8.2.60.0030.00517.50
8.2.50.0000.00918.05
8.2.40.0060.00318.34
8.2.30.0040.00418.21
8.2.20.0050.00318.13
8.2.10.0000.00819.23
8.2.00.0040.00419.17
8.1.330.0160.00416.85
8.1.320.0140.00716.10
8.1.310.0090.00616.00
8.1.300.0040.00418.22
8.1.290.0060.00330.84
8.1.280.0180.00025.92
8.1.270.0080.00023.99
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00619.26
8.1.230.0040.00820.92
8.1.220.0030.00618.70
8.1.210.0060.00318.77
8.1.200.0000.00817.41
8.1.190.0030.00617.25
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0020.00518.79
8.1.150.0080.00018.88
8.1.140.0020.00518.80
8.1.130.0080.00020.05
8.1.120.0000.00717.53
8.1.110.0000.00817.45
8.1.100.0000.00717.39
8.1.90.0000.00817.46
8.1.80.0000.00717.48
8.1.70.0030.00517.42
8.1.60.0050.00517.63
8.1.50.0000.00917.49
8.1.40.0030.00617.50
8.1.30.0000.00817.63
8.1.20.0040.00417.57
8.1.10.0000.00817.52
8.1.00.0080.00017.38
8.0.300.0040.00418.77
8.0.290.0070.00416.75
8.0.280.0030.00318.49
8.0.270.0080.00017.93
8.0.260.0000.00718.45
8.0.250.0030.00316.99
8.0.240.0000.00617.02
8.0.230.0030.00316.96
8.0.220.0030.00516.81
8.0.210.0030.00316.79
8.0.200.0000.00816.96
8.0.190.0080.00017.00
8.0.180.0040.00416.83
8.0.170.0040.00416.92
8.0.160.0070.00016.88
8.0.150.0000.00716.83
8.0.140.0030.00316.81
8.0.130.0050.00013.41
8.0.120.0070.00016.90
8.0.110.0040.00416.71
8.0.100.0000.00716.75
8.0.90.0080.00016.78
8.0.80.0080.01316.91
8.0.70.0000.00716.94
8.0.60.0000.00816.93
8.0.50.0030.00616.78
8.0.30.0080.01216.92
8.0.20.0110.01016.97
8.0.10.0030.00516.93
8.0.00.0060.01816.53
7.4.330.0020.00215.55
7.4.320.0000.00716.57
7.4.300.0030.00316.44
7.4.290.0080.00016.61
7.4.280.0040.00416.42
7.4.270.0000.00816.59
7.4.260.0000.00513.25
7.4.250.0070.00016.58
7.4.240.0030.00316.66
7.4.230.0070.00016.69
7.4.220.0000.00716.52
7.4.210.0110.00716.53
7.4.200.0000.00716.54
7.4.130.0130.00916.60
7.4.120.0100.01016.31
7.4.110.0140.00316.56
7.4.100.0100.00716.57
7.4.90.0080.00816.50
7.4.80.0150.00919.39
7.4.70.0070.01016.47
7.4.60.0100.00716.53
7.4.50.0170.00615.70
7.4.40.0120.01716.56
7.4.30.0170.01316.64
7.4.20.0260.00616.32
7.4.10.0180.01516.53
7.4.00.0080.01216.51
7.3.330.0040.00416.26
7.3.320.0060.00013.23
7.3.310.0040.00416.40
7.3.300.0030.00316.25
7.3.290.0060.00816.33
7.3.280.0100.01016.26
7.3.260.0120.01116.38
7.3.240.0090.00916.45
7.3.230.0100.00716.35
7.3.210.0080.00816.26
7.3.200.0110.00516.54
7.3.190.0090.00916.63
7.3.180.0170.00916.39
7.3.170.0150.01116.26
7.3.160.0290.00316.41
7.3.150.0250.00616.70
7.3.140.0240.01216.32
7.3.130.0310.00416.55
7.3.120.0190.00716.29
7.3.110.0180.00616.28
7.3.100.0170.00716.45
7.3.90.0200.00616.43
7.3.80.0190.00916.37
7.3.70.0160.00816.28
7.3.60.0090.01216.25
7.3.50.0180.00616.31
7.3.40.0140.00515.92
7.3.30.0140.00516.11
7.3.20.0090.01416.06
7.3.10.0140.01016.11
7.3.00.0290.00616.16
7.2.330.0060.01216.72
7.2.320.0130.00316.81
7.2.310.0040.01716.24
7.2.300.0250.00516.38
7.2.290.0220.00916.73
7.2.280.0240.02416.67
7.2.270.0190.01116.36
7.2.260.0200.01416.81
7.2.250.0110.01116.34
7.2.240.0100.01416.52
7.2.230.0140.01116.25
7.2.220.0150.01016.84
7.2.210.0160.00716.19
7.2.200.0260.00016.65
7.2.190.0120.01216.37
7.2.180.0100.01216.48
7.2.170.0070.01516.41
7.2.160.0180.00716.32
7.2.150.0080.01816.43
7.2.140.0160.01016.41
7.2.130.0130.01416.66
7.2.120.0210.00816.58
7.2.110.0300.00416.50
7.2.100.0200.01016.50
7.2.90.0150.01516.39
7.2.80.0160.01016.71
7.2.70.0190.00616.45
7.2.60.0140.01416.39
7.2.50.0160.01316.46
7.2.40.0170.01316.64
7.2.30.0180.00916.54
7.2.20.0200.00616.41
7.2.10.0190.01016.33
7.2.00.0060.01216.53

preferences:
33.29 ms | 403 KiB | 5 Q