3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(json_decode('[{"label":"Chainring Size","name":"chainring-size","options":[{"text":"42\/32\/22","value":"187"},{"text":"42\/34\/24","value":"188"},{"text":"48\/38\/28","value":"189"}]},{"label":"Feature","name":"feature","options":[{"text":"Square Taper","value":"190"}]},{"label":"Crank Arm Length","name":"crank-arm-length","options":[{"text":"175","value":"191"},{"text":"170","value":"192"}]},{"label":"Color","name":"color","options":[{"text":"Black","value":"193"},{"text":"Silver","value":"194"},{"text":"Other","value":"195"}]}]', true));
Output for 5.2.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [label] => Chainring Size [name] => chainring-size [options] => Array ( [0] => Array ( [text] => 42/32/22 [value] => 187 ) [1] => Array ( [text] => 42/34/24 [value] => 188 ) [2] => Array ( [text] => 48/38/28 [value] => 189 ) ) ) [1] => Array ( [label] => Feature [name] => feature [options] => Array ( [0] => Array ( [text] => Square Taper [value] => 190 ) ) ) [2] => Array ( [label] => Crank Arm Length [name] => crank-arm-length [options] => Array ( [0] => Array ( [text] => 175 [value] => 191 ) [1] => Array ( [text] => 170 [value] => 192 ) ) ) [3] => Array ( [label] => Color [name] => color [options] => Array ( [0] => Array ( [text] => Black [value] => 193 ) [1] => Array ( [text] => Silver [value] => 194 ) [2] => Array ( [text] => Other [value] => 195 ) ) ) )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/PrCYi on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/PrCYi on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/PrCYi on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/PrCYi on line 2