3v4l.org

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

Function rot13encrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B3Bc2
function name:  rot13encrypt
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     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
    7     8*     > RETURN                                                   null

End of function rot13encrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.16 ms | 1397 KiB | 18 Q