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));

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.0040.00523.89
8.4.110.0120.00919.18
8.4.100.0100.00718.92
8.4.90.0060.00420.46
8.4.80.0130.00818.76
8.4.70.0120.00717.94
8.4.60.0100.01118.99
8.4.50.0130.00719.01
8.4.40.0120.00917.70
8.4.30.0150.00618.47
8.4.20.0130.00622.28
8.4.10.0130.00622.10
8.3.250.0110.00918.59
8.3.240.0110.00919.14
8.3.230.0130.00716.55
8.3.220.0110.00819.12
8.3.210.0130.00516.84
8.3.200.0050.00316.72
8.3.190.0110.00719.14
8.3.180.0110.00917.05
8.3.170.0110.00420.61
8.3.160.0080.00016.54
8.3.150.0100.00716.61
8.3.140.0000.00917.23
8.3.130.0030.00718.36
8.3.120.0090.00918.87
8.3.110.0000.00920.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0030.00619.36
8.3.70.0140.00718.18
8.3.60.0160.00316.48
8.3.50.0140.00523.56
8.3.40.0060.00919.29
8.3.30.0110.01118.67
8.3.20.0110.00724.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.290.0110.00720.79
8.2.280.0130.00618.23
8.2.270.0150.00316.53
8.2.260.0070.00716.82
8.2.250.0030.00618.36
8.2.240.0090.00019.02
8.2.230.0060.00322.58
8.2.220.0050.00537.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0150.00616.58
8.2.180.0070.01025.92
8.2.170.0040.01122.96
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00426.35
8.2.110.0040.00819.17
8.2.100.0040.00817.84
8.2.90.0040.00417.75
8.2.80.0040.00418.82
8.2.70.0000.00817.63
8.2.60.0080.00017.50
8.2.50.0000.00818.05
8.2.40.0080.00018.16
8.2.30.0040.00418.00
8.2.20.0000.00718.00
8.2.10.0030.00519.31
8.2.00.0060.00319.25
8.1.330.0100.00722.10
8.1.320.0110.00717.93
8.1.310.0070.01116.19
8.1.300.0030.00520.23
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0070.00023.99
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0100.00019.18
8.1.230.0060.00621.04
8.1.220.0080.00018.62
8.1.210.0030.00518.77
8.1.200.0080.00017.65
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0070.00018.89
8.1.150.0000.00818.89
8.1.140.0000.00818.88
8.1.130.0080.00020.25
8.1.120.0040.00417.49
8.1.110.0030.00617.46
8.1.100.0090.00017.43
8.1.90.0000.00817.45
8.1.80.0040.00417.52
8.1.70.0030.00317.42
8.1.60.0000.00817.61
8.1.50.0000.00817.43
8.1.40.0060.00317.40
8.1.30.0040.00417.67
8.1.20.0040.00417.64
8.1.10.0000.00717.51
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0060.00318.45
8.0.270.0070.00018.03
8.0.260.0040.00418.44
8.0.250.0000.00816.97
8.0.240.0070.00017.02
8.0.230.0030.00316.98
8.0.220.0000.00716.89
8.0.210.0030.00316.89
8.0.200.0000.00716.95
8.0.190.0000.00816.95
8.0.180.0030.00516.86
8.0.170.0000.01016.98
8.0.160.0040.00416.81
8.0.150.0050.00216.81
8.0.140.0000.00716.71
8.0.130.0000.00513.29
8.0.120.0030.00616.86
8.0.110.0020.00516.85
8.0.100.0000.00716.93
8.0.90.0080.00016.95
8.0.80.0080.00816.92
8.0.70.0000.00716.79
8.0.60.0050.00216.89
8.0.50.0000.00716.73
8.0.30.0030.01317.18
8.0.20.0150.00416.98
8.0.10.0030.00516.86
8.0.00.0170.01016.55
7.4.330.0000.00415.55
7.4.320.0030.00316.40
7.4.300.0040.00416.51
7.4.290.0050.00216.58
7.4.280.0050.00316.60
7.4.270.0060.00316.60
7.4.260.0000.00513.29
7.4.250.0000.00716.36
7.4.240.0000.00716.59
7.4.230.0030.00316.61
7.4.220.0040.00316.67
7.4.210.0070.00816.57
7.4.200.0070.00016.35
7.4.130.0110.01316.57
7.4.120.0140.00916.46
7.4.110.0080.00816.71
7.4.100.0030.01316.50
7.4.90.0100.00716.57
7.4.80.0090.00619.39
7.4.70.0050.01216.52
7.4.60.0080.00816.41
7.4.50.0070.01116.15
7.4.40.0110.00516.35
7.4.30.0100.01316.21
7.4.20.0100.00715.96
7.4.10.0120.00916.29
7.4.00.0060.01116.59
7.3.330.0030.00316.44
7.3.320.0000.00513.25
7.3.310.0000.00716.43
7.3.300.0070.00016.28
7.3.290.0020.01216.34
7.3.280.0150.00416.30
7.3.260.0140.00316.57
7.3.240.0100.00916.39
7.3.230.0110.00716.20
7.3.210.0080.00816.54
7.3.200.0040.01216.23
7.3.190.0080.00816.64
7.3.180.0100.00716.03
7.3.170.0080.01316.08
7.3.160.0100.01016.39
7.3.150.0130.01016.46
7.3.140.0080.00816.22
7.3.130.0160.00016.53
7.3.120.0090.00816.25
7.3.110.0060.01116.24
7.3.100.0000.01716.15
7.3.90.0080.00816.25
7.3.80.0080.00816.40
7.3.70.0060.00916.39
7.3.60.0090.00616.18
7.3.50.0040.01116.32
7.3.40.0050.01016.43
7.3.30.0050.01116.19
7.3.20.0160.00316.23
7.3.10.0150.00616.44
7.3.00.0100.01216.38
7.2.330.0060.01216.39
7.2.320.0000.01616.60
7.2.310.0110.01416.52
7.2.300.0040.01816.80
7.2.290.0120.00916.55
7.2.280.0040.01616.61
7.2.270.0130.00516.49
7.2.260.0030.01216.36
7.2.250.0140.00316.55
7.2.240.0140.00516.34
7.2.230.0080.00816.42
7.2.220.0030.01316.37
7.2.210.0060.00916.79
7.2.200.0000.01816.32
7.2.190.0150.00416.51
7.2.180.0100.00516.46
7.2.170.0070.01016.49
7.2.160.0110.00716.40
7.2.150.0100.01016.58
7.2.140.0070.01616.29
7.2.130.0090.00916.23
7.2.120.0240.01416.48
7.2.110.0080.00816.46
7.2.100.0030.01716.45
7.2.90.0100.00816.72
7.2.80.0100.00716.52
7.2.70.0070.01416.52
7.2.60.0170.00316.41
7.2.50.0060.01516.60
7.2.40.0030.01516.37
7.2.30.0160.00316.52
7.2.20.0090.00916.65
7.2.10.0040.01316.70
7.2.00.0000.01816.43

preferences:
52.55 ms | 403 KiB | 5 Q