3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $strDemo = "%s,签到\n签到时间,%s\n贴心提示:%d"; $strMsg = sprintf($strDemo, '2', '3', 3); $strMsg = base64_encode($strMsg); $strRet = '{"msg":' . $strMsg . '}'; echo $strRet; var_dump(json_decode($strRet));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
{"msg":Miznrb7liLAK562+5Yiw5pe26Ze077yMMwrotLTlv4Pmj5DnpLo6Mw==}NULL
Output for 5.0.0 - 5.1.6
{"msg":Miznrb7liLAK562+5Yiw5pe26Ze077yMMwrotLTlv4Pmj5DnpLo6Mw==} Fatal error: Call to undefined function json_decode() in /in/louiP on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
{"msg":Miznrb7liLAK562+5Yiw5pe26Ze077yMMwrotLTlv4Pmj5DnpLo6Mw==} Fatal error: Call to undefined function: json_decode() in /in/louiP on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
{"msg":Miznrb7liLAK562+5Yiw5pe26Ze077yMMwrotLTlv4Pmj5DnpLo6Mw==} Fatal error: Call to undefined function: json_decode() in /in/louiP on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
{"msg":Miznrb7liLAK562+5Yiw5pe26Ze077yMMwrotLTlv4Pmj5DnpLo6Mw==} Fatal error: Call to undefined function: json_decode() in /in/louiP on line 7