3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mycontent=array("<p>Miller</p><p>23 South Street</p><p>likes steak medium</p>", "<p>Smith</p><p>14 West Drive</p><p>doesn#t drink milk</p>", "<p>Festinger</p><p>3 East Avenue</p><p>warches evening news every day</p>"); $h = "<table>"; // we are going to build the table in $h $maxcount = count($output); // get the number of values within the array for ($i = 0;$i < $maxcount;$i++) { // counting $i up from 0 to $maxcount -1 ... $h.= "<tr><td>{$mycontent[$i]}</td></tr>"; // build row } $h.= "</table>"; // close the table echo $h; // echo it
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/1ZukY
function name:  (null)
number of ops:  17
compiled vars:  !0 = $mycontent, !1 = $h, !2 = $maxcount, !3 = $output, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, '%3Ctable%3E'
    6     2        COUNT                                            ~7      !3
          3        ASSIGN                                                   !2, ~7
    8     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->12
   10     6    >   ROPE_INIT                                     3  ~12     '%3Ctr%3E%3Ctd%3E'
          7        FETCH_DIM_R                                      ~10     !0, !4
          8        ROPE_ADD                                      1  ~12     ~12, ~10
          9        ROPE_END                                      2  ~11     ~12, '%3C%2Ftd%3E%3C%2Ftr%3E'
         10        ASSIGN_OP                                     8          !1, ~11
    8    11        PRE_INC                                                  !4
         12    >   IS_SMALLER                                               !4, !2
         13      > JMPNZ                                                    ~16, ->6
   14    14    >   ASSIGN_OP                                     8          !1, '%3C%2Ftable%3E'
   15    15        ECHO                                                     !1
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.68 ms | 1394 KiB | 13 Q