3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $content = '{"version":"0.6","status":"ok","sig":"1668510052","table":{"cols":[{"id":"date","label":"Date","type":"date","pattern":""},{"id":"query0","label":"bitcoin","type":"number","pattern":""}],"rows":[{"c":[{"v":new Date(2004,0,1),"f":"January 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,1,1),"f":"February 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,2,1),"f":"March 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,3,1),"f":"April 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,4,1),"f":"May 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,5,1),"f":"June 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,6,1),"f":"July 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,7,1),"f":"August 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,8,1),"f":"September 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,9,1),"f":"October 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,10,1),"f":"November 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2004,11,1),"f":"December 2004"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,0,1),"f":"January 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,1,1),"f":"February 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,2,1),"f":"March 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,3,1),"f":"April 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,4,1),"f":"May 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,5,1),"f":"June 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,6,1),"f":"July 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,7,1),"f":"August 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,8,1),"f":"September 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,9,1),"f":"October 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,10,1),"f":"November 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2005,11,1),"f":"December 2005"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,0,1),"f":"January 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,1,1),"f":"February 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,2,1),"f":"March 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,3,1),"f":"April 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,4,1),"f":"May 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,5,1),"f":"June 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,6,1),"f":"July 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,7,1),"f":"August 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,8,1),"f":"September 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,9,1),"f":"October 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,10,1),"f":"November 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2006,11,1),"f":"December 2006"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,0,1),"f":"January 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,1,1),"f":"February 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,2,1),"f":"March 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,3,1),"f":"April 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,4,1),"f":"May 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,5,1),"f":"June 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,6,1),"f":"July 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,7,1),"f":"August 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,8,1),"f":"September 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,9,1),"f":"October 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,10,1),"f":"November 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2007,11,1),"f":"December 2007"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,0,1),"f":"January 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,1,1),"f":"February 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,2,1),"f":"March 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,3,1),"f":"April 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,4,1),"f":"May 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,5,1),"f":"June 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,6,1),"f":"July 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,7,1),"f":"August 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,8,1),"f":"September 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,9,1),"f":"October 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,10,1),"f":"November 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2008,11,1),"f":"December 2008"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,0,1),"f":"January 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,1,1),"f":"February 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,2,1),"f":"March 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,3,1),"f":"April 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,4,1),"f":"May 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,5,1),"f":"June 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,6,1),"f":"July 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,7,1),"f":"August 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,8,1),"f":"September 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,9,1),"f":"October 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,10,1),"f":"November 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2009,11,1),"f":"December 2009"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,0,1),"f":"January 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,1,1),"f":"February 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,2,1),"f":"March 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,3,1),"f":"April 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,4,1),"f":"May 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,5,1),"f":"June 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,6,1),"f":"July 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,7,1),"f":"August 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,8,1),"f":"September 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,9,1),"f":"October 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,10,1),"f":"November 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2010,11,1),"f":"December 2010"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2011,0,1),"f":"January 2011"},{"v":0.0,"f":"0"}]},{"c":[{"v":new Date(2011,1,1),"f":"February 2011"},{"v":1.0,"f":"1"}]},{"c":[{"v":new Date(2011,2,1),"f":"March 2011"},{"v":1.0,"f":"1"}]},{"c":[{"v":new Date(2011,3,1),"f":"April 2011"},{"v":1.0,"f":"1"}]},{"c":[{"v":new Date(2011,4,1),"f":"May 2011"},{"v":7.0,"f":"7"}]},{"c":[{"v":new Date(2011,5,1),"f":"June 2011"},{"v":19.0,"f":"19"}]},{"c":[{"v":new Date(2011,6,1),"f":"July 2011"},{"v":9.0,"f":"9"}]},{"c":[{"v":new Date(2011,7,1),"f":"August 2011"},{"v":7.0,"f":"7"}]},{"c":[{"v":new Date(2011,8,1),"f":"September 2011"},{"v":6.0,"f":"6"}]},{"c":[{"v":new Date(2011,9,1),"f":"October 2011"},{"v":4.0,"f":"4"}]},{"c":[{"v":new Date(2011,10,1),"f":"November 2011"},{"v":3.0,"f":"3"}]},{"c":[{"v":new Date(2011,11,1),"f":"December 2011"},{"v":2.0,"f":"2"}]},{"c":[{"v":new Date(2012,0,1),"f":"January 2012"},{"v":4.0,"f":"4"}]},{"c":[{"v":new Date(2012,1,1),"f":"February 2012"},{"v":3.0,"f":"3"}]},{"c":[{"v":new Date(2012,2,1),"f":"March 2012"},{"v":3.0,"f":"3"}]},{"c":[{"v":new Date(2012,3,1),"f":"April 2012"},{"v":3.0,"f":"3"}]},{"c":[{"v":new Date(2012,4,1),"f":"May 2012"},{"v":3.0,"f":"3"}]},{"c":[{"v":new Date(2012,5,1),"f":"June 2012"},{"v":3.0,"f":"3"}]},{"c":[{"v":new Date(2012,6,1),"f":"July 2012"},{"v":3.0,"f":"3"}]},{"c":[{"v":new Date(2012,7,1),"f":"August 2012"},{"v":4.0,"f":"4"}]},{"c":[{"v":new Date(2012,8,1),"f":"September 2012"},{"v":5.0,"f":"5"}]},{"c":[{"v":new Date(2012,9,1),"f":"October 2012"},{"v":4.0,"f":"4"}]},{"c":[{"v":new Date(2012,10,1),"f":"November 2012"},{"v":4.0,"f":"4"}]},{"c":[{"v":new Date(2012,11,1),"f":"December 2012"},{"v":5.0,"f":"5"}]},{"c":[{"v":new Date(2013,0,1),"f":"January 2013"},{"v":5.0,"f":"5"}]},{"c":[{"v":new Date(2013,1,1),"f":"February 2013"},{"v":8.0,"f":"8"}]},{"c":[{"v":new Date(2013,2,1),"f":"March 2013"},{"v":21.0,"f":"21"}]},{"c":[{"v":new Date(2013,3,1),"f":"April 2013"},{"v":61.0,"f":"61"}]},{"c":[{"v":new Date(2013,4,1),"f":"May 2013"},{"v":23.0,"f":"23"}]},{"c":[{"v":new Date(2013,5,1),"f":"June 2013"},{"v":16.0,"f":"16"}]},{"c":[{"v":new Date(2013,6,1),"f":"July 2013"},{"v":15.0,"f":"15"}]},{"c":[{"v":new Date(2013,7,1),"f":"August 2013"},{"v":16.0,"f":"16"}]},{"c":[{"v":new Date(2013,8,1),"f":"September 2013"},{"v":13.0,"f":"13"}]},{"c":[{"v":new Date(2013,9,1),"f":"October 2013"},{"v":25.0,"f":"25"}]},{"c":[{"v":new Date(2013,10,1),"f":"November 2013"},{"v":87.0,"f":"87"}]},{"c":[{"v":new Date(2013,11,1),"f":"December 2013"},{"v":100.0,"f":"100"}]},{"c":[{"v":new Date(2014,0,1),"f":"January 2014"},{"v":64.0,"f":"64"}]},{"c":[{"v":new Date(2014,1,1),"f":"February 2014"},{"v":72.0,"f":"72"}]},{"c":[{"v":new Date(2014,2,1),"f":"March 2014"},{"v":54.0,"f":"54"}]},{"c":[{"v":new Date(2014,3,1),"f":"April 2014"},{"v":30.0,"f":"30"}]},{"c":[{"v":new Date(2014,4,1),"f":"May 2014"},{"v":25.0,"f":"25"}]},{"c":[{"v":new Date(2014,5,1),"f":"June 2014"},{"v":24.0,"f":"24"}]},{"c":[{"v":new Date(2014,6,1),"f":"July 2014"},{"v":21.0,"f":"21"}]},{"c":[{"v":new Date(2014,7,1),"f":"August 2014"},{"v":22.0,"f":"22"}]},{"c":[{"v":new Date(2014,8,1),"f":"September 2014"},{"v":23.0,"f":"23"}]},{"c":[{"v":new Date(2014,9,1),"f":"October 2014"},{"v":26.0,"f":"26"}]}]}}'; echo JSON_ENCODE(JSON_DECODE($content),JSON_PRETTY_PRINT);
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
null
Output for 5.3.0 - 5.3.29
Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/5hGiA on line 4 Warning: json_encode() expects parameter 2 to be long, string given in /in/5hGiA on line 4
Output for 5.2.0 - 5.2.17
Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/5hGiA on line 4 Warning: json_encode() expects exactly 1 parameter, 2 given in /in/5hGiA on line 4
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function JSON_ENCODE() in /in/5hGiA on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/5hGiA on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/5hGiA on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/5hGiA on line 4