3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json['AVAILABLE_ROLE']=array(); $json['asd']=""; $json['qwe']=array("IDHtmlCode"=>"25","inputHtmlCode"=>'as"d'); print_r((json_encode($json,SON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE))); ?>
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant SON_HEX_TAG - assumed 'SON_HEX_TAG' (this will throw an Error in a future version of PHP) in /in/jNtbE on line 7 Warning: A non-numeric value encountered in /in/jNtbE on line 7 {"AVAILABLE_ROLE":[],"asd":"","qwe":{"IDHtmlCode":"25","inputHtmlCode":"as\u0022d"}}
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant SON_HEX_TAG - assumed 'SON_HEX_TAG' in /in/jNtbE on line 7 Warning: A non-numeric value encountered in /in/jNtbE on line 7 {"AVAILABLE_ROLE":[],"asd":"","qwe":{"IDHtmlCode":"25","inputHtmlCode":"as\u0022d"}}
Output for 5.4.0 - 7.0.20
Notice: Use of undefined constant SON_HEX_TAG - assumed 'SON_HEX_TAG' in /in/jNtbE on line 7 {"AVAILABLE_ROLE":[],"asd":"","qwe":{"IDHtmlCode":"25","inputHtmlCode":"as\u0022d"}}
Output for 5.3.0 - 5.3.29
Notice: Use of undefined constant SON_HEX_TAG - assumed 'SON_HEX_TAG' in /in/jNtbE on line 7 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/jNtbE on line 7 {"AVAILABLE_ROLE":[],"asd":"","qwe":{"IDHtmlCode":"25","inputHtmlCode":"as\u0022d"}}