3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IC {} class C implements IC { public function go() { return true; } } class CC implements IC { public function stop() { return false; } } $c = new CC; //$c = null; if ( $c instanceof IC === false || $c->go() === false ) { echo 'Rurro'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 12
filename:       /in/fn2PE
function name:  (null)
number of ops:  15
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'c'
   13     1        DECLARE_CLASS                                            'cc'
   21     2        NEW                                              $1      'CC'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   26     5        INSTANCEOF                                       ~4      !0, 'IC'
          6        TYPE_CHECK                                    4  ~5      ~4
          7      > JMPNZ_EX                                         ~5      ~5, ->12
   27     8    >   INIT_METHOD_CALL                                         !0, 'go'
          9        DO_FCALL                                      0  $6      
         10        TYPE_CHECK                                    4  ~7      $6
         11        BOOL                                             ~5      ~7
         12    > > JMPZ                                                     ~5, ->14
   29    13    >   ECHO                                                     'Rurro'
   30    14    > > RETURN                                                   1

Class IC: [no user functions]
Class C:
Function go:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fn2PE
function name:  go
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   <true>
   11     1*     > RETURN                                                   null

End of function go

End of class C.

Class CC:
Function stop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fn2PE
function name:  stop
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   <false>
   18     1*     > RETURN                                                   null

End of function stop

End of class CC.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.45 ms | 1394 KiB | 13 Q