3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface x { function z($a); } class y implements x { function z(array $a){var_dump($a);} } $y = new y; $y->z([]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bvrLa
function name:  (null)
number of ops:  8
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'y'
   13     1        NEW                                              $1      'y'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   14     4        INIT_METHOD_CALL                                         !0, 'z'
          5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function z

End of class x.

Class y:
Function z:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bvrLa
function name:  z
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   null

End of function z

End of class y.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.98 ms | 1395 KiB | 15 Q