3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface {} class TestClass implements TestInterface {} $time = time(); for ($i = 0; $i < 1000000; $i++) { is_a('TestClass', 'TestInterface', true); } var_dump(sprintf('is_a time: %s', time() - $time));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/34KdZ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $time, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'testclass'
    6     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    7     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->12
    8     6    >   INIT_FCALL                                               'is_a'
          7        SEND_VAL                                                 'TestClass'
          8        SEND_VAL                                                 'TestInterface'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                                 
    7    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 1000000
         13      > JMPNZ                                                    ~7, ->6
   10    14    >   INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 'is_a+time%3A+%25s'
         17        INIT_FCALL                                               'time'
         18        DO_ICALL                                         $8      
         19        SUB                                              ~9      $8, !0
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                         $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Class TestInterface: [no user functions]
Class TestClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.38 ms | 1395 KiB | 21 Q