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($mycontent); // 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/L0dE2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $mycontent, !1 = $h, !2 = $maxcount, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, '%3Ctable%3E'
   13     2        COUNT                                            ~6      !0
          3        ASSIGN                                                   !2, ~6
   15     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->12
   17     6    >   ROPE_INIT                                     3  ~11     '%3Ctr%3E%3Ctd%3E'
          7        FETCH_DIM_R                                      ~9      !0, !3
          8        ROPE_ADD                                      1  ~11     ~11, ~9
          9        ROPE_END                                      2  ~10     ~11, '%3C%2Ftd%3E%3C%2Ftr%3E'
         10        ASSIGN_OP                                     8          !1, ~10
   15    11        PRE_INC                                                  !3
         12    >   IS_SMALLER                                               !3, !2
         13      > JMPNZ                                                    ~15, ->6
   21    14    >   ASSIGN_OP                                     8          !1, '%3C%2Ftable%3E'
   22    15        ECHO                                                     !1
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.06 ms | 1394 KiB | 13 Q