3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s="aaaaaa"; $q="str_replace"; $g = ""; while (strlen($g)<strlen($s)) { $q = pack("H*",md5($g.$q."q1w2e3r4")); $g.=substr($q,0,8); } echo $s^$g;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
Branch analysis from position: 4
filename:       /in/GcRL9
function name:  (null)
number of ops:  27
compiled vars:  !0 = $s, !1 = $q, !2 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'aaaaaa'
    3     1        ASSIGN                                                   !1, 'str_replace'
    4     2        ASSIGN                                                   !2, ''
    5     3      > JMP                                                      ->20
    6     4    >   INIT_FCALL                                               'pack'
          5        SEND_VAL                                                 'H%2A'
          6        INIT_FCALL                                               'md5'
          7        CONCAT                                           ~6      !2, !1
          8        CONCAT                                           ~7      ~6, 'q1w2e3r4'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !1, $9
    7    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 8
         18        DO_ICALL                                         $11     
         19        ASSIGN_OP                                     8          !2, $11
    5    20    >   STRLEN                                           ~13     !2
         21        STRLEN                                           ~14     !0
         22        IS_SMALLER                                               ~13, ~14
         23      > JMPNZ                                                    ~15, ->4
    9    24    >   BW_XOR                                           ~16     !0, !2
         25        ECHO                                                     ~16
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.17 ms | 1395 KiB | 19 Q