3v4l.org

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

Class FooInterface:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/97kbU
function name:  bar
number of ops:  2
compiled vars:  !0 = $FooBar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     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/97kbU
function name:  bar
number of ops:  3
compiled vars:  !0 = $foo_bar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
   12     1        ECHO                                                         !0
   13     2      > RETURN                                                       null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
234.25 ms | 2195 KiB | 8 Q