3v4l.org

run code in 300+ PHP versions simultaneously
<?php $starting_directory = "/44test/w33"; if (!preg_match('/^[\p{L}0-9\s-]+$/u', str_replace("/", "" ,$starting_directory))) { echo "error"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8ipPi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $starting_directory
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%2F44test%2Fw33'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5B%5Cp%7BL%7D0-9%5Cs-%5D%2B%24%2Fu'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '%2F'
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        BOOL_NOT                                         ~4      $3
         11      > JMPZ                                                     ~4, ->13
    6    12    >   ECHO                                                     'error'
    7    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.87 ms | 1394 KiB | 17 Q