3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface HumanInterface { } class Human implements HumanInterface { } class Dog { } $human = new Human; echo is_a($human, 'HumanInterface') ? 'true' : 'false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uDMCh
function name:  (null)
number of ops:  14
compiled vars:  !0 = $human
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'human'
   14     1        NEW                                              $1      'Human'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_FCALL                                               'is_a'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'HumanInterface'
          7        DO_ICALL                                         $4      
          8      > JMPZ                                                     $4, ->11
          9    >   QM_ASSIGN                                        ~5      'true'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~5      'false'
         12    >   ECHO                                                     ~5
         13      > RETURN                                                   1

Class HumanInterface: [no user functions]
Class Human: [no user functions]
Class Dog: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.69 ms | 1394 KiB | 15 Q