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 .= \chr( \ord($x[$i]) ^ \orf($y[$i]) ); } var_dump( bin2hex($x), bin2hex($y), bin2hex($z) );

preferences:
65.76 ms | 402 KiB | 5 Q