3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = random_bytes(32); $public = sodium_crypto_scalarmult_base($secret); var_dump( sodium_bin2hex($secret), sodium_bin2hex($public) );

preferences:
30.49 ms | 405 KiB | 5 Q