3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "1admin1abcdefg12"; $iv = "abcdefghijkl"; $token = "password"; print "Token: " . base64_encode($token) . "\n"; print "\n"; $cipher = openssl_encrypt($token, 'aes-128-ecb', $key, OPENSSL_RAW_DATA); print "Cipher: " . base64_encode($cipher) . "\n"; print "Error: " . openssl_error_string() . "\n"; print "\n"; $plain = openssl_decrypt($cipher, 'aes-128-ecb', $key, OPENSSL_RAW_DATA); print "Token: " . base64_encode($token) . "\n"; print "Cipher: " . base64_encode($cipher) . "\n"; print "Plain: " . $plain . "\n"; var_dump(openssl_error_string());
Output for git.master, git.master_jit, rfc.property-hooks
Token: cGFzc3dvcmQ= Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/9f4c3:9 Stack trace: #0 {main} thrown in /in/9f4c3 on line 9
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:
57.3 ms | 401 KiB | 8 Q