3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function bar( ArrayObject $ray ) { return __METHOD__ ;} } trait bazing { public function bar( array $ray ) { return __METHOD__ ;} } class baz extends foo { use bazing; } (new baz)->bar( new Arrayobject([]) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Sf9N
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'baz', 'foo'
    5     1        NEW                                              $0      'baz'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'bar'
          4        NEW                                              $2      'Arrayobject'
          5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $2
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

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

End of function bar

End of class foo.

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

End of function bar

End of class bazing.

Class baz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.62 ms | 1385 KiB | 13 Q