3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface {} interface FooInterface { public function bar(TestInterface $variable); } class Foo implements FooInterface { public function bar($variable) {} } $foo = new Foo; $foo->bar('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BZ6bB
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'foo'
   20     1        NEW                                              $1      'Foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   21     4        INIT_METHOD_CALL                                         !0, 'bar'
          5        SEND_VAL_EX                                              'test'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function bar

End of class FooInterface.

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.51 ms | 1393 KiB | 13 Q