3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decryptSerial($encrypted_txt){ $secret_key = "t-3zafRa4"; $secret_iv = "St@cE4eZ4"; $encrypt_method = 'AES-256-CBC'; $key = hash('sha256', $secret_key); $iv = substr(hash('sha256', $secret_iv), 0, 16); return openssl_decrypt(base64_decode($encrypted_txt), $encrypt_method, $key, 0, $iv); } $plaintext = "MXeaSFSUj4az"; $encrypted = encryptSerial($plaintext); echo "Encrypted: $encrypted\n"; $decrypted = decryptSerial($encrypted); echo "Decrypted: $decrypted\n"; ?>
Output for git.master_jit, git.master
Fatal error: Uncaught Error: Call to undefined function encryptSerial() in /in/3MZQL:15 Stack trace: #0 {main} thrown in /in/3MZQL on line 15
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:
27.69 ms | 405 KiB | 5 Q