3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wp_fast_hash( #[\SensitiveParameter] string $message, int $length = 24 ): string { $hashed = sodium_crypto_generichash( $message, '', $length ); return '$generic$' . sodium_bin2base64( $hashed, SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING ); } for ($i = 24; $i < 64; ++$i) { $hash = time() . ':' . wp_fast_hash('foo', $i); if (strlen($hash) > 64) { continue; } echo $i . " length -> " . strlen($hash) . ": " . $hash . PHP_EOL; }
Output for git.master_jit, git.master
Fatal error: Uncaught Error: Call to undefined function sodium_crypto_generichash() in /in/gP6lT:8 Stack trace: #0 /in/gP6lT(13): wp_fast_hash(Object(SensitiveParameterValue), 24) #1 {main} thrown in /in/gP6lT on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.57 ms | 405 KiB | 5 Q