3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('foo', 'bar'); $b = array('baz'); $c = array($a, $b); $d = array(); foreach ($c as $v) { $d = array_merge($d, $v); } var_dump($d);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/lQaMh
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_ARRAY                                       ~7      !0
          3        ADD_ARRAY_ELEMENT                                ~7      !1
          4        ASSIGN                                                   !2, ~7
    5     5        ASSIGN                                                   !3, <array>
    7     6      > FE_RESET_R                                       $10     !2, ->14
          7    > > FE_FETCH_R                                               $10, !4, ->14
    8     8    >   INIT_FCALL                                               'array_merge'
          9        SEND_VAR                                                 !3
         10        SEND_VAR                                                 !4
         11        DO_ICALL                                         $11     
         12        ASSIGN                                                   !3, $11
    7    13      > JMP                                                      ->7
         14    >   FE_FREE                                                  $10
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.1 ms | 1399 KiB | 17 Q