3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function doFooBar($foo, $bar=null); } interface Bar extends Foo { public function doFooBar($foo, $bar=null); } class FooBar implements Bar { public function doFooBar($foo, $bar=null) { } } $d = new FooBar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UgUtU
function name:  (null)
number of ops:  6
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'bar'
   14     1        DECLARE_CLASS                                            'foobar'
   22     2        NEW                                              $1      'FooBar'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
          5      > RETURN                                                   1

Class Foo:
Function dofoobar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UgUtU
function name:  doFooBar
number of ops:  3
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2      > RETURN                                                   null

End of function dofoobar

End of class Foo.

Class Bar:
Function dofoobar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UgUtU
function name:  doFooBar
number of ops:  3
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2      > RETURN                                                   null

End of function dofoobar

End of class Bar.

Class FooBar:
Function dofoobar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UgUtU
function name:  doFooBar
number of ops:  3
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
   18     2      > RETURN                                                   null

End of function dofoobar

End of class FooBar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.38 ms | 1385 KiB | 13 Q