3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ?><?php $methods = openssl_get_cipher_methods(); $str = "5c7Zms7hW3y4e4gOCOjzfg=="; $clefSecrete = "glop"; $decrypted = openssl_decrypt($encrypted, $methods[62], $clefSecrete); $bla = openssl_decrypt($str, $methods[62], $clefSecrete); ?> <table border=1 align="left"><tr><td align="center"> <?php print "SSH Credentials:<br>username: root:<br>password: <b>" . $bla . "</b>"; ?> </td> <td align="center"> <?php print "MySql Credentials:<br>username: root:<br>password: <b>12346</b>"; ?> </td> <td align="center"> <?php print "WordPress Credentials:<br>username: admin:<br>password: <b>Ihax1337stuff</b>"; ?> </td> </tr></table> <?php ?>
based on tSFjk
Output for 7.0.20, 7.1.5 - 7.2.0
Notice: Undefined variable: encrypted in /in/sFMoU on line 5 <table border=1 align="left"><tr><td align="center"> SSH Credentials:<br>username: root:<br>password: <b>����^L��E�?�Y�</b></td> <td align="center"> MySql Credentials:<br>username: root:<br>password: <b>12346</b></td> <td align="center"> WordPress Credentials:<br>username: admin:<br>password: <b>Ihax1337stuff</b></td> </tr></table>
Output for 5.4.15 - 7.0.6, 7.1.0
Notice: Undefined variable: encrypted in /in/sFMoU on line 5 <table border=1 align="left"><tr><td align="center"> SSH Credentials:<br>username: root:<br>password: <b></b></td> <td align="center"> MySql Credentials:<br>username: root:<br>password: <b>12346</b></td> <td align="center"> WordPress Credentials:<br>username: admin:<br>password: <b>Ihax1337stuff</b></td> </tr></table>
Output for 5.3.18 - 5.4.14
Fatal error: Call to undefined function openssl_get_cipher_methods() in /in/sFMoU on line 2
Process exited with code 255.