3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('max_execution_time', 300); $string = 'SELECT * FROM jokes WHERE joke LIKE'; foreach (mcrypt_list_algorithms() as $algo) { for ($i=1; $i<strlen($string); $i++) { $substr = substr($string, 0, 10+$i); echo $substr . ' => '; $r = base64_encode(mcrypt_encrypt($algo, 'mep', $substr, 'ecb')); /*if (strpos($r, 'G+') === 0)*/ echo $r . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 37
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 37
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 11
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 11
Branch analysis from position: 36
Branch analysis from position: 11
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/bXgFa
function name:  (null)
number of ops:  39
compiled vars:  !0 = $string, !1 = $algo, !2 = $i, !3 = $substr, !4 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'max_execution_time'
          2        SEND_VAL                                                 300
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, 'SELECT+%2A+FROM+jokes+WHERE+joke+LIKE'
    6     5        INIT_FCALL_BY_NAME                                       'mcrypt_list_algorithms'
          6        DO_FCALL                                      0  $7      
          7      > FE_RESET_R                                       $8      $7, ->37
          8    > > FE_FETCH_R                                               $8, !1, ->37
    7     9    >   ASSIGN                                                   !2, 1
         10      > JMP                                                      ->33
    9    11    >   INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 0
         14        ADD                                              ~10     10, !2
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !3, $11
   10    18        CONCAT                                           ~13     !3, '+%3D%3E+'
         19        ECHO                                                     ~13
   11    20        INIT_FCALL                                               'base64_encode'
         21        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
         22        SEND_VAR_EX                                              !1
         23        SEND_VAL_EX                                              'mep'
         24        SEND_VAR_EX                                              !3
         25        SEND_VAL_EX                                              'ecb'
         26        DO_FCALL                                      0  $14     
         27        SEND_VAR                                                 $14
         28        DO_ICALL                                         $15     
         29        ASSIGN                                                   !4, $15
   12    30        CONCAT                                           ~17     !4, '%0A'
         31        ECHO                                                     ~17
    7    32        PRE_INC                                                  !2
         33    >   STRLEN                                           ~19     !0
         34        IS_SMALLER                                               !2, ~19
         35      > JMPNZ                                                    ~20, ->11
    6    36    > > JMP                                                      ->8
         37    >   FE_FREE                                                  $8
   14    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.56 ms | 1400 KiB | 19 Q