3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function encodeString($str) { for ($i = 0; $i < 5; ++$i) { $str = base64_decode(strrev($str)); } return $str; } /*var_dump(encodeString('=AFVxIkVWRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('=AFVxI1VrRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('==AUUFjQWZlWX10VSFmUtBnUWdkUzVlbOd3VGpleVxGZaZ1aKVlV650cidkRoRVb4plUxA3VWZFa0ImVaVlUtFDaW1Ge1Z1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZFZhJVbShlVrZlaTVEczZlbjVjVxIVWS1GcoZVbSZUWVx2cStWMLJFbSV1Yx82dVJDehFWMaRVVrpVaZZFczZ1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZlWhJFbOhWYEJUalZEbzZ1akdUTxI1VVxGZoFmRKNXVsR2aS1mSoVVbwZVZWxmVV1GbTFWMKhmUtFzUT12d6ZVb0gnVGFUP')); */ var_dump(encodeString('==AUUFjQWZlVLJVbSl1VthnUTVkWYRlVOBjVWpFMhZEaoV1MoRXVxQ2ViVEMwQmRkVlVxA3cZFjU3JmVKd3VqZ0VVFjSZZlM0gnVGFUP')); var_dump(strrev("Rl zccsm'x ufm sdkfx scgddx tulubfg? Nqtr ybfsc mq ufmq 'tpgnredlxma dckdukgt'? Nkpa lqu klsc bfsc: /ushltqscPzty"));
based on WUY8T
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XNmki
function name:  (null)
number of ops:  14
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  17     1        INIT_FCALL                                               'var_dump'
         2        INIT_FCALL                                               'encodestring'
         3        SEND_VAL                                                 '%3D%3DAUUFjQWZlVLJVbSl1VthnUTVkWYRlVOBjVWpFMhZEaoV1MoRXVxQ2ViVEMwQmRkVlVxA3cZFjU3JmVKd3VqZ0VVFjSZZlM0gnVGFUP'
         4        DO_FCALL                                      0  $0      
         5        SEND_VAR                                                 $0
         6        DO_ICALL                                                 
  19     7        INIT_FCALL                                               'var_dump'
         8        INIT_FCALL                                               'strrev'
         9        SEND_VAL                                                 'Rl+zccsm%27x+ufm+sdkfx+scgddx+tulubfg%3F+Nqtr+ybfsc+mq+ufmq+%27tpgnredlxma+dckdukgt%27%3F+Nkpa+lqu+klsc+bfsc%3A+%2FushltqscPzty'
        10        DO_ICALL                                         $2      
        11        SEND_VAR                                                 $2
        12        DO_ICALL                                                 
        13      > RETURN                                                   1

Function encodestring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/XNmki
function name:  encodeString
number of ops:  15
compiled vars:  !0 = $str, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
   5     1        ASSIGN                                                   !1, 0
         2      > JMP                                                      ->11
   6     3    >   INIT_FCALL                                               'base64_decode'
         4        INIT_FCALL                                               'strrev'
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                         $3      
         7        SEND_VAR                                                 $3
         8        DO_ICALL                                         $4      
         9        ASSIGN                                                   !0, $4
   5    10        PRE_INC                                                  !1
        11    >   IS_SMALLER                                       ~7      !1, 5
        12      > JMPNZ                                                    ~7, ->3
   8    13    > > RETURN                                                   !0
   9    14*     > RETURN                                                   null

End of function encodestring

Generated using Vulcan Logic Dumper, using php 7.3.0