3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Walker { function walk( $elements, $max_depth, ...$args ) { echo 1; } } class My_Walker extends Walker { function walk( $elements, $max_depth ) { echo 2; } } $a = new My_Walker(); $a->walk( 1, 2 );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2iS9g
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  15     0  E >   NEW                                              $1      :11
         1        DO_FCALL                                      0          
         2        QM_ASSIGN                                                !0
  16     3        INIT_METHOD_CALL                                         !0, 'walk'
         4        SEND_VAL_EX                                              1
         5        SEND_VAL_EX                                              2
         6        DO_FCALL                                      0          
         7      > RETURN                                                   1

Class Walker:
Function walk:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2iS9g
function name:  walk
number of ops:  5
compiled vars:  !0 = $elements, !1 = $max_depth, !2 = $args
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   RECV                                             !0      
         1        RECV                                             !1      
         2        RECV_VARIADIC                                    !2      
   5     3        ASSIGN_OBJ                                               1
   6     4      > RETURN                                                   null

End of function walk

End of class Walker.

Class My_Walker:
Function walk:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2iS9g
function name:  walk
number of ops:  4
compiled vars:  !0 = $elements, !1 = $max_depth
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  10     0  E >   RECV                                             !0      
         1        RECV                                             !1      
  11     2        ASSIGN_OBJ                                               2
  12     3      > RETURN                                                   null

End of function walk

End of class My_Walker.

Generated using Vulcan Logic Dumper, using php 7.4.0