3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array(3 => array ( "1" => 'sadsad@fsdf.fgh', "2" => "rtt@RERT.FDG", "3" => 'WQEWQ1@fgdg.h' ), 4 => array( "1" => 'sadsad@fsdf.fgh', "2" => "rtt@RERT.FDG", "3" => 'WQEWQ2@fgdg.h' ) ); $c = array(); foreach ($arr as $v){ $c = array_merge($c, array_values($v)) ; } echo "<pre>"; print_r($c);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/KlE0t
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $c, !2 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   16     1        ASSIGN                                                       !1, <array>
   17     2      > FE_RESET_R                                           $5      !0, ->13
          3    > > FE_FETCH_R                                                   $5, !2, ->13
   18     4    >   INIT_FCALL                                                   'array_merge'
          5        SEND_VAR                                                     !1
          6        INIT_FCALL                                                   'array_values'
          7        SEND_VAR                                                     !2
          8        DO_ICALL                                             $6      
          9        SEND_VAR                                                     $6
         10        DO_ICALL                                             $7      
         11        ASSIGN                                                       !1, $7
   17    12      > JMP                                                          ->3
         13    >   FE_FREE                                                      $5
   20    14        ECHO                                                         '%3Cpre%3E'
         15        INIT_FCALL                                                   'print_r'
         16        SEND_VAR                                                     !1
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.89 ms | 2781 KiB | 11 Q