3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrs = array(); $arrs[] = array('something1', 2); $arrs[] = array('something3', 'something4'); $arrs[] = array(); $arrs[] = array('something1', 3.12); $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 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/0C742
function name:  (null)
number of ops:  25
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        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  <array>
    5     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  <array>
    6     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  <array>
    7     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  <array>
    9     9        ASSIGN                                                   !1, <array>
   11    10      > FE_RESET_R                                       $9      !0, ->20
         11    > > FE_FETCH_R                                               $9, !2, ->20
   12    12    >   TYPE_CHECK                                  128          !2
         13      > JMPZ                                                     ~10, ->19
   13    14    >   INIT_FCALL                                               'array_merge'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !1, $11
   11    19    > > JMP                                                      ->11
         20    >   FE_FREE                                                  $9
   17    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.42 ms | 1395 KiB | 17 Q