3v4l.org

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

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

End of function addtoarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1401 KiB | 16 Q