3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($x = 1; $x <= 10; $x++) { $mykey = "\x00" . uniqid(); $var = array(); $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 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 2
Branch analysis from position: 25
Branch analysis from position: 2
Branch analysis from position: 18
filename:       /in/gNiOe
function name:  (null)
number of ops:  26
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                                                      ->23
    3     2    >   INIT_FCALL                                               'uniqid'
          3        DO_ICALL                                         $6      
          4        CONCAT                                           ~7      '%00', $6
          5        ASSIGN                                                   !1, ~7
    4     6        ASSIGN                                                   !2, <array>
    5     7        ASSIGN_DIM                                               !2, !1
          8        OP_DATA                                                  <true>
    6     9      > FE_RESET_R                                       $11     !2, ->18
         10    > > FE_FETCH_R                                       ~12     $11, !3, ->18
         11    >   ASSIGN                                                   !4, ~12
    8    12        IS_IDENTICAL                                             !4, !1
         13      > JMPZ                                                     ~14, ->16
    9    14    >   ECHO                                                     'You+got+it+right%0A'
         15      > JMP                                                      ->17
   11    16    >   ECHO                                                     'You+got+it+wrong%0A'
    6    17    > > JMP                                                      ->10
         18    >   FE_FREE                                                  $11
   14    19        INIT_FCALL                                               'usleep'
         20        SEND_VAL                                                 10
         21        DO_ICALL                                                 
    2    22        PRE_INC                                                  !0
         23    >   IS_SMALLER_OR_EQUAL                                      !0, 10
         24      > JMPNZ                                                    ~17, ->2
   15    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1396 KiB | 17 Q