3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ticket = 'skf243985hf2387bf87, sdf=$1'; $isValid = true; if (empty($ticket) || '_' == $ticket || 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 = 12
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/HNs0C
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ticket, !1 = $isValid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'skf243985hf2387bf87%2C+sdf%3D%241'
    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, ->12
          7    >   INIT_FCALL                                               'preg_match'
          8        SEND_VAL                                                 '%2F%5B%5Ea-z0-9%5D%2B%2Fi'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        BOOL                                             ~4      $6
         12    > > JMPZ                                                     ~4, ->14
    7    13    >   ASSIGN                                                   !1, <false>
   10    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.64 ms | 1395 KiB | 17 Q