3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '{\&#34;part_no\&#34;:\&#34;CAT 0964747\&#34;,\&#34;qty\&#34;:\&#34;1\&#34;,\&#34;price\&#34;:\&#34;\&#34;,\&#34;discount\&#34;:\&#34;\&#34;,\&#34;net_price_each\&#34;:\&#34;\&#34;,\&#34;net_price_ext\&#34;:\&#34;\&#34;},{\&#34;part_no\&#34;:\&#34;CAT 1003133\&#34;,\&#34;qty\&#34;:\&#34;1\&#34;,\&#34;price\&#34;:\&#34;\&#34;,\&#34;discount\&#34;:\&#34;\&#34;,\&#34;net_price_each\&#34;:\&#34;\&#34;,\&#34;net_price_ext\&#34;:\&#34;\&#34;}'; var_dump(html_entity_decode($string));
based on pMf0p
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
string(247) "{\"part_no\":\"CAT 0964747\",\"qty\":\"1\",\"price\":\"\",\"discount\":\"\",\"net_price_each\":\"\",\"net_price_ext\":\"\"},{\"part_no\":\"CAT 1003133\",\"qty\":\"1\",\"price\":\"\",\"discount\":\"\",\"net_price_each\":\"\",\"net_price_ext\":\"\"}"