3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $key; function __construct() { $tmp = fopen("/tmp/foo", "w"); fwrite($tmp, "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDAO3Um1IWsIBORKVLRhiGSkAfbVnAEOOkXRCnuTV521/RA6jAH 1YqzOPIsJK733z9WB4hRsJapoFnxyew8JeBGvxAAvf0BOoJnGqLhtgqLTm8db+hq 2/BDdTnMBycdqjZdzL9uZYudPpzaznHgor/c8xzxsEBQqy1lLBkPxru/IQIDAQAB AoGBAI9rzPwrk4/YXsDvE9s/N80hqLr8wpZj34R8Vsx07QW+GX5VO4Cc0d7lnclR lTlaVubYt9w65C2qdXDwNlCp8amL1iPz4TCqFewwFIzyGoGmwLeLcUxaJ9edBP4W p6jZmk0VcctND3kqFIvNFeEOxQUt2OXK99cPXp9QcictxnwBAkEA4NhUYWXyEtfI XWxp9Qx9yd54fc/QMD2k/D1XEIEZvQBxYyaG33LtwIWC+sERjYU5fC3kCuLzYodi QrDRXgvz9wJBANreSs0mSA8r2AGQnpaQ4Z2u+lO5pwI1tZFMEEuPkVK5ElyI+/g3 0LL2OSif0Ds6iLogiscNcAKrzGHxq3o076cCQQCSAUhB+w5H2CF/MRBZFSR1uuZp ZFIfkVgah8aKrBrHlYsLxI/ed+YVl10nccnxKSrcDXzA6QD84UcYYXODa6WfAkBc 41bPtl2CwtLL5zrHH/oA2BA5lGNC1tSWM7f+uZGtkAow55o4gEe8jC86BIl1eaQp ikIbtKJDH/J/5vclyG2lAkA+Q/DrteU6a3IM0S9nrsxKf321Cp6YoFOGSHG5sXh8 nu+WEYJeKrOGdh1tzsFT9m6khNhMm3g8yFah7WK8pDtu -----END RSA PRIVATE KEY----- "); $this->key = openssl_pkey_get_private("file:///tmp/foo"); } function export() { $exp = null; openssl_pkey_export($this->key, $exp); return $exp; } } $test = new test; echo $test->export();
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function openssl_pkey_get_private() in /in/7j4pb:22 Stack trace: #0 /in/7j4pb(33): test->__construct() #1 {main} thrown in /in/7j4pb on line 22
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.75 ms | 401 KiB | 8 Q