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 = 'zB4nMZZjjEUZPsCDo5YgoFiYsXFHpdfImGiybqT6MwgshCDnt/IVzQ19vY1X9l2GyP/V1NcYQf2XlLjYrTtEZg=='; $public_key = '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/p1UVL
function name:  (null)
number of ops:  21
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        ASSIGN                                                   !1, 'zB4nMZZjjEUZPsCDo5YgoFiYsXFHpdfImGiybqT6MwgshCDnt%2FIVzQ19vY1X9l2GyP%2FV1NcYQf2XlLjYrTtEZg%3D%3D'
   11    14        ASSIGN                                                   !2, 'LIQg57fyFc0Nfb2NV%2FZdhsj%2F1dTXGEH9l5S42K07RGY%3D'
   13    15        INIT_FCALL_BY_NAME                                       'sodium_crypto_sign_detached'
         16        SEND_VAR_EX                                              !0
         17        SEND_VAR_EX                                              !1
         18        DO_FCALL                                      0  $10     
         19        ASSIGN                                                   !3, $10
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.57 ms | 1399 KiB | 20 Q