3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rsa_decrypt($value, $private_key_e, $public_key_n) { $resp = gmp_powm($value, $private_key_e, $public_key_n); return $resp; } $txt = base64_decode("O6d9IbAVAAADGfCRXooAACNG006bSQEAL/q3GkE7AAA="); $e = "Rivest_Shamir_Adleman"; $n = "MTE6Mzc5MzgxMDk4NDM2MzQ5"; echo rsa_decrypt($txt, $e, $n); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K8ZoP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $txt, !1 = $e, !2 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'base64_decode'
          1        SEND_VAL                                                 'O6d9IbAVAAADGfCRXooAACNG006bSQEAL%2Fq3GkE7AAA%3D'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    7     4        ASSIGN                                                   !1, 'Rivest_Shamir_Adleman'
    8     5        ASSIGN                                                   !2, 'MTE6Mzc5MzgxMDk4NDM2MzQ5'
    9     6        INIT_FCALL                                               'rsa_decrypt'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_FCALL                                      0  $7      
         11        ECHO                                                     $7
   10    12      > RETURN                                                   1

Function rsa_decrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K8ZoP
function name:  rsa_decrypt
number of ops:  11
compiled vars:  !0 = $value, !1 = $private_key_e, !2 = $public_key_n, !3 = $resp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        INIT_FCALL_BY_NAME                                       'gmp_powm'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !2
          7        DO_FCALL                                      0  $4      
          8        ASSIGN                                                   !3, $4
    4     9      > RETURN                                                   !3
    5    10*     > RETURN                                                   null

End of function rsa_decrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.24 ms | 1398 KiB | 16 Q