3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<table border="1"><tr>'; foreach(range(1,20) as $key => $row) { echo '<td>'. $row . '</td>'; if(++$key % 5 == 0 ) echo '</tr><tr>'; } echo '</td></table>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/ScpvR
function name:  (null)
number of ops:  20
compiled vars:  !0 = $row, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Ctable+border%3D%221%22%3E%3Ctr%3E'
    2     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 20
          4        DO_ICALL                                         $2      
          5      > FE_RESET_R                                       $3      $2, ->17
          6    > > FE_FETCH_R                                       ~4      $3, !0, ->17
          7    >   ASSIGN                                                   !1, ~4
    3     8        CONCAT                                           ~6      '%3Ctd%3E', !0
          9        CONCAT                                           ~7      ~6, '%3C%2Ftd%3E'
         10        ECHO                                                     ~7
    4    11        PRE_INC                                          ~8      !1
         12        MOD                                              ~9      ~8, 5
         13        IS_EQUAL                                                 ~9, 0
         14      > JMPZ                                                     ~10, ->16
         15    >   ECHO                                                     '%3C%2Ftr%3E%3Ctr%3E'
    2    16    > > JMP                                                      ->6
         17    >   FE_FREE                                                  $3
    6    18        ECHO                                                     '%3C%2Ftd%3E%3C%2Ftable%3E'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1395 KiB | 15 Q