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));

preferences:
42.16 ms | 402 KiB | 5 Q