3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(extension_loaded('sodium')) { echo "libsodium is present.\n"; } printf("Opcache is %s.\n", ini_get('opcache.enable')); $super_important_data = 'The quick brown fox jumps over the lazy dog\'s back.'; $private_key = base64_decode('zB4nMZZjjEUZPsCDo5YgoFiYsXFHpdfImGiybqT6MwgshCDnt/IVzQ19vY1X9l2GyP/V1NcYQf2XlLjYrTtEZg=='); $public_key = base64_decode('LIQg57fyFc0Nfb2NV/Zdhsj/1dTXGEH9l5S42K07RGY='); $super_important_signature = sodium_crypto_sign_detached($super_important_data, $private_key);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/Lh5sQ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $super_important_data, !1 = $private_key, !2 = $public_key, !3 = $super_important_signature
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'extension_loaded'
          1        SEND_VAL                                                 'sodium'
          2        DO_ICALL                                         $4      
          3      > JMPZ                                                     $4, ->5
    4     4    >   ECHO                                                     'libsodium+is+present.%0A'
    7     5    >   INIT_FCALL                                               'printf'
          6        SEND_VAL                                                 'Opcache+is+%25s.%0A'
          7        INIT_FCALL                                               'ini_get'
          8        SEND_VAL                                                 'opcache.enable'
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    9    12        ASSIGN                                                   !0, 'The+quick+brown+fox+jumps+over+the+lazy+dog%27s+back.'
   10    13        INIT_FCALL                                               'base64_decode'
         14        SEND_VAL                                                 'zB4nMZZjjEUZPsCDo5YgoFiYsXFHpdfImGiybqT6MwgshCDnt%2FIVzQ19vY1X9l2GyP%2FV1NcYQf2XlLjYrTtEZg%3D%3D'
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !1, $8
   11    17        INIT_FCALL                                               'base64_decode'
         18        SEND_VAL                                                 'LIQg57fyFc0Nfb2NV%2FZdhsj%2F1dTXGEH9l5S42K07RGY%3D'
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !2, $10
   13    21        INIT_FCALL_BY_NAME                                       'sodium_crypto_sign_detached'
         22        SEND_VAR_EX                                              !0
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0  $12     
         25        ASSIGN                                                   !3, $12
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
214.46 ms | 1396 KiB | 21 Q