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 = ['ljkkjljlkj', 'doIt']; var_dump(is_instance_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.0050.00422.43
8.4.110.0090.01318.70
8.4.100.0120.00818.06
8.4.90.0140.00417.89
8.4.80.0140.00418.14
8.4.70.0120.00818.30
8.4.60.0110.00618.81
8.4.50.0120.00920.68
8.4.40.0060.01317.84
8.4.30.0100.01020.55
8.4.20.0070.01324.23
8.4.10.0130.00622.42
8.3.250.0120.00918.70
8.3.240.0110.00916.71
8.3.230.0130.00716.73
8.3.220.0100.00816.55
8.3.210.0080.00716.73
8.3.200.0030.00617.02
8.3.190.0150.00316.89
8.3.180.0110.00918.91
8.3.170.0060.01317.26
8.3.160.0070.00719.02
8.3.150.0110.00416.96
8.3.140.0070.01117.19
8.3.130.0070.00318.48
8.3.120.0080.00020.57
8.3.110.0080.00320.94
8.3.100.0090.00024.06
8.3.90.0050.00326.77
8.3.80.0080.00819.36
8.3.70.0110.01116.63
8.3.60.0110.01116.63
8.3.50.0120.00823.60
8.3.40.0120.00319.34
8.3.30.0090.01218.89
8.3.20.0080.00024.18
8.3.10.0060.00324.66
8.3.00.0000.00826.16
8.2.290.0120.00618.96
8.2.280.0100.00618.55
8.2.270.0040.01516.77
8.2.260.0030.00616.75
8.2.250.0050.00318.64
8.2.240.0080.00417.12
8.2.230.0100.01022.58
8.2.220.0130.01037.54
8.2.210.0080.00026.77
8.2.200.0040.00418.88
8.2.190.0140.00716.86
8.2.180.0100.00325.92
8.2.170.0130.00718.95
8.2.160.0070.00722.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.35
8.2.110.0030.00820.31
8.2.100.0080.00317.88
8.2.90.0000.00817.88
8.2.80.0000.00819.04
8.2.70.0030.00517.75
8.2.60.0040.00417.75
8.2.50.0000.00818.05
8.2.40.0000.00818.16
8.2.30.0050.00218.08
8.2.20.0000.00718.05
8.2.10.0000.00719.38
8.2.00.0040.00419.32
8.1.330.0100.00417.70
8.1.320.0080.00817.83
8.1.310.0120.00316.38
8.1.300.0120.00620.21
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0090.00022.18
8.1.230.0060.00620.36
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0080.00017.38
8.1.180.0000.00918.10
8.1.170.0030.00517.62
8.1.160.0040.00418.83
8.1.150.0030.00818.83
8.1.140.0080.00018.87
8.1.130.0000.00820.12
8.1.120.0070.00017.51
8.1.110.0000.00817.43
8.1.100.0000.00717.32
8.1.90.0020.00517.37
8.1.80.0000.00817.52
8.1.70.0030.00317.45
8.1.60.0000.00817.57
8.1.50.0040.00417.49
8.1.40.0030.00517.44
8.1.30.0030.00617.61
8.1.20.0040.00417.70
8.1.10.0000.00817.61
8.1.00.0030.00617.56
8.0.300.0070.00019.77
8.0.290.0000.00816.88
8.0.280.0070.00018.46
8.0.270.0000.00718.03
8.0.260.0000.00618.53
8.0.250.0080.00016.95
8.0.240.0020.00517.06
8.0.230.0030.00317.10
8.0.220.0030.00517.02
8.0.210.0000.00716.97
8.0.200.0030.00317.02
8.0.190.0040.00417.06
8.0.180.0020.00517.02
8.0.170.0040.00417.01
8.0.160.0000.00717.07
8.0.150.0000.00716.94
8.0.140.0040.00416.98
8.0.130.0000.00613.36
8.0.120.0040.00416.96
8.0.110.0030.00416.91
8.0.100.0030.00517.02
8.0.90.0030.00616.83
8.0.80.0090.00716.96
8.0.70.0080.00016.95
8.0.60.0070.00016.86
8.0.50.0080.00016.97
8.0.30.0130.01017.14
8.0.20.0130.00517.18
8.0.10.0070.00017.21
8.0.00.0090.01016.78
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0050.00216.66
7.4.290.0030.00316.61
7.4.280.0030.00516.40
7.4.270.0000.00916.59
7.4.260.0000.00513.18
7.4.250.0030.00316.58
7.4.240.0020.00616.53
7.4.230.0000.00716.36
7.4.220.0030.00316.43
7.4.210.0050.01116.60
7.4.200.0000.00716.59
7.4.130.0200.00216.52
7.4.120.0160.00716.64
7.4.110.0100.00716.65
7.4.100.0000.01716.56
7.4.90.0130.00316.57
7.4.80.0110.00619.39
7.4.70.0070.01016.55
7.4.60.0080.00916.45
7.4.50.0140.00316.21
7.4.40.0080.01116.03
7.4.30.0100.00716.01
7.4.20.0060.01116.11
7.4.10.0050.01116.26
7.4.00.0070.01016.51
7.3.330.0070.00016.47
7.3.320.0030.00313.34
7.3.310.0030.00316.24
7.3.300.0040.00416.40
7.3.290.0070.01016.32
7.3.280.0090.01016.28
7.3.260.0140.00316.25
7.3.240.0110.00616.56
7.3.230.0070.01016.29
7.3.210.0060.01016.29
7.3.200.0120.00416.32
7.3.190.0070.00816.29
7.3.180.0080.00816.47
7.3.170.0030.01216.09
7.3.160.0090.00616.17
7.3.150.0060.01116.30
7.3.140.0120.00616.41
7.3.130.0100.00616.35
7.3.120.0090.00616.32
7.3.110.0260.01616.39
7.3.100.0080.00916.31
7.3.90.0000.01616.39
7.3.80.0040.01116.21
7.3.70.0090.00616.15
7.3.60.0060.00916.26
7.3.50.0100.00616.40
7.3.40.0120.00316.25
7.3.30.0090.00616.19
7.3.20.0060.01216.16
7.3.10.0060.01016.19
7.3.00.0070.01016.32
7.2.330.0120.01216.64
7.2.320.0100.00616.35
7.2.310.0140.00316.62
7.2.300.0080.00816.41
7.2.290.0130.00516.60
7.2.280.0120.00616.71
7.2.270.0180.00016.54
7.2.260.0090.00916.53
7.2.250.0090.00916.73
7.2.240.0180.00916.63
7.2.230.0030.01216.67
7.2.220.0160.00016.54
7.2.210.0070.01016.54
7.2.200.0100.00516.36
7.2.190.0060.01016.34
7.2.180.0000.01716.41
7.2.170.0100.01016.57
7.2.160.0000.01816.34
7.2.150.0040.01516.63
7.2.140.0250.00916.50
7.2.130.0060.01216.59
7.2.120.0110.00716.51
7.2.110.0170.00016.42
7.2.100.0060.00916.58
7.2.90.0070.01016.42
7.2.80.0070.01116.35
7.2.70.0170.00016.38
7.2.60.0070.01016.44
7.2.50.0070.01316.57
7.2.40.0150.00416.62
7.2.30.0050.01416.71
7.2.20.0130.00716.41
7.2.10.0170.00316.63
7.2.00.0160.00316.46

preferences:
29.2 ms | 403 KiB | 5 Q