3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keypair = sodium_crypto_sign_keypair(); $secret = sodium_crypto_sign_secretkey($keypair); $public = sodium_crypto_sign_publickey($keypair); var_dump( mb_strlen($secret, '8bit'), sodium_bin2hex($secret), sodium_bin2hex($public) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o1RnD
function name:  (null)
number of ops:  27
compiled vars:  !0 = $keypair, !1 = $secret, !2 = $public
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'sodium_crypto_sign_keypair'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
    4     3        INIT_FCALL_BY_NAME                                       'sodium_crypto_sign_secretkey'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
    5     7        INIT_FCALL_BY_NAME                                       'sodium_crypto_sign_publickey'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !2, $7
    7    11        INIT_FCALL                                               'var_dump'
    8    12        INIT_FCALL                                               'mb_strlen'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 '8bit'
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
    9    17        INIT_FCALL_BY_NAME                                       'sodium_bin2hex'
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $10     
         20        SEND_VAR                                                 $10
   10    21        INIT_FCALL_BY_NAME                                       'sodium_bin2hex'
         22        SEND_VAR_EX                                              !2
         23        DO_FCALL                                      0  $11     
         24        SEND_VAR                                                 $11
    7    25        DO_ICALL                                                 
   11    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.65 ms | 1427 KiB | 15 Q