3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mykey = uniqid("\x00"); $mykey = preg_replace('/[a-zA-Z]/', "4", $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 = 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
filename:       /in/oYWbe
function name:  (null)
number of ops:  23
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
    5    10        ASSIGN_DIM                                               !1, !0
         11        OP_DATA                                                  <true>
    6    12      > FE_RESET_R                                       $9      !1, ->21
         13    > > FE_FETCH_R                                       ~10     $9, !2, ->21
         14    >   ASSIGN                                                   !3, ~10
    8    15        IS_IDENTICAL                                             !3, !0
         16      > JMPZ                                                     ~12, ->19
    9    17    >   ECHO                                                     'You+got+it+right'
         18      > JMP                                                      ->20
   11    19    >   ECHO                                                     'You+got+it+wrong'
    6    20    > > JMP                                                      ->13
         21    >   FE_FREE                                                  $9
   13    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.35 ms | 1395 KiB | 17 Q