3v4l.org

run code in 500+ PHP versions simultaneously
<?php $rows = array_reverse(array_chunk(range(1, 100), 10)); echo "<table>\n"; foreach ($rows as $level => $row) { if (($level-1) % 2) { $row = array_reverse($row); } echo "\t<tr>\n"; foreach ($row as $value) { echo "\t\t<td>$value</td>\n"; } echo "\t</tr>\n"; } echo "<table>\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 34
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 34
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 31
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 31
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 31
Branch analysis from position: 23
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/204eh
function name:  (null)
number of ops:  37
compiled vars:  !0 = $rows, !1 = $row, !2 = $level, !3 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'array_reverse'
          1        INIT_FCALL                                                   'array_chunk'
          2        INIT_FCALL                                                   'range'
          3        SEND_VAL                                                     1
          4        SEND_VAL                                                     100
          5        DO_ICALL                                             $4      
          6        SEND_VAR                                                     $4
          7        SEND_VAL                                                     10
          8        DO_ICALL                                             $5      
          9        SEND_VAR                                                     $5
         10        DO_ICALL                                             $6      
         11        ASSIGN                                                       !0, $6
    4    12        ECHO                                                         '%3Ctable%3E%0A'
    5    13      > FE_RESET_R                                           $8      !0, ->34
         14    > > FE_FETCH_R                                           ~9      $8, !1, ->34
         15    >   ASSIGN                                                       !2, ~9
    6    16        SUB                                                  ~11     !2, 1
         17        MOD                                                  ~12     ~11, 2
         18      > JMPZ                                                         ~12, ->23
    7    19    >   INIT_FCALL                                                   'array_reverse'
         20        SEND_VAR                                                     !1
         21        DO_ICALL                                             $13     
         22        ASSIGN                                                       !1, $13
    9    23    >   ECHO                                                         '%09%3Ctr%3E%0A'
   10    24      > FE_RESET_R                                           $15     !1, ->31
         25    > > FE_FETCH_R                                                   $15, !3, ->31
   11    26    >   ROPE_INIT                                         3  ~17     '%09%09%3Ctd%3E'
         27        ROPE_ADD                                          1  ~17     ~17, !3
         28        ROPE_END                                          2  ~16     ~17, '%3C%2Ftd%3E%0A'
         29        ECHO                                                         ~16
   10    30      > JMP                                                          ->25
         31    >   FE_FREE                                                      $15
   13    32        ECHO                                                         '%09%3C%2Ftr%3E%0A'
    5    33      > JMP                                                          ->14
         34    >   FE_FREE                                                      $8
   15    35        ECHO                                                         '%3Ctable%3E%0A'
         36      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
178.41 ms | 2572 KiB | 16 Q