3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; function addToArray($arg1, $arg2){ $arr = []; $arr[]= $arg1; $arr[] = $arg2; print_r($arr); } addToArray('test', 'Julian');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hF6Li
function name:  (null)
number of ops:  6
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'addtoarray'
          2        SEND_VAL                                                 'test'
          3        SEND_VAL                                                 'Julian'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function addtoarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hF6Li
function name:  addToArray
number of ops:  11
compiled vars:  !0 = $arg1, !1 = $arg2, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN_DIM                                               !2
          4        OP_DATA                                                  !0
    8     5        ASSIGN_DIM                                               !2
          6        OP_DATA                                                  !1
   10     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   11    10      > RETURN                                                   null

End of function addtoarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.57 ms | 1397 KiB | 16 Q