3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (true) { $count++; $block_1 .= <<<EOT <figure id=\"img{$count}\"> <div class="image"><img src=\"{$row['imgpath']}\" alt=\"{$row['shortdesc']}\"></div><figcaption> <h1 class=\"product\">{$row['product']}</h1> <p class=\"description\">{$row['longdesc']}</p> </figcaption> </figure> EOT; $block_2 .= '<a href="#img'.$count.'"><img src="'.$row['imgpath'].'" alt="'.$row['shortdesc'].'"></a>'; } var_dump($block_1);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 27
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/XpfVT
function name:  (null)
number of ops:  31
compiled vars:  !0 = $count, !1 = $block_1, !2 = $row, !3 = $block_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMPZ                                                     <true>, ->27
    3     1    >   PRE_INC                                                  !0
    5     2        ROPE_INIT                                    11  ~10     '++++++++++++++++++++++++++++%3Cfigure+id%3D%5C%22img'
          3        ROPE_ADD                                      1  ~10     ~10, !0
          4        ROPE_ADD                                      2  ~10     ~10, '%5C%22%3E%0A++++++++++++++++++++++++++++++++%3Cdiv+class%3D%22image%22%3E%3Cimg+src%3D%5C%22'
    6     5        FETCH_DIM_R                                      ~5      !2, 'imgpath'
          6        ROPE_ADD                                      3  ~10     ~10, ~5
          7        ROPE_ADD                                      4  ~10     ~10, '%5C%22+alt%3D%5C%22'
          8        FETCH_DIM_R                                      ~6      !2, 'shortdesc'
          9        ROPE_ADD                                      5  ~10     ~10, ~6
         10        ROPE_ADD                                      6  ~10     ~10, '%5C%22%3E%3C%2Fdiv%3E%3Cfigcaption%3E%0A++++++++++++++++++++++++++++++++++++%3Ch1+class%3D%5C%22product%5C%22%3E'
    7    11        FETCH_DIM_R                                      ~7      !2, 'product'
         12        ROPE_ADD                                      7  ~10     ~10, ~7
         13        ROPE_ADD                                      8  ~10     ~10, '%3C%2Fh1%3E%0A++++++++++++++++++++++++++++++++++++%3Cp+class%3D%5C%22description%5C%22%3E'
    8    14        FETCH_DIM_R                                      ~8      !2, 'longdesc'
         15        ROPE_ADD                                      9  ~10     ~10, ~8
         16        ROPE_END                                     10  ~9      ~10, '%3C%2Fp%3E%0A++++++++++++++++++++++++++++++++%3C%2Ffigcaption%3E%0A++++++++++++++++++++++++++++%3C%2Ffigure%3E%0A'
         17        ASSIGN_OP                                     8          !1, ~9
   13    18        CONCAT                                           ~17     '%3Ca+href%3D%22%23img', !0
         19        CONCAT                                           ~18     ~17, '%22%3E%3Cimg+src%3D%22'
         20        FETCH_DIM_R                                      ~19     !2, 'imgpath'
         21        CONCAT                                           ~20     ~18, ~19
         22        CONCAT                                           ~21     ~20, '%22+alt%3D%22'
         23        FETCH_DIM_R                                      ~22     !2, 'shortdesc'
         24        CONCAT                                           ~23     ~21, ~22
         25        CONCAT                                           ~24     ~23, '%22%3E%3C%2Fa%3E'
         26        ASSIGN_OP                                     8          !3, ~24
   15    27    >   INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1396 KiB | 15 Q