3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrs = array(); $arrs[] = array('something1', something2); $arrs[] = array('something3', something4); $arrs[] = array(); $arrs[] = array('something1', something2); $list = array(); foreach($arrs as $arr) { if(is_array($arr)) { $list = array_merge($list, $arr); } } print_r($list);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 29
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 29
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 28
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/OCdWL
function name:  (null)
number of ops:  34
compiled vars:  !0 = $arrs, !1 = $list, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_ARRAY                                       ~5      'something1'
          2        FETCH_CONSTANT                                   ~6      'something2'
          3        ADD_ARRAY_ELEMENT                                ~5      ~6
          4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  ~5
    5     6        INIT_ARRAY                                       ~8      'something3'
          7        FETCH_CONSTANT                                   ~9      'something4'
          8        ADD_ARRAY_ELEMENT                                ~8      ~9
          9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  ~8
    6    11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  <array>
    7    13        INIT_ARRAY                                       ~12     'something1'
         14        FETCH_CONSTANT                                   ~13     'something2'
         15        ADD_ARRAY_ELEMENT                                ~12     ~13
         16        ASSIGN_DIM                                               !0
         17        OP_DATA                                                  ~12
    9    18        ASSIGN                                                   !1, <array>
   11    19      > FE_RESET_R                                       $15     !0, ->29
         20    > > FE_FETCH_R                                               $15, !2, ->29
   12    21    >   TYPE_CHECK                                  128          !2
         22      > JMPZ                                                     ~16, ->28
   13    23    >   INIT_FCALL                                               'array_merge'
         24        SEND_VAR                                                 !1
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !1, $17
   11    28    > > JMP                                                      ->20
         29    >   FE_FREE                                                  $15
   17    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.2 ms | 1396 KiB | 17 Q