3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_key = uniqid("\x00"); if (preg_match('/[a-zA-Z]/', $my_key)) { echo "key has alpha chars\n"; } $var[$my_key] = TRUE; foreach($var as $key => $val) { if ($key === $my_key) { echo 'You got it right'; } else { echo 'You got it wrong'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 10
filename:       /in/9pu4V
function name:  (null)
number of ops:  23
compiled vars:  !0 = $my_key, !1 = $var, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'uniqid'
          1        SEND_VAL                                                 '%00'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%5Ba-zA-Z%5D%2F'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->10
    4     9    >   ECHO                                                     'key+has+alpha+chars%0A'
    6    10    >   ASSIGN_DIM                                               !1, !0
         11        OP_DATA                                                  <true>
    7    12      > FE_RESET_R                                       $8      !1, ->21
         13    > > FE_FETCH_R                                       ~9      $8, !2, ->21
         14    >   ASSIGN                                                   !3, ~9
    9    15        IS_IDENTICAL                                             !3, !0
         16      > JMPZ                                                     ~11, ->19
   10    17    >   ECHO                                                     'You+got+it+right'
         18      > JMP                                                      ->20
   12    19    >   ECHO                                                     'You+got+it+wrong'
    7    20    > > JMP                                                      ->13
         21    >   FE_FREE                                                  $8
   14    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.97 ms | 1396 KiB | 17 Q