3v4l.org

run code in 300+ PHP versions simultaneously
<?php $redirect= '/lejebolig/*.html'; $url = 'lejebolig/1.html'; if (fnmatch($redirect, $url) || fnmatch(ltrim($redirect, '/'), $url)) { echo '111'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 16
filename:       /in/PGKRi
function name:  (null)
number of ops:  19
compiled vars:  !0 = $redirect, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Flejebolig%2F%2A.html'
    3     1        ASSIGN                                                   !1, 'lejebolig%2F1.html'
    4     2        INIT_FCALL                                               'fnmatch'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6      > JMPNZ_EX                                         ~5      $4, ->16
          7    >   INIT_FCALL                                               'fnmatch'
          8        INIT_FCALL                                               'ltrim'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '%2F'
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        BOOL                                             ~5      $7
         16    > > JMPZ                                                     ~5, ->18
    5    17    >   ECHO                                                     '111'
    6    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.69 ms | 1395 KiB | 17 Q