3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getExpectedCiphertextSize(int $sizeOfInput) : int { $padding = ($sizeOfInput % 16); if ($padding === 0) { // PKCS7 $padding += 16; } return 16 // IV + 32 // HMAC-SHA-256 + $sizeOfInput + $padding; } var_dump(getExpectedCiphertextSize(100));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aZmJO
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     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
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/aZmJO
function name:  getExpectedCiphertextSize
number of ops:  12
compiled vars:  !0 = $sizeOfInput, !1 = $padding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        MOD                                              ~2      !0, 16
          2        ASSIGN                                                   !1, ~2
    6     3        IS_IDENTICAL                                             !1, 0
          4      > JMPZ                                                     ~4, ->6
    7     5    >   ASSIGN_OP                                     1          !1, 16
   11     6    >   ADD                                              ~6      48, !0
   12     7        ADD                                              ~7      ~6, !1
          8        VERIFY_RETURN_TYPE                                       ~7
          9      > RETURN                                                   ~7
   13    10*       VERIFY_RETURN_TYPE                                       
         11*     > RETURN                                                   null

End of function getexpectedciphertextsize

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.87 ms | 1397 KiB | 16 Q