3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $encryptedPass = base64_decode('khdnIKvOTzpeo9d96NKU6s7QPbamFPwAyMvUCBGFgMMU++AUEkcmycNEOMWeUwvc2qBZ1ZgQv4NKSvcwk6D8Cl9/XM5h0096EPY/fQs5YJPMntHuUjBIf/ASTFdSaj4KCiUJSeGLG4mwFYRqTXb71owkXiRVJfdsfcwja862Zwo='); $decryptedPass = ''; $pKey = '-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQC9exEInGuDQzF89CljUWbWsRR2Gx/FNijc7OIlMoMXX+GNkFMs FZv1SPBXk2SwKuCpSWh8RuSpkhdP48Rplig1PdY/+avWxr7rkkEo9/nTts1mPD6d HAQOdWvaikEFkVuAEG1UjNCE/VnRod4hoCy+3Vx+ZxA2qSZC4c3rI+SDQQIDAQAB AoGBAI00FBqNrtVQEqYismEwPWoK5supJQDrfoI9Cb5cqTKXIlhD0KeOpv2g0HMD BUr/eRLPAM10a10u4K6Jd0qUOvs/n5DFSEiHq+n7Zfb/3yeEz98EiEXNgmaIBits nto4Lb4lWmEy5vQ9btI+37Kv/iG7S5rQbs1I4KTManAptq5BAkEA+KIcgE4G7pmi 7bi4qW839s0seRxr7orRpS3lwGPrq5icZvwZRZFJPv4SA3A+p2nh9lLn4o2nhkXo h4IGJ1mquQJBAMMYSDQc14Nf1Iww0539QMpuClf1wZ/o2rfCcYF1XP8a7BMHUznp Sh1FDw8BfCxBuBJtNMUcYkeC1lWqssPNOMkCQCKyrPuS6BDATCaU0uCCbvL4ay5z svRVVzCQGTIiP69w2tLcd8JnpisuVeE49uVyN2Ci7U2Gq0xn0S2oDafMMbECQQCc nm24iD7rFI+JS9lWx+yvlc9v9bbPLRwI0WxVxWY21eIXFJZXs1TwUnRYU5Tf4pJn GIx4gOTVC9ANTc/dKG8hAkB/DbfRVGjNfkIuzvgyzTJtkiZ5B/tA5wlSZMD/J8lf 6S++KvCVHz+rLA4nldbZxG/gCkAPvbh5axpcxK5cNBZR -----END RSA PRIVATE KEY-----'; $result = openssl_private_decrypt($encryptedPass, $decryptedPass, $pKey); var_dump($result, $decryptedPass);
Output for 5.4.15 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true) string(9) "0AvmcR8ge"
Output for 5.0.0 - 5.4.14
Fatal error: Call to undefined function openssl_private_decrypt() in /in/s7ulO on line 22
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: openssl_private_decrypt() in /in/s7ulO on line 22
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: openssl_private_decrypt() in /in/s7ulO on line 22
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: openssl_private_decrypt() in /in/s7ulO on line 22