3v4l.org

run code in 300+ PHP versions simultaneously
<?php $single_Array = array(); $array = array( array('t1' => 'test1'), array('t2' => 'test2'), array('t3' => 'test3'), array('t4' => 'test4'), array('t5' => 'test5')); var_dump($array); $size = sizeof($array); for($count = 0; $count<sizeof($array);$count++) { $second_cell = key($array[$count]); $single_array[$count] = $array[$count][$second_cell]; } echo "-----------\n"; var_dump($single_array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 9
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 9
Branch analysis from position: 22
Branch analysis from position: 9
filename:       /in/3i251
function name:  (null)
number of ops:  27
compiled vars:  !0 = $single_Array, !1 = $array, !2 = $size, !3 = $count, !4 = $second_cell, !5 = $single_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
   11     5        COUNT                                            ~9      !1
          6        ASSIGN                                                   !2, ~9
   12     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->19
   14     9    >   INIT_FCALL                                               'key'
         10        FETCH_DIM_R                                      ~12     !1, !3
         11        SEND_VAL                                                 ~12
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !4, $13
   15    14        FETCH_DIM_R                                      ~16     !1, !3
         15        FETCH_DIM_R                                      ~17     ~16, !4
         16        ASSIGN_DIM                                               !5, !3
         17        OP_DATA                                                  ~17
   12    18        PRE_INC                                                  !3
         19    >   COUNT                                            ~19     !1
         20        IS_SMALLER                                               !3, ~19
         21      > JMPNZ                                                    ~20, ->9
   19    22    >   ECHO                                                     '-----------%0A'
   20    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !5
         25        DO_ICALL                                                 
   23    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.58 ms | 1400 KiB | 17 Q