3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ticket = '898808570615cd41ead615ef7c4cdaceHf7a4eedae50154dcfe9d468dade10ffd'; $isValid = true; if (empty($ticket) || '_' == $ticket || !in_array(strlen($ticket), array(32,65)) || preg_match('/[^a-z0-9]+/i', $ticket)) { $isValid = false; } var_dump($isValid);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 20
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/hsPs1
function name:  (null)
number of ops:  26
compiled vars:  !0 = $ticket, !1 = $isValid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '898808570615cd41ead615ef7c4cdaceHf7a4eedae50154dcfe9d468dade10ffd'
    4     1        ASSIGN                                                   !1, <true>
    6     2        ISSET_ISEMPTY_CV                                 ~4      !0
          3      > JMPNZ_EX                                         ~4      ~4, ->6
          4    >   IS_EQUAL                                         ~5      !0, '_'
          5        BOOL                                             ~4      ~5
          6    > > JMPNZ_EX                                         ~4      ~4, ->14
          7    >   INIT_FCALL                                               'in_array'
          8        STRLEN                                           ~6      !0
          9        SEND_VAL                                                 ~6
         10        SEND_VAL                                                 <array>
         11        DO_ICALL                                         $7      
         12        BOOL_NOT                                         ~8      $7
         13        BOOL                                             ~4      ~8
         14    > > JMPNZ_EX                                         ~4      ~4, ->20
         15    >   INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%2F%5B%5Ea-z0-9%5D%2B%2Fi'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        BOOL                                             ~4      $9
         20    > > JMPZ                                                     ~4, ->22
    7    21    >   ASSIGN                                                   !1, <false>
   10    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.41 ms | 1396 KiB | 19 Q