3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar($baz); } class A implements Foo { public function bar(array $baz) { } } $b = array(); $a = new A(); $a->bar($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PDUht
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'a'
   10     1        ASSIGN                                                   !0, <array>
   11     2        NEW                                              $3      'A'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   12     5        INIT_METHOD_CALL                                         !1, 'bar'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function bar

End of class Foo.

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

End of function bar

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.32 ms | 1394 KiB | 13 Q