3v4l.org

run code in 300+ PHP versions simultaneously
<?php $usernameCheck = 'dani'; if (false === preg_match('/[^a-z_\-0-9]/i', $usernameCheck) && strlen($usernameCheck) > 3 && strlen($usernameCheck) < 15) { echo 'ok'; } else { echo 'false';}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 10
filename:       /in/5bMvg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $usernameCheck
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'dani'
    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        TYPE_CHECK                                    4  ~3      $2
          6      > JMPZ_EX                                          ~3      ~3, ->10
          7    >   STRLEN                                           ~4      !0
          8        IS_SMALLER                                       ~5      3, ~4
          9        BOOL                                             ~3      ~5
         10    > > JMPZ_EX                                          ~3      ~3, ->14
         11    >   STRLEN                                           ~6      !0
         12        IS_SMALLER                                       ~7      ~6, 15
         13        BOOL                                             ~3      ~7
         14    > > JMPZ                                                     ~3, ->17
         15    >   ECHO                                                     'ok'
         16      > JMP                                                      ->18
         17    >   ECHO                                                     'false'
         18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.76 ms | 1395 KiB | 15 Q