3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array ( 'text' => 'paris', 'nodes' => array( array( 'text' => 'paris', 'nodes' => array( 'text' => 'so.png', ), ), ), ), array( 'text' => 'charl', 'nodes' => array( array( 'text' => 'charl', 'nodes' => array( 'text' => 'so.png', ), ), ), ) ); for($i = 0; $i <= count($data) -1; $i++) { $data[$i]['nodes'] = array_map(function($node) { return array_values($node); }, $data[$i]['nodes']); } var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/p1t1C
function name:  (null)
number of ops:  22
compiled vars:  !0 = $data, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   28     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->14
   29     3    >   INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
   31     5        SEND_VAL                                                 ~6
          6        FETCH_DIM_R                                      ~7      !0, !1
          7        FETCH_DIM_R                                      ~8      ~7, 'nodes'
          8        SEND_VAL                                                 ~8
   29     9        DO_ICALL                                         $9      
         10        FETCH_DIM_W                                      $4      !0, !1
         11        ASSIGN_DIM                                               $4, 'nodes'
   31    12        OP_DATA                                                  $9
   28    13        PRE_INC                                                  !1
         14    >   COUNT                                            ~11     !0
         15        SUB                                              ~12     ~11, 1
         16        IS_SMALLER_OR_EQUAL                                      !1, ~12
         17      > JMPNZ                                                    ~13, ->3
   34    18    >   INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p1t1C
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
   30     1        INIT_FCALL                                               'array_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
   31     5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
243.48 ms | 956 KiB | 16 Q