3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = __DIR__; $f = scandir($dir); foreach ($f as $file){ if(preg_match('/\.(htm)/', $f)){ echo $f.'<br/>'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/t8DJV
function name:  (null)
number of ops:  17
compiled vars:  !0 = $dir, !1 = $f, !2 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fin'
    4     1        INIT_FCALL                                               'scandir'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5      > FE_RESET_R                                       $6      !1, ->15
          6    > > FE_FETCH_R                                               $6, !2, ->15
    7     7    >   INIT_FCALL                                               'preg_match'
          8        SEND_VAL                                                 '%2F%5C.%28htm%29%2F'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11      > JMPZ                                                     $7, ->14
    8    12    >   CONCAT                                           ~8      !1, '%3Cbr%2F%3E'
         13        ECHO                                                     ~8
    6    14    > > JMP                                                      ->6
         15    >   FE_FREE                                                  $6
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.67 ms | 1395 KiB | 17 Q