3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getExpectedCiphertextSize(int $sizeOfInput) : int { return 4 // Version tag + 16 // IV + 16 // HKDF Salt + 32 // HMAC-SHA-256 + $sizeOfInput; } var_dump(getExpectedCiphertextSize(100));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ovfh4
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'getexpectedciphertextsize'
          2        SEND_VAL                                                 100
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function getexpectedciphertextsize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ovfh4
function name:  getExpectedCiphertextSize
number of ops:  6
compiled vars:  !0 = $sizeOfInput
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    9     1        ADD                                              ~1      68, !0
          2        VERIFY_RETURN_TYPE                                       ~1
          3      > RETURN                                                   ~1
   10     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function getexpectedciphertextsize

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.83 ms | 1388 KiB | 16 Q