3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'ActivityDiaryEntry' => [ "date" => "2011-03-03", "type"=> "Walking", "minutes" => 60 ] ], [ 'ActivityDiaryEntry' => [ "date" => "2011-03-03", "type"=> "Walking", "minutes" => 22 ] ], [ 'ActivityDiaryEntry' => [ "date" => "2011-03-03", "type"=> "Biking", "minutes" => 42 ] ] ]; $subarrays = array_column($array, "ActivityDiaryEntry"); echo "<table>\n"; foreach ($subarrays[0] as $column => $notUsed) { echo "\t<tr><td>" , implode("</td><td>", array_column($subarrays, $column)) , "</td></tr>\n"; } echo '</table>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 23
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/qIONP
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array, !1 = $subarrays, !2 = $notUsed, !3 = $column
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   27     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'ActivityDiaryEntry'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   29     6        ECHO                                                     '%3Ctable%3E%0A'
   30     7        FETCH_DIM_R                                      ~7      !1, 0
          8      > FE_RESET_R                                       $8      ~7, ->23
          9    > > FE_FETCH_R                                       ~9      $8, !2, ->23
         10    >   ASSIGN                                                   !3, ~9
   31    11        ECHO                                                     '%09%3Ctr%3E%3Ctd%3E'
         12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '%3C%2Ftd%3E%3Ctd%3E'
         14        INIT_FCALL                                               'array_column'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $11     
         18        SEND_VAR                                                 $11
         19        DO_ICALL                                         $12     
         20        ECHO                                                     $12
         21        ECHO                                                     '%3C%2Ftd%3E%3C%2Ftr%3E%0A'
   30    22      > JMP                                                      ->9
         23    >   FE_FREE                                                  $8
   33    24        ECHO                                                     '%3C%2Ftable%3E'
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.96 ms | 999 KiB | 15 Q