3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collection = array( 0 => array ( 0 => '1002', //Push to new array1 1 => '1003' //Push to new array2 ), 1 => array( 0 => '7', //Push to new array1 1 => '7' //Push to new array2 ), 2 => array( 0 => 'This is my first comment in the box', //Push to new array1 1 => '1This is my first comment in the box' //Push to new array2 ), 3 => array( 0 => '2014-01-01 01:16:05', //Push to new array1 1 => '2014-01-01 01:16:05' //Push to new array2 ) ); $collection = array( array_column($collection, 0), array_column($collection, 1) ); var_dump($collection);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VBlrE
function name:  (null)
number of ops:  16
compiled vars:  !0 = $collection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   23     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $2      
          5        INIT_ARRAY                                       ~3      $2
   24     6        INIT_FCALL                                               'array_column'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $4      
         10        ADD_ARRAY_ELEMENT                                ~3      $4
   22    11        ASSIGN                                                   !0, ~3
   27    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1398 KiB | 17 Q