3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (glob("*.txt") as $filename) { echo $filename; if(preg_match('[0-9.-a-z]', $filename)) echo "$filename size " . filesize($filename) . "\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/ShDYH
function name:  (null)
number of ops:  22
compiled vars:  !0 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'glob'
          1        SEND_VAL                                                 '%2A.txt'
          2        DO_ICALL                                         $1      
          3      > FE_RESET_R                                       $2      $1, ->20
          4    > > FE_FETCH_R                                               $2, !0, ->20
    3     5    >   ECHO                                                     !0
    4     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%5B0-9.-a-z%5D'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10      > JMPZ                                                     $3, ->19
    5    11    >   NOP                                                      
         12        FAST_CONCAT                                      ~4      !0, '+size+'
         13        INIT_FCALL                                               'filesize'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        CONCAT                                           ~6      ~4, $5
         17        CONCAT                                           ~7      ~6, '%0A'
         18        ECHO                                                     ~7
    2    19    > > JMP                                                      ->4
         20    >   FE_FREE                                                  $2
    7    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.87 ms | 1395 KiB | 19 Q