3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://localhost/img/'; $dir = 'C:\Program Files\Apache Group\Apache2\htdocs\img'; $max = 5; $images = array( 'a.jpg', 'b.GIF', 'C.png', 'd.JPEG', 'e.jpg', 'f.tiff', 'g.png', 'h.bmp', 'i.jpg', 'j.GIF', 'k.png', ); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>画像</title> </head> <body> <h1><?=$dir?>内の画像一覧</h1> <?php if (!$images): ?> <p>表示する画像はありません</p> <?php else: ?> <table> <tr> <?php foreach ($images as $i => $img): ?> <?php if ($i !== 0 && $i % $max === 0): ?> </tr> <tr> <?php endif; ?> <td><img src="<?php echo $url.$img; ?>"></td> <?php endforeach; ?> </tr> </table> <?php endif; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 27
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 27
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 22
Branch analysis from position: 20
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/TjIRO
function name:  (null)
number of ops:  31
compiled vars:  !0 = $url, !1 = $dir, !2 = $max, !3 = $images, !4 = $img, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Flocalhost%2Fimg%2F'
    4     1        ASSIGN                                                   !1, 'C%3A%5CProgram+Files%5CApache+Group%5CApache2%5Chtdocs%5Cimg'
    5     2        ASSIGN                                                   !2, 5
    7     3        ASSIGN                                                   !3, <array>
   22     4        ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%3Cmeta+charset%3D%22UTF-8%22%3E%0A%3Ctitle%3E%E7%94%BB%E5%83%8F%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%3Ch1%3E'
   29     5        ECHO                                                     !1
          6        ECHO                                                     '%E5%86%85%E3%81%AE%E7%94%BB%E5%83%8F%E4%B8%80%E8%A6%A7%3C%2Fh1%3E%0A'
   30     7        BOOL_NOT                                         ~10     !3
          8      > JMPZ                                                     ~10, ->11
   31     9    >   ECHO                                                     '%3Cp%3E%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B%E7%94%BB%E5%83%8F%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%3C%2Fp%3E%0A'
         10      > JMP                                                      ->29
   33    11    >   ECHO                                                     '%3Ctable%3E%0A%3Ctr%3E%0A'
   35    12      > FE_RESET_R                                       $11     !3, ->27
         13    > > FE_FETCH_R                                       ~12     $11, !4, ->27
         14    >   ASSIGN                                                   !5, ~12
   36    15        IS_NOT_IDENTICAL                                 ~14     !5, 0
         16      > JMPZ_EX                                          ~14     ~14, ->20
         17    >   MOD                                              ~15     !5, !2
         18        IS_IDENTICAL                                     ~16     ~15, 0
         19        BOOL                                             ~14     ~16
         20    > > JMPZ                                                     ~14, ->22
   37    21    >   ECHO                                                     '%3C%2Ftr%3E%0A%3Ctr%3E%0A'
   40    22    >   ECHO                                                     '%3Ctd%3E%3Cimg+src%3D%22'
         23        CONCAT                                           ~17     !0, !4
         24        ECHO                                                     ~17
         25        ECHO                                                     '%22%3E%3C%2Ftd%3E%0A'
   35    26      > JMP                                                      ->13
         27    >   FE_FREE                                                  $11
   42    28        ECHO                                                     '%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A'
   45    29    >   ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   46    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.59 ms | 1399 KiB | 13 Q