3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ha = array(); cats($ha['dne']); function cats($x = null) { $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/0n2N8
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          
    8     6      > RETURN                                                   1

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

End of function cats

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.03 ms | 1395 KiB | 17 Q