3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function rsa_decrypt($value, $private_key_e, $public_key_n) { $resp = gmp_powm($value, $private_key_e, $public_key_n); return $resp; } $txt = base64_decode("O6d9IbAVAAADGfCRXooAACNG006bSQEAL/q3GkE7AAA="); $e = "Rivest_Shamir_Adleman"; $n = "MTE6Mzc5MzgxMDk4NDM2MzQ5"; echo rsa_decrypt($txt, $e, $n); ?>
based on jfn5g
Output for 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function gmp_powm() in /in/K8ZoP:3 Stack trace: #0 /in/K8ZoP(9): rsa_decrypt(';\xA7}!\xB0\x15\x00\x00\x03\x19\xF0\x91^\x8A\x00...', 'Rivest_Shamir_A...', 'MTE6Mzc5MzgxMDk...') #1 {main} thrown in /in/K8ZoP on line 3
Process exited with code 255.
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.2.6
Warning: gmp_powm(): Unable to convert variable to GMP - string is not an integer in /in/K8ZoP on line 3
Output for hhvm-3.22.0
Warning: gmp_powm(): Unable to convert variable to GMP - string is not an integer in /in/K8ZoP on line -1