3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stuff = '{ "input": { "is_tall": [ "BOOLEAN", false ], "profile": { "fav_color": [ "STRING", true ], "sport": [ "STRING", true ] }, "awesome": "BOOLEAN" } }'; $what = json_decode($stuff); //var_dump($what); echo "is is_tall an array???<br>"; echo is_array($what->input->is_tall)."<br><br>"; echo "is profile an array???<br>"; echo is_array($what->input->profile)."<br><br>";
Output for 5.2.0 - 7.1.0
is is_tall an array???<br>1<br><br>is profile an array???<br><br><br>
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/WHeBt on line 23
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/WHeBt on line 23
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/WHeBt on line 23
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/WHeBt on line 23