3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '{ "cols": [{"id":"","label":"Option","pattern":"","type":"string"}, {"id":"","label":"Vote","pattern":"","type":"number"}], "rows": [{"c":[{"v":"Excited","f":null},{"v":'.$value1.',"f":null}]}, {"c":[{"v":"Bored","f":null},{"v":'.$value2.',"f":null}]}, {"c":[{"v":"Neutral","f":null},{"v":'.$value3.',"f":null}]}]}'; echo json_decode($a, true);
Output for 5.2.0 - 7.2.0
Notice: Undefined variable: value1 in /in/mPsLL on line 7 Notice: Undefined variable: value2 in /in/mPsLL on line 8 Notice: Undefined variable: value3 in /in/mPsLL on line 9
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: value1 in /in/mPsLL on line 7 Notice: Undefined variable: value2 in /in/mPsLL on line 8 Notice: Undefined variable: value3 in /in/mPsLL on line 9 Fatal error: Call to undefined function json_decode() in /in/mPsLL on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: value1 in /in/mPsLL on line 7 Notice: Undefined variable: value2 in /in/mPsLL on line 8 Notice: Undefined variable: value3 in /in/mPsLL on line 9 Fatal error: Call to undefined function json_decode() in /in/mPsLL on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: value1 in /in/mPsLL on line 7 Notice: Undefined variable: value2 in /in/mPsLL on line 8 Notice: Undefined variable: value3 in /in/mPsLL on line 9 Fatal error: Call to undefined function: json_decode() in /in/mPsLL on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: value1 in /in/mPsLL on line 7 Notice: Undefined variable: value2 in /in/mPsLL on line 8 Notice: Undefined variable: value3 in /in/mPsLL on line 9 Fatal error: Call to undefined function: json_decode() in /in/mPsLL on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: value1 in /in/mPsLL on line 7 Notice: Undefined variable: value2 in /in/mPsLL on line 8 Notice: Undefined variable: value3 in /in/mPsLL on line 9 Fatal error: Call to undefined function: json_decode() in /in/mPsLL on line 11