3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encodedSecret = "3d3d516343746d4d6d6c315669563362"; function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } function decodeSecret($encodedSecret) { return base64_decode(strrev(hex2bin($encodedSecret))); } $abc = decodeSecret($encodedSecret); echo $abc; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9MiVK
function name:  (null)
number of ops:  7
compiled vars:  !0 = $encodedSecret, !1 = $abc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '3d3d516343746d4d6d6c315669563362'
   10     1        INIT_FCALL                                               'decodesecret'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   11     5        ECHO                                                     !1
   14     6      > RETURN                                                   1

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

End of function encodesecret

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

End of function decodesecret

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.38 ms | 1399 KiB | 24 Q