3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo bin2hex(sodium_crypto_box_publickey_from_secretkey(pack('H*', '6A2CB91DA5FB77B12A99C0EB872F4CDF4566B25172C1163C7DA518730A6D0770'))) . "\n"; // IETF Draft echo bin2hex(sodium_crypto_box_publickey_from_secretkey(pack('H*', '77076d0a7318a57d3c16c17251b26645df4c2f87ebc0992ab177fba51db92c2a'))) . "\n"; // IETF RFC
Output for 7.1.25 - 7.1.30, 8.0.0, 8.1rc1 - rc3
Fatal error: Uncaught Error: Call to undefined function sodium_crypto_box_publickey_from_secretkey() in /in/i61aE:3 Stack trace: #0 {main} thrown in /in/i61aE on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 8.0.1 - 8.0.12
69b8d0233917d50894e037a7e1ccc214efa0469749c754303983f1fcd6fcdc66 8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a

preferences:
39.65 ms | 461 KiB | 5 Q