3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('{"7":[{"label":"x small (uk 6-8)","attribute_id":"176","value_index":"79","is_percent":0,"pricing_value":""}],"8":[{"label":"small (uk 8-10)","attribute_id":"176","value_index":"80","is_percent":0,"pricing_value":""}],"9":[{"label":"x large (uk 14-16)","attribute_id":"176","value_index":"81","is_percent":0,"pricing_value":""}],"10":[{"label":"xx large (uk16-18)","attribute_id":"176","value_index":"82","is_percent":0,"pricing_value":""}],"11":[{"label":"large (uk 12-14)","attribute_id":"176","value_index":"83","is_percent":0,"pricing_value":""}],"12":[{"label":"medium (uk 10-12)","attribute_id":"176","value_index":"84","is_percent":0,"pricing_value":""}]}', true));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(6) { [7]=> array(1) { [0]=> array(5) { ["label"]=> string(16) "x small (uk 6-8)" ["attribute_id"]=> string(3) "176" ["value_index"]=> string(2) "79" ["is_percent"]=> int(0) ["pricing_value"]=> string(0) "" } } [8]=> array(1) { [0]=> array(5) { ["label"]=> string(15) "small (uk 8-10)" ["attribute_id"]=> string(3) "176" ["value_index"]=> string(2) "80" ["is_percent"]=> int(0) ["pricing_value"]=> string(0) "" } } [9]=> array(1) { [0]=> array(5) { ["label"]=> string(18) "x large (uk 14-16)" ["attribute_id"]=> string(3) "176" ["value_index"]=> string(2) "81" ["is_percent"]=> int(0) ["pricing_value"]=> string(0) "" } } [10]=> array(1) { [0]=> array(5) { ["label"]=> string(18) "xx large (uk16-18)" ["attribute_id"]=> string(3) "176" ["value_index"]=> string(2) "82" ["is_percent"]=> int(0) ["pricing_value"]=> string(0) "" } } [11]=> array(1) { [0]=> array(5) { ["label"]=> string(16) "large (uk 12-14)" ["attribute_id"]=> string(3) "176" ["value_index"]=> string(2) "83" ["is_percent"]=> int(0) ["pricing_value"]=> string(0) "" } } [12]=> array(1) { [0]=> array(5) { ["label"]=> string(17) "medium (uk 10-12)" ["attribute_id"]=> string(3) "176" ["value_index"]=> string(2) "84" ["is_percent"]=> int(0) ["pricing_value"]=> string(0) "" } } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/4Z6d8 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/4Z6d8 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/4Z6d8 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/4Z6d8 on line 3