3v4l.org

run code in 300+ PHP versions simultaneously
<?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"}]}]'));
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Array ( [0] => stdClass Object ( [label] => Chainring Size [name] => chainring-size [options] => Array ( [0] => stdClass Object ( [text] => 42/32/22 [value] => 187 ) [1] => stdClass Object ( [text] => 42/34/24 [value] => 188 ) [2] => stdClass Object ( [text] => 48/38/28 [value] => 189 ) ) ) [1] => stdClass Object ( [label] => Feature [name] => feature [options] => Array ( [0] => stdClass Object ( [text] => Square Taper [value] => 190 ) ) ) [2] => stdClass Object ( [label] => Crank Arm Length [name] => crank-arm-length [options] => Array ( [0] => stdClass Object ( [text] => 175 [value] => 191 ) [1] => stdClass Object ( [text] => 170 [value] => 192 ) ) ) [3] => stdClass Object ( [label] => Color [name] => color [options] => Array ( [0] => stdClass Object ( [text] => Black [value] => 193 ) [1] => stdClass Object ( [text] => Silver [value] => 194 ) [2] => stdClass Object ( [text] => Other [value] => 195 ) ) ) )
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/Wma5p 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/Wma5p on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/Wma5p 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/Wma5p on line 2

preferences:
283.25 ms | 401 KiB | 460 Q