3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.93 ms | 1386 KiB | 15 Q