3v4l.org

run code in 300+ PHP versions simultaneously
<?php function md5Reverse($hash) : Generator { $stringGenerator = stringGenerator(); foreach($stringGenerator as $string) { if(md5($string) === $hash){ yield $string; } } } function stringGenerator(): Generator { $state = ''; yield $state; } echo md5(''); var_dump(md5Reverse('d41d8cd98f00b204e9800998ecf8427e'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/34mso
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 ''
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
   19     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'md5reverse'
          6        SEND_VAL                                                 'd41d8cd98f00b204e9800998ecf8427e'
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function md5reverse:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 161) Position 1 = -2
Branch analysis from position: 14
filename:       /in/34mso
function name:  md5Reverse
number of ops:  16
compiled vars:  !0 = $hash, !1 = $stringGenerator, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        GENERATOR_CREATE                                         
    5     2        INIT_FCALL_BY_NAME                                       'stringGenerator'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
    6     5      > FE_RESET_R                                       $5      !1, ->14
          6    > > FE_FETCH_R                                               $5, !2, ->14
    7     7    >   INIT_FCALL                                               'md5'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $6      
         10        IS_IDENTICAL                                             !0, $6
         11      > JMPZ                                                     ~7, ->13
    8    12    >   YIELD                                                    !2
    6    13    > > JMP                                                      ->6
         14    >   FE_FREE                                                  $5
   11    15      > GENERATOR_RETURN                                         

End of function md5reverse

Function stringgenerator:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/34mso
function name:  stringGenerator
number of ops:  4
compiled vars:  !0 = $state
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   GENERATOR_CREATE                                         
   14     1        ASSIGN                                                   !0, ''
   15     2        YIELD                                                    !0
   16     3      > GENERATOR_RETURN                                         

End of function stringgenerator

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.38 ms | 1403 KiB | 18 Q