3v4l.org

run code in 300+ PHP versions simultaneously
<?php class faz {} class baz extends faz {} interface foo { public function do(faz $param); } class boo implements foo { public function doit(baz $param) { echo false; } } $test = new boo(); $test->doit(new baz());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ABBGg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'boo'
   17     1        NEW                                              $1      'boo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   18     4        INIT_METHOD_CALL                                         !0, 'doit'
          5        NEW                                              $4      'baz'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class faz: [no user functions]
Class baz: [no user functions]
Class foo:
Function do:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ABBGg
function name:  do
number of ops:  2
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function do

End of class foo.

Class boo:
Function doit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ABBGg
function name:  doit
number of ops:  3
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        ECHO                                                     <false>
   14     2      > RETURN                                                   null

End of function doit

End of class boo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.35 ms | 1393 KiB | 13 Q