3v4l.org

run code in 300+ PHP versions simultaneously
<?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 .= \ord( \chr($x[$i]) ^ \chr($y[$i]) ); } var_dump( bin2hex($x), bin2hex($y), bin2hex($z) );

preferences:
42.71 ms | 407 KiB | 5 Q