3v4l.org

run code in 300+ PHP versions simultaneously
<?phperror_reporting(E_ALL);ini_set('display_errors', 1);require_once 'Crypt/GPG.php';$gpg = new Crypt_GPG();try { $gpg->addEncryptKey('E4908A0CED1C250E68A3185C72B7C89DD5673539'); $data = $gpg->encrypt('my secret data');} catch (Exception $ex) { echo $ex->getMessage(); }//var_dump($data);$txt = '-----BEGIN PGP MESSAGE-----Version: BCPG v1.50hIwDcrfIndVnNTkBA/4/e4X9ZqQ9Y1VVuRsO8eCkGek2biWjajHb+kDKamNqE1IOpy2y0821bkMR/CGz0r+UvWgOavvzYBIKTO7CIMEPgDKbtYvoXzub5F42M1f5Mf9ZKanb9DgaOEWIUQz0cGOGEPXVTCedoUbSCrDKa0OBEXZY/vDL/YwMpi7KHjoDF9I+AbeJlQoiAKFPVw13qYf5jDaOiL9KBNuuWmbA4EDQUQpPuTXPqIiywX09pBR/h8o0zxkEHqIlQPQtI1POjy8==4Ae5-----END PGP MESSAGE-----';try { $gpg->addDecryptKey('E4908A0CED1C250E68A3185C72B7C89DD5673539','LOGINSTOREWALLPROD'); $data = $gpg->decrypt($data);} catch (Exception $ex) { echo $ex->getMessage(); }var_dump($data);?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l9EMN
function name:  (null)
number of ops:  24
compiled vars:  !0 = $gpg, !1 = $data, !2 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL_BY_NAME                                       'phperror_reporting'
          1        SEND_VAL_EX                                              32767
          2        DO_FCALL                                      0          
          3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
          7        INCLUDE_OR_EVAL                                          'Crypt%2FGPG.php', REQUIRE_ONCE
          8        NEW                                              $6      'Crypt_GPG'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $6
         11        INIT_METHOD_CALL                                         !0, 'addEncryptKey'
         12        SEND_VAL_EX                                              'E4908A0CED1C250E68A3185C72B7C89DD5673539'
         13        DO_FCALL                                      0          
         14        INIT_METHOD_CALL                                         !0, 'encrypt'
         15        SEND_VAL_EX                                              'my+secret+data'
         16        DO_FCALL                                      0  $10     
         17        ASSIGN                                                   !1, $10
         18      > JMP                                                      ->23
         19  E > > CATCH                                       last         'Exception'
         20    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         21        DO_FCALL                                      0  $12     
         22        ECHO                                                     $12
         23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1395 KiB | 15 Q