3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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);?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function phperror_reporting() in /in/l9EMN:1 Stack trace: #0 {main} thrown in /in/l9EMN on line 1
Process exited with code 255.
Output for 5.4.34 - 5.6.28
Fatal error: Call to undefined function phperror_reporting() in /in/l9EMN on line 1
Process exited with code 255.
Output for 4.3.0 - 5.4.32
<?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);?>