3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fileName = 'aiueo.txt'; $pattern1 = 'aiueo*'; $pattern2 = 'abcde*'; $pattern3 = '{"abcde*", "aiueo*"}'; var_dump(fnmatch($pattern1, $fileName)); var_dump(fnmatch($pattern2, $fileName)); var_dump(fnmatch($pattern3, $fileName));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GpRjD
function name:  (null)
number of ops:  26
compiled vars:  !0 = $fileName, !1 = $pattern1, !2 = $pattern2, !3 = $pattern3
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'
    6     3        ASSIGN                                                       !3, '%7B%22abcde%2A%22%2C+%22aiueo%2A%22%7D'
    8     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'fnmatch'
          6        SEND_VAR                                                     !1
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $8      
          9        SEND_VAR                                                     $8
         10        DO_ICALL                                                     
    9    11        INIT_FCALL                                                   'var_dump'
         12        INIT_FCALL                                                   'fnmatch'
         13        SEND_VAR                                                     !2
         14        SEND_VAR                                                     !0
         15        DO_ICALL                                             $10     
         16        SEND_VAR                                                     $10
         17        DO_ICALL                                                     
   10    18        INIT_FCALL                                                   'var_dump'
         19        INIT_FCALL                                                   'fnmatch'
         20        SEND_VAR                                                     !3
         21        SEND_VAR                                                     !0
         22        DO_ICALL                                             $12     
         23        SEND_VAR                                                     $12
         24        DO_ICALL                                                     
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
115.59 ms | 487 KiB | 11 Q