3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "yzbqklnj"; $num = 0; $finished = false; while(!finished){ $num++; echo $num; $hash = md5($key.$num); if(strpos($hash,"00000")>0){ $finished = true; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
Branch analysis from position: 18
filename:       /in/hW5J7
function name:  (null)
number of ops:  22
compiled vars:  !0 = $key, !1 = $num, !2 = $finished, !3 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'yzbqklnj'
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, <false>
    6     3      > JMP                                                      ->18
    7     4    >   PRE_INC                                                  !1
    8     5        ECHO                                                     !1
    9     6        INIT_FCALL                                               'md5'
          7        CONCAT                                           ~8      !0, !1
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
   10    11        INIT_FCALL                                               'strpos'
         12        SEND_VAR                                                 !3
         13        SEND_VAL                                                 '00000'
         14        DO_ICALL                                         $11     
         15        IS_SMALLER                                               0, $11
         16      > JMPZ                                                     ~12, ->18
   11    17    >   ASSIGN                                                   !2, <true>
    6    18    >   FETCH_CONSTANT                                   ~14     'finished'
         19        BOOL_NOT                                         ~15     ~14
         20      > JMPNZ                                                    ~15, ->4
   13    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.87 ms | 1400 KiB | 17 Q