3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.91 ms | 1396 KiB | 17 Q