3v4l.org

run code in 300+ PHP versions simultaneously
<?php $database = 'v23456_1'; if ('' === trim($database) || 'usr' !== substr($database, 0, 3)) { throw new InvalidArgumentException(sprintf('The given user name "%s" is invalid.', $database)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/IUjRd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $database
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'v23456_1'
    5     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        IS_IDENTICAL                                     ~3      $2, ''
          5      > JMPNZ_EX                                         ~3      ~3, ->13
          6    >   INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 3
         10        DO_ICALL                                         $4      
         11        IS_NOT_IDENTICAL                                 ~5      $4, 'usr'
         12        BOOL                                             ~3      ~5
         13    > > JMPZ                                                     ~3, ->22
    6    14    >   NEW                                              $6      'InvalidArgumentException'
         15        INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 'The+given+user+name+%22%25s%22+is+invalid.'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19        SEND_VAR_NO_REF_EX                                       $7
         20        DO_FCALL                                      0          
         21      > THROW                                         0          $6
    7    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.29 ms | 1395 KiB | 19 Q