3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(openssl_encrypt('data', 'aes-256-ccm', 'password', 0, '1234567', $tag));
Output for 7.1.20 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/5Vdo3:3 Stack trace: #0 {main} thrown in /in/5Vdo3 on line 3
Process exited with code 255.
Output for 7.1.0 - 7.1.7
string(8) "F8irEQ=="
Output for 7.0.0 - 7.0.20
Notice: Undefined variable: tag in /in/5Vdo3 on line 3 Warning: openssl_encrypt() expects at most 5 parameters, 6 given in /in/5Vdo3 on line 3 NULL

preferences:
152.14 ms | 408 KiB | 5 Q