3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_secret = sodium_hex2bin("da93b1db433cfb2efe490a1bb263e440b586b6167c20b86f14cd058515806940"); $my_public = sodium_crypto_scalarmult_base($my_secret); $message = sodium_crypto_box_seal("This is a secret", $my_public); var_dump(sodium_bin2hex($message)); $opened = sodium_crypto_box_seal_open($message, $my_secret . $my_public); var_dump($opened);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function sodium_hex2bin() in /in/Oak7j:3 Stack trace: #0 {main} thrown in /in/Oak7j on line 3
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:
32.26 ms | 405 KiB | 5 Q