3v4l.org

run code in 300+ PHP versions simultaneously
<?php $type = 'c'; $imagesDir = 'images/'; $images = glob($imagesDir . $type . '*[TYPE].{jpg,jpeg,png,gif}', GLOB_BRACE); foreach($images as $image): ?> <li><a href="<?php echo str_replace('[TYPE]', 'F', $image); ?>"><img src="<?php echo str_replace('[TYPE]', 'T', $image); ?></a>" alt="" /></li> <?php endforeach; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 27
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 27
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/MKMPB
function name:  (null)
number of ops:  29
compiled vars:  !0 = $type, !1 = $imagesDir, !2 = $images, !3 = $image
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'c'
    4     1        ASSIGN                                                   !1, 'images%2F'
    6     2        INIT_FCALL                                               'glob'
          3        CONCAT                                           ~6      !1, !0
          4        CONCAT                                           ~7      ~6, '%2A%5BTYPE%5D.%7Bjpg%2Cjpeg%2Cpng%2Cgif%7D'
          5        SEND_VAL                                                 ~7
          6        SEND_VAL                                                 1024
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
    7     9      > FE_RESET_R                                       $10     !2, ->27
         10    > > FE_FETCH_R                                               $10, !3, ->27
    8    11    >   ECHO                                                     '+++%3Cli%3E%3Ca+href%3D%22'
         12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '%5BTYPE%5D'
         14        SEND_VAL                                                 'F'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $11     
         17        ECHO                                                     $11
         18        ECHO                                                     '%22%3E%3Cimg+src%3D%22'
         19        INIT_FCALL                                               'str_replace'
         20        SEND_VAL                                                 '%5BTYPE%5D'
         21        SEND_VAL                                                 'T'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $12     
         24        ECHO                                                     $12
         25        ECHO                                                     '%3C%2Fa%3E%22+alt%3D%22%22+%2F%3E%3C%2Fli%3E%0A'
    7    26      > JMP                                                      ->10
         27    >   FE_FREE                                                  $10
    9    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.23 ms | 1388 KiB | 17 Q