3v4l.org

run code in 300+ PHP versions simultaneously
<?php function returnArray() { return array(591=>1,12354=>2,12=>45); } $foo = array(434=>99,2354=>98); $foo = array_merge($foo,returnArray()); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TSrdW
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'array_merge'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'returnarray'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function returnarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TSrdW
function name:  returnArray
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   <array>
    4     1*     > RETURN                                                   null

End of function returnarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.19 ms | 1396 KiB | 18 Q