3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret_key = sodium_hex2bin( '70637679b45ba313a122e63f12b3a557a01be9c0519fc8d08bb98f3633134e66' . '812540a01852c7e582021d253c1ecee35e948e294befe19ccf1cdbafa6266260' ); $public_key = sodium_hex2bin( '812540a01852c7e582021d253c1ecee35e948e294befe19ccf1cdbafa6266260' ); $message = 'Soatok is a gay/demi dhole furry <3'; $signature = sodium_crypto_sign_detached($message, $secret_key); var_dump(sodium_bin2hex($signature)); var_dump(sodium_crypto_sign_verify_detached($signature, $message, $public_key));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lKrJb
function name:  (null)
number of ops:  29
compiled vars:  !0 = $secret_key, !1 = $public_key, !2 = $message, !3 = $signature
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'sodium_hex2bin'
    4     1        SEND_VAL_EX                                              '70637679b45ba313a122e63f12b3a557a01be9c0519fc8d08bb98f3633134e66812540a01852c7e582021d253c1ecee35e948e294befe19ccf1cdbafa6266260'
          2        DO_FCALL                                      0  $4      
    2     3        ASSIGN                                                   !0, $4
    6     4        INIT_FCALL_BY_NAME                                       'sodium_hex2bin'
    7     5        SEND_VAL_EX                                              '812540a01852c7e582021d253c1ecee35e948e294befe19ccf1cdbafa6266260'
          6        DO_FCALL                                      0  $6      
    6     7        ASSIGN                                                   !1, $6
    9     8        ASSIGN                                                   !2, 'Soatok+is+a+gay%2Fdemi+dhole+furry+%3C3'
   11     9        INIT_FCALL_BY_NAME                                       'sodium_crypto_sign_detached'
         10        SEND_VAR_EX                                              !2
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $9      
         13        ASSIGN                                                   !3, $9
   12    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL_BY_NAME                                       'sodium_bin2hex'
         16        SEND_VAR_EX                                              !3
         17        DO_FCALL                                      0  $11     
         18        SEND_VAR                                                 $11
         19        DO_ICALL                                                 
   13    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL_BY_NAME                                       'sodium_crypto_sign_verify_detached'
         22        SEND_VAR_EX                                              !3
         23        SEND_VAR_EX                                              !2
         24        SEND_VAR_EX                                              !1
         25        DO_FCALL                                      0  $13     
         26        SEND_VAR                                                 $13
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.23 ms | 1396 KiB | 15 Q