3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mykey = uniqid("\x00"); $mykey = preg_replace('/[a-zA-Z]/', "4", $mykey); var_dump($mykey); $var[$mykey] = TRUE; foreach($var as $key => $val) { if ($key === $mykey) { echo 'You got it right'; } else { echo 'You got it wrong'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/FCG3e
function name:  (null)
number of ops:  26
compiled vars:  !0 = $mykey, !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_replace'
          5        SEND_VAL                                                 '%2F%5Ba-zA-Z%5D%2F'
          6        SEND_VAL                                                 '4'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !0, $6
    4    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    5    13        ASSIGN_DIM                                               !1, !0
         14        OP_DATA                                                  <true>
    6    15      > FE_RESET_R                                       $10     !1, ->24
         16    > > FE_FETCH_R                                       ~11     $10, !2, ->24
         17    >   ASSIGN                                                   !3, ~11
    8    18        IS_IDENTICAL                                             !3, !0
         19      > JMPZ                                                     ~13, ->22
    9    20    >   ECHO                                                     'You+got+it+right'
         21      > JMP                                                      ->23
   11    22    >   ECHO                                                     'You+got+it+wrong'
    6    23    > > JMP                                                      ->16
         24    >   FE_FREE                                                  $10
   13    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1396 KiB | 19 Q