3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = '[["A1","B1","C1","D1","E1"],["A2","B2","C2","D2","E2"],["A3","B3","C3","D3","E3"],["A4","B4","C4","D4","E4"],["A5","B5","C5","D5","E5"]]'; $data = json_decode($list); $maxcols = count($data); $maxrows = count($data[0]); for ($row=0; $row<$maxrows; $row++) { for ($col=0; $col<$maxcols; $col++) { print $data[$col][$row]." "; } print "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 12
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 12
Branch analysis from position: 25
Branch analysis from position: 12
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
Branch analysis from position: 14
filename:       /in/ehApd
function name:  (null)
number of ops:  26
compiled vars:  !0 = $list, !1 = $data, !2 = $maxcols, !3 = $maxrows, !4 = $row, !5 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%5B%22A1%22%2C%22B1%22%2C%22C1%22%2C%22D1%22%2C%22E1%22%5D%2C%5B%22A2%22%2C%22B2%22%2C%22C2%22%2C%22D2%22%2C%22E2%22%5D%2C%5B%22A3%22%2C%22B3%22%2C%22C3%22%2C%22D3%22%2C%22E3%22%5D%2C%5B%22A4%22%2C%22B4%22%2C%22C4%22%2C%22D4%22%2C%22E4%22%5D%2C%5B%22A5%22%2C%22B5%22%2C%22C5%22%2C%22D5%22%2C%22E5%22%5D%5D'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    6     5        COUNT                                            ~9      !1
          6        ASSIGN                                                   !2, ~9
    7     7        FETCH_DIM_R                                      ~11     !1, 0
          8        COUNT                                            ~12     ~11
          9        ASSIGN                                                   !3, ~12
    8    10        ASSIGN                                                   !4, 0
         11      > JMP                                                      ->23
    9    12    >   ASSIGN                                                   !5, 0
         13      > JMP                                                      ->19
   10    14    >   FETCH_DIM_R                                      ~16     !1, !5
         15        FETCH_DIM_R                                      ~17     ~16, !4
         16        CONCAT                                           ~18     ~17, '+'
         17        ECHO                                                     ~18
    9    18        PRE_INC                                                  !5
         19    >   IS_SMALLER                                               !5, !2
         20      > JMPNZ                                                    ~20, ->14
   12    21    >   ECHO                                                     '%0A'
    8    22        PRE_INC                                                  !4
         23    >   IS_SMALLER                                               !4, !3
         24      > JMPNZ                                                    ~22, ->12
   13    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.85 ms | 1388 KiB | 15 Q