3v4l.org

run code in 300+ PHP versions simultaneously
<?php $private_seed_hash = "8cc91b00b7963e9e804ad5afd080ac0a825cf9f4d9392c153a655c2130789c4e"; $private_seed = "87552e9dce7345ba6af4e94e2d4974ac"; $public_seed = "1a4dba102d4bc799e1f6a7d18251a2d0d2e42b4a85d126857a5049822870a058"; $round = "81315515"; 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.4.16, 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:
58.96 ms | 407 KiB | 5 Q