3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sub = ['a', 'b', 'c']; echo "<table class='table'><thead><tr>"; for($j = 0; $j < count($sub); $j++){ echo "<th scope='col'>" . $sub[$j] . "</th>"; } echo "</tr></thead></table>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/huIr3
function name:  (null)
number of ops:  14
compiled vars:  !0 = $sub, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ECHO                                                     '%3Ctable+class%3D%27table%27%3E%3Cthead%3E%3Ctr%3E'
    6     2        ASSIGN                                                   !1, 0
          3      > JMP                                                      ->9
    7     4    >   FETCH_DIM_R                                      ~4      !0, !1
          5        CONCAT                                           ~5      '%3Cth+scope%3D%27col%27%3E', ~4
          6        CONCAT                                           ~6      ~5, '%3C%2Fth%3E'
          7        ECHO                                                     ~6
    6     8        PRE_INC                                                  !1
          9    >   COUNT                                            ~8      !0
         10        IS_SMALLER                                               !1, ~8
         11      > JMPNZ                                                    ~9, ->4
    9    12    >   ECHO                                                     '%3C%2Ftr%3E%3C%2Fthead%3E%3C%2Ftable%3E'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.39 ms | 1397 KiB | 13 Q