3v4l.org

run code in 300+ PHP versions simultaneously
<?php $samples=array( array('a1','a2'), array('b1','b2'), array('c1','c2') ); for($i=0; $i<count($samples); $i++){ $names[] = array_column($samples, i); } print_r($names);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/kK6Fh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $samples, !1 = $i, !2 = $names
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
    8     3    >   INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        FETCH_CONSTANT                                   ~6      'i'
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN_DIM                                               !2
          9        OP_DATA                                                  $7
    7    10        PRE_INC                                                  !1
         11    >   COUNT                                            ~9      !0
         12        IS_SMALLER                                               !1, ~9
         13      > JMPNZ                                                    ~10, ->3
   10    14    >   INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.95 ms | 1395 KiB | 17 Q