3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'rosa'; $hash = md5(sha1($str)); for ($i = 0; $i < 10; ++$i) { $hash = md5(sha1(hash)); echo $hash . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 10
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 10
Branch analysis from position: 23
Branch analysis from position: 10
filename:       /in/f3GLM
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $hash, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'rosa'
    4     1        INIT_FCALL                                               'md5'
          2        INIT_FCALL                                               'sha1'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    6     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->21
    7    10    >   INIT_FCALL                                               'md5'
         11        INIT_FCALL                                               'sha1'
         12        FETCH_CONSTANT                                   ~8      'hash'
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !1, $10
    9    18        CONCAT                                           ~12     !1, '%0A'
         19        ECHO                                                     ~12
    6    20        PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, 10
         22      > JMPNZ                                                    ~14, ->10
   10    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.56 ms | 1395 KiB | 17 Q