- Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
- Warning: A non-numeric value encountered in /in/as5dD on line 10 int(-1430841738)
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20
- int(-1430841738)
<?php
interface TestInterface {}
class TestClass implements TestInterface {}
$time = time();
for ($i = 0; $i < 1000000; $i++) {
is_a('TestClass', 'TestInterface', true);
}
var_dump('is_a time: ' . time() - $time);