3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $encryptedPass = base64_decode('ELMp/bfzrg0mu1lOo7JuTY+lx9nlpN4pyug1Ofi7y6OJbevdsxXXikQpdUWnFatt7QB7HweMQynTnhBlgm7K8v7oWQRiGgctwH7WYZxredYBvu5dbQOtJwGj8eqg2JNIlaR2wPGFSqXo6aUN2Z9HY5s9lDnUdnqhdxUdE+8Qzds='); $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.34 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
bool(true) string(16) "CugAVApr7praChax"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.4.32
Fatal error: Call to undefined function openssl_private_decrypt() in /in/J3llH 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/J3llH 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/J3llH 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/J3llH on line 22