3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result_arr['logged_in'] = true; $key = 'SuperSecretKey'; $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, 'I want to encrypt this', MCRYPT_MODE_ECB); $result_arr['payload'] = $encrypted; print_r($result_arr); echo 'authCallback(' . json_encode( $result_arr, JSON_UNESCAPED_UNICODE ) . ')';

preferences:
52.25 ms | 402 KiB | 5 Q