3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rot13encrypt ($str) { return str_rot13(base64_encode($str)); } function rot13decrypt ($str) { return base64_decode(str_rot13($str)); } // example $string = '34Jellon'; $encrypted = rot13encrypt ($string); echo $encrypted;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/24TGS
function name:  (null)
number of ops:  7
compiled vars:  !0 = $string, !1 = $encrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, '34Jellon'
   15     1        INIT_FCALL                                               'rot13encrypt'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   17     5        ECHO                                                     !1
          6      > RETURN                                                   1

Function rot13encrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/24TGS
function name:  rot13encrypt
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'str_rot13'
          2        INIT_FCALL                                               'base64_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
    5     8*     > RETURN                                                   null

End of function rot13encrypt

Function rot13decrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/24TGS
function name:  rot13decrypt
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'base64_decode'
          2        INIT_FCALL                                               'str_rot13'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
    9     8*     > RETURN                                                   null

End of function rot13decrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.12 ms | 1399 KiB | 20 Q