3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(json_decode('[{"label":"Select Model:","name":"model","options":[{"text":"Axon","value":"6"},{"text":"Auron","value":"7"},{"text":"RUX","value":"8"},{"text":"Durolux","value":"9"},{"text":"Epicon","value":"10"},{"text":"Raidon","value":"11"},{"text":"XCR 32mm","value":"12"},{"text":"XCR 30mm","value":"13"},{"text":"XCM","value":"14"},{"text":"XCT","value":"15"},{"text":"M3030","value":"16"},{"text":"M3020","value":"17"},{"text":"M3010","value":"18"},{"text":"M2025","value":"19"},{"text":"NRX","value":"20"},{"text":"NVX","value":"21"},{"text":"NCX","value":"22"},{"text":"NEX","value":"23"},{"text":"CR9","value":"24"}]},{"label":"Select Diagnosis:","name":"diagnosis","options":[{"text":"Lockout Not Functioning","value":"238"},{"text":"Fork Makes Noise","value":"239"},{"text":"Horizontal Movement In Lower Casting","value":"240"},{"text":"Will Not Compress","value":"241"},{"text":"Dropouts Not Aligned","value":"242"},{"text":"Rebound Not Functioning","value":"243"},{"text":"Air Loss","value":"244"},{"text":"Cover Missing","value":"245"},{"text":"Lockout Missing","value":"246"},{"text":"Disc Tab Thread Damaged\/Missing","value":"247"},{"text":"Crack In Crown","value":"248"},{"text":"Oil Leaking","value":"249"},{"text":"Other","value":"250"}]}]'));
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.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Array ( [0] => stdClass Object ( [label] => Select Model: [name] => model [options] => Array ( [0] => stdClass Object ( [text] => Axon [value] => 6 ) [1] => stdClass Object ( [text] => Auron [value] => 7 ) [2] => stdClass Object ( [text] => RUX [value] => 8 ) [3] => stdClass Object ( [text] => Durolux [value] => 9 ) [4] => stdClass Object ( [text] => Epicon [value] => 10 ) [5] => stdClass Object ( [text] => Raidon [value] => 11 ) [6] => stdClass Object ( [text] => XCR 32mm [value] => 12 ) [7] => stdClass Object ( [text] => XCR 30mm [value] => 13 ) [8] => stdClass Object ( [text] => XCM [value] => 14 ) [9] => stdClass Object ( [text] => XCT [value] => 15 ) [10] => stdClass Object ( [text] => M3030 [value] => 16 ) [11] => stdClass Object ( [text] => M3020 [value] => 17 ) [12] => stdClass Object ( [text] => M3010 [value] => 18 ) [13] => stdClass Object ( [text] => M2025 [value] => 19 ) [14] => stdClass Object ( [text] => NRX [value] => 20 ) [15] => stdClass Object ( [text] => NVX [value] => 21 ) [16] => stdClass Object ( [text] => NCX [value] => 22 ) [17] => stdClass Object ( [text] => NEX [value] => 23 ) [18] => stdClass Object ( [text] => CR9 [value] => 24 ) ) ) [1] => stdClass Object ( [label] => Select Diagnosis: [name] => diagnosis [options] => Array ( [0] => stdClass Object ( [text] => Lockout Not Functioning [value] => 238 ) [1] => stdClass Object ( [text] => Fork Makes Noise [value] => 239 ) [2] => stdClass Object ( [text] => Horizontal Movement In Lower Casting [value] => 240 ) [3] => stdClass Object ( [text] => Will Not Compress [value] => 241 ) [4] => stdClass Object ( [text] => Dropouts Not Aligned [value] => 242 ) [5] => stdClass Object ( [text] => Rebound Not Functioning [value] => 243 ) [6] => stdClass Object ( [text] => Air Loss [value] => 244 ) [7] => stdClass Object ( [text] => Cover Missing [value] => 245 ) [8] => stdClass Object ( [text] => Lockout Missing [value] => 246 ) [9] => stdClass Object ( [text] => Disc Tab Thread Damaged/Missing [value] => 247 ) [10] => stdClass Object ( [text] => Crack In Crown [value] => 248 ) [11] => stdClass Object ( [text] => Oil Leaking [value] => 249 ) [12] => stdClass Object ( [text] => Other [value] => 250 ) ) ) )
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/10d7W 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/10d7W 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/10d7W 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/10d7W on line 2

preferences:
375.94 ms | 401 KiB | 456 Q