3v4l.org

run code in 300+ PHP versions simultaneously
<?php $private_seed_hash = "d5acec5aca03f56c880557776dc4ad1c52efee3b75793214fa9ff7c557f112c2"; $private_seed = "f5fdb275d44df0bd39c2eca3709e6d83"; $public_seed = "f1f30a9191e4cbba94c6d4c0d8dc2264b7b6e24b9fc7ae5078202a0e611c4832"; $round = "1106"; if (hash('sha256', $private_seed) != $private_seed_hash) { echo "WARNING: Private seed hash does not match private seed!\n"; } $hash = hash('sha256', "$private_seed-$public_seed-$round"); $flip = (hexdec(substr($hash, 0, 8)) % 2) + 1; echo "Result: " . ($flip == 1 ? 'Heads (T)' : 'Tails (CT)');
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
Result: Heads (T)
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.

preferences:
68.14 ms | 407 KiB | 5 Q