3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ha = array(); cats($ha['dne']); function cats($x = array('asdf')) { print_r($x); $y = array_merge(array('one'), $x); print_r($y); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8YDJC
function name:  (null)
number of ops:  7
compiled vars:  !0 = $ha
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL_BY_NAME                                       'cats'
          2        CHECK_FUNC_ARG                                           
          3        FETCH_DIM_FUNC_ARG                               $2      !0, 'dne'
          4        SEND_FUNC_ARG                                            $2
          5        DO_FCALL                                      0          
    9     6      > RETURN                                                   1

Function cats:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8YDJC
function name:  cats
number of ops:  13
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      <array>
    6     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'array_merge'
          5        SEND_VAL                                                 <array>
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !1, $3
    8     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    9    12      > RETURN                                                   null

End of function cats

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.52 ms | 1395 KiB | 17 Q