3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = ''; $hashes = array(); do { $str .= '0'; $hashes[] = crypt($str, '$2a$04$1234567890123456789012'); if (count(array_unique($hashes)) === count($hashes)) $allUnique = true; else $allUnique = false; } while($allUnique); echo "Stopped at " . strlen($str) . " characters before truncation was detected...\n\n"; $lst = array_pop($hashes); $stl = array_pop($hashes); echo "$stl\n$lst";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
filename:       /in/3icqi
function name:  (null)
number of ops:  37
compiled vars:  !0 = $str, !1 = $hashes, !2 = $allUnique, !3 = $lst, !4 = $stl
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, ''
    3     1        ASSIGN                                                       !1, <array>
    6     2    >   ASSIGN_OP                                         8          !0, '0'
    7     3        INIT_FCALL                                                   'crypt'
          4        SEND_VAR                                                     !0
          5        SEND_VAL                                                     '%242a%2404%241234567890123456789012'
          6        DO_ICALL                                             $9      
          7        ASSIGN_DIM                                                   !1
          8        OP_DATA                                                      $9
    8     9        INIT_FCALL                                                   'array_unique'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                             $10     
         12        COUNT                                                ~11     $10
         13        COUNT                                                ~12     !1
         14        IS_IDENTICAL                                                 ~11, ~12
         15      > JMPZ                                                         ~13, ->18
    9    16    >   ASSIGN                                                       !2, <true>
    8    17      > JMP                                                          ->19
   11    18    >   ASSIGN                                                       !2, <false>
   12    19    > > JMPNZ                                                        !2, ->2
   14    20    >   STRLEN                                               ~16     !0
         21        CONCAT                                               ~17     'Stopped+at+', ~16
         22        CONCAT                                               ~18     ~17, '+characters+before+truncation+was+detected...%0A%0A'
         23        ECHO                                                         ~18
   15    24        INIT_FCALL                                                   'array_pop'
         25        SEND_REF                                                     !1
         26        DO_ICALL                                             $19     
         27        ASSIGN                                                       !3, $19
   16    28        INIT_FCALL                                                   'array_pop'
         29        SEND_REF                                                     !1
         30        DO_ICALL                                             $21     
         31        ASSIGN                                                       !4, $21
   17    32        ROPE_INIT                                         3  ~24     !4
         33        ROPE_ADD                                          1  ~24     ~24, '%0A'
         34        ROPE_END                                          2  ~23     ~24, !3
         35        ECHO                                                         ~23
         36      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.85 ms | 2819 KiB | 16 Q