3v4l.org

run code in 300+ PHP versions simultaneously
<?php $usernameSearch = 'd'; if (false === (bool)!preg_match('/[^a-z_\-0-9]/i', $usernameSearch) || strlen($usernameSearch) > 14) { echo 'false'; } else { echo 'true'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/DQGAc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $usernameSearch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'd'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5B%5Ea-z_%5C-0-9%5D%2Fi'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        BOOL_NOT                                         ~3      $2
          6        BOOL                                             ~4      ~3
          7        TYPE_CHECK                                    4  ~5      ~4
          8      > JMPNZ_EX                                         ~5      ~5, ->12
          9    >   STRLEN                                           ~6      !0
         10        IS_SMALLER                                       ~7      14, ~6
         11        BOOL                                             ~5      ~7
         12    > > JMPZ                                                     ~5, ->15
    6    13    >   ECHO                                                     'false'
         14      > JMP                                                      ->16
   10    15    >   ECHO                                                     'true'
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.91 ms | 1395 KiB | 15 Q