3v4l.org

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

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

End of function encodesecret

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.43 ms | 1395 KiB | 25 Q