3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = openssl_encrypt('0000000000000000', 'aes-128-ctr', '0123456789abcdef', OPENSSL_RAW_DATA, '0000000000000000'); $y = openssl_encrypt('0000000000000001', 'aes-128-ctr', '0123456789abcdef', OPENSSL_RAW_DATA, '0000000000000000'); $z = ''; for ($i = 0; $i < 16; ++$i) { $z .= \chr( \ord($x[$i]) ^ \orf($y[$i]) ); } var_dump( bin2hex($x), bin2hex($y), bin2hex($z) );
based on Tf5Kd
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function orf() in /in/995aa:9 Stack trace: #0 {main} thrown in /in/995aa on line 9
Process exited with code 255.
Output for 5.4.15 - 5.6.28
Fatal error: Call to undefined function orf() in /in/995aa on line 9
Process exited with code 255.
Output for 5.3.19 - 5.4.14
Fatal error: Call to undefined function openssl_encrypt() in /in/995aa on line 3
Process exited with code 255.