3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fn_simple_decode_str($str) { $decoded_str = ''; for ($i = 0; $i < fn_strlen($str); $i++) { $chr = ord($str[$i]); $decoded_str .= chr(--$chr); } return $decoded_str; } echo strrev(str_rot13('cuc.xfrqcyrU/utlG/ccn')), PHP_EOL; echo strrev(str_rot13('cuc.8sgh/ergeriabp_ynergvy/fnzrupf/ccn')), PHP_EOL; echo fn_simple_decode_str('npef`sfdifdl'), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DZnuJ
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'strrev'
          1        INIT_FCALL                                               'str_rot13'
          2        SEND_VAL                                                 'cuc.xfrqcyrU%2FutlG%2Fccn'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
          7        ECHO                                                     '%0A'
   15     8        INIT_FCALL                                               'strrev'
          9        INIT_FCALL                                               'str_rot13'
         10        SEND_VAL                                                 'cuc.8sgh%2Fergeriabp_ynergvy%2Ffnzrupf%2Fccn'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
         14        ECHO                                                     $3
         15        ECHO                                                     '%0A'
   16    16        INIT_FCALL                                               'fn_simple_decode_str'
         17        SEND_VAL                                                 'npef%60sfdifdl'
         18        DO_FCALL                                      0  $4      
         19        ECHO                                                     $4
         20        ECHO                                                     '%0A'
         21      > RETURN                                                   1

Function fn_simple_decode_str:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
Branch analysis from position: 4
filename:       /in/DZnuJ
function name:  fn_simple_decode_str
number of ops:  22
compiled vars:  !0 = $str, !1 = $decoded_str, !2 = $i, !3 = $chr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, ''
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->15
    7     4    >   INIT_FCALL                                               'ord'
          5        FETCH_DIM_R                                      ~6      !0, !2
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
    8     9        INIT_FCALL                                               'chr'
         10        PRE_DEC                                          ~9      !3
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                         $10     
         13        ASSIGN_OP                                     8          !1, $10
    6    14        PRE_INC                                                  !2
         15    >   INIT_FCALL_BY_NAME                                       'fn_strlen'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $13     
         18        IS_SMALLER                                               !2, $13
         19      > JMPNZ                                                    ~14, ->4
   11    20    > > RETURN                                                   !1
   12    21*     > RETURN                                                   null

End of function fn_simple_decode_str

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.49 ms | 1394 KiB | 22 Q