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'] = utf8_encode($encrypted); print_r($result_arr); echo 'authCallback(' . json_encode( $result_arr, JSON_UNESCAPED_UNICODE ) . ')';

preferences:
40.47 ms | 402 KiB | 5 Q