3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fileName = 'aiueo.txt'; $pattern1 = 'aiueo*'; $pattern2 = 'abcde*'; var_dump(fnmatch($pattern1, $fileName)); var_dump(fnmatch($pattern2, $fileName));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8XPvL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $fileName, !1 = $pattern1, !2 = $pattern2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'aiueo.txt'
    4     1        ASSIGN                                                       !1, 'aiueo%2A'
    5     2        ASSIGN                                                       !2, 'abcde%2A'
    7     3        INIT_FCALL                                                   'var_dump'
          4        INIT_FCALL                                                   'fnmatch'
          5        SEND_VAR                                                     !1
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $6      
          8        SEND_VAR                                                     $6
          9        DO_ICALL                                                     
    8    10        INIT_FCALL                                                   'var_dump'
         11        INIT_FCALL                                                   'fnmatch'
         12        SEND_VAR                                                     !2
         13        SEND_VAR                                                     !0
         14        DO_ICALL                                             $8      
         15        SEND_VAR                                                     $8
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
116.22 ms | 486 KiB | 11 Q