3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $jsonString = '[{"id":"1","url":"https:\/\/someurl.com\/","starttime":"2010-11-30 16:14:12","finishtime":"2011-09-11 11:32:31","aborted":"0"},{"id":"2","starturl":"http:\/\/someurl.com\/","starttime":"2010-11-30 16:14:12","finishtime":"2013-10-15 14:49:16","aborted":"0"},{"id":"5","starturl":"https:\/\/someurl.com\/","starttime":"2010-11-30 16:14:12","finishtime":"2013-10-17 04:15:58","aborted":"0"}]'; $decodedJson = json_decode($jsonString); var_dump($decodedJson);
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> object(stdClass)#1 (5) { ["id"]=> string(1) "1" ["url"]=> string(20) "https://someurl.com/" ["starttime"]=> string(19) "2010-11-30 16:14:12" ["finishtime"]=> string(19) "2011-09-11 11:32:31" ["aborted"]=> string(1) "0" } [1]=> object(stdClass)#2 (5) { ["id"]=> string(1) "2" ["starturl"]=> string(19) "http://someurl.com/" ["starttime"]=> string(19) "2010-11-30 16:14:12" ["finishtime"]=> string(19) "2013-10-15 14:49:16" ["aborted"]=> string(1) "0" } [2]=> object(stdClass)#3 (5) { ["id"]=> string(1) "5" ["starturl"]=> string(20) "https://someurl.com/" ["starttime"]=> string(19) "2010-11-30 16:14:12" ["finishtime"]=> string(19) "2013-10-17 04:15:58" ["aborted"]=> string(1) "0" } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/1rt2j on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/1rt2j on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/1rt2j on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/1rt2j on line 5