3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($arr) { $arr['x'] = 5; print_r(func_get_args()); } foo([]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbiOF
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'foo'
          1        SEND_VAL                                                     <array>
          2        DO_FCALL                                          0          
          3      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbiOF
function name:  foo
number of ops:  8
compiled vars:  !0 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        ASSIGN_DIM                                                   !0, 'x'
          2        OP_DATA                                                      5
    5     3        INIT_FCALL                                                   'print_r'
          4        FUNC_GET_ARGS                                        ~2      
          5        SEND_VAL                                                     ~2
          6        DO_ICALL                                                     
    6     7      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.86 ms | 1459 KiB | 15 Q