3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array("user_src"=>17, "chat_id"=>2); echo json_encode(arr);
Output for 7.2.0
Warning: Use of undefined constant arr - assumed 'arr' (this will throw an Error in a future version of PHP) in /in/NpY2R on line 3 "arr"
Output for 5.4.0 - 7.1.10
Notice: Use of undefined constant arr - assumed 'arr' in /in/NpY2R on line 3 "arr"