3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string == '{"actAsFeed":null,"context":null,"currentPage":1,"entries":[{"content":null,"entryUri":null,"facets":[],"id":"outputFormat=json&q=source%3Afeed3dcc","image":null,"infos":{},"metas":{"q":{"displayName":"q","highlightIntervals":null,"name":"q","values":[{"highlight":null,"highlightIntervals":null,"value":"source:feed3dcc"}]},"outputFormat":{"displayName":"outputFormat","highlightIntervals":null,"name":"outputFormat","values":[{"highlight":null,"highlightIntervals":null,"value":"json"}]}},"subfeeds":[{"actAsFeed":null,"context":null,"currentPage":1,"entries":[],"error":{"cause":null,"localizedMessage":null,"message":null,"ourStackTrace":[],"stackTrace":[],"stackTraceDepth":0,"suppressed":[]},"facets":[],"feedUri":null,"generator":"com.exalead.access.basefeeds.CloudviewFeed","id":"general","infos":{},"itemsPerPage":0,"lastPage":0,"query":null,"spellCheckSuggestions":[],"startIndex":0,"totalEntries":0,"totalResults":0},{"actAsFeed":null,"context":"","currentPage":1,"entries":[],"error":null,"facets":[],"feedUri":null,"generator":"com.exalead.access.basefeeds.CloudviewFeed","id":"cloudview","infos":{"last":"0","start":"0","estimated":"false","nhits":"0","autocorrected":"false","ellql":"#query{nbdocs=29013, score.expr=\"@term.score*@proximity+@b\", proximity.maxDistance=1, term.score=RANK_TFIDF}(#and(#and(#category(categories,\"Top\/source\/feed3dcc\") #and(#opt(#category{b=-14000}(categories,\"Top\/source\/spr\")) #opt(#category{b=-14000}(categories,\"Top\/source\/3dccparts\")) ) ) #category(categories,\"Top\/language\/en\") ))","context":"applicationId%3Ddefault%26b%3D0%26hf%3D10%26l%3Den%26of%3Dflea%26origin%3Dmashupapi.default.search%26q%3Dsource%253Afeed3dcc%2B%2528OPT%2Bsource%253Aspr%257Bb%253D-14000%257D%2B%2BOPT%2Bsource%253A3dccparts%257Bb%253D-14000%257D%2B%2529%26q.feed_restriction%3Dlanguage%253Aen%26stagingMode%3Dfalse","searchAPIUrl":"of=flea&b=0&q=source%3Afeed3dcc+%28OPT+source%3Aspr%7Bb%3D-14000%7D++OPT+source%3A3dccparts%7Bb%3D-14000%7D+%29&origin=mashupapi.default.search&applicationId=default&hf=10&l=en&debug=all&q.feed_restriction=language%3Aen&stagingMode=false","lang":"en","queryASTJson":"{\"id\":\"n-1-0\",\"data\":{\"docId\":-1,\"type\":\"FALSE\",\"estCount\":0,\"nContributed\":0},\"children\":[]}","nmatches":"0"},"itemsPerPage":10,"lastPage":0,"query":"source:feed3dcc (OPT source:spr{b=-14000} OPT source:3dccparts{b=-14000} )","spellCheckSuggestions":[],"startIndex":0,"totalEntries":0,"totalResults":0},{"actAsFeed":null,"context":"","currentPage":1,"entries":[],"error":null,"facets":[],"feedUri":null,"generator":"com.exalead.access.basefeeds.CloudviewFeed","id":"post","infos":{"last":"0","start":"0","estimated":"false","nhits":"0","autocorrected":"false","ellql":"#query{nbdocs=29013, score.expr=\"@term.score*@proximity+@b\", proximity.maxDistance=1, term.score=RANK_TFIDF}(#and(#false() #or(#category(categories,\"Top\/source\/3dccparts\") #category(categories,\"Top\/source\/twittest\") #category(categories,\"Top\/source\/forumthreads\") ) ))","context":"applicationId%3Ddefault%26b%3D0%26eq%3D%2523false%26hf%3D4%26l%3Den%26limits%3Dmax_fetched_hits_per_slice%253A1000%26of%3Dflea%26origin%3Dmashupapi.default.search%26q%3D%2528source%253A3dccparts%2BOR%2Bsource%253Atwittest%2529%26q.restriction%3D%2528source%253A3dccparts%2BOR%2Bsource%253Atwittest%2BOR%2Bsource%253Aforumthreads%2529%26stagingMode%3Dfalse","searchAPIUrl":"limits=max_fetched_hits_per_slice%3A1000&of=flea&b=0&q=%28source%3A3dccparts+OR+source%3Atwittest%29&q.restriction=%28source%3A3dccparts+OR+source%3Atwittest+OR+source%3Aforumthreads%29&origin=mashupapi.default.search&applicationId=default&hf=4&l=en&debug=all&stagingMode=false&eq=%23false","lang":"en","queryASTJson":"{\"id\":\"n-1-0\",\"data\":{\"docId\":-1,\"type\":\"FALSE\",\"estCount\":0,\"nContributed\":0},\"children\":[]}","nmatches":"0"},"itemsPerPage":4,"lastPage":0,"query":"(source:3dccparts OR source:twittest)","spellCheckSuggestions":[],"startIndex":0,"totalEntries":0,"totalResults":0},{"actAsFeed":null,"context":"","currentPage":1,"entries":[],"error":null,"facets":[],"feedUri":null,"generator":"com.exalead.access.basefeeds.CloudviewFeed","id":"test","infos":{"last":"0","start":"0","estimated":"false","nhits":"0","autocorrected":"false","ellql":"#query{nbdocs=29013, score.expr=\"@term.score*@proximity+@b\", proximity.maxDistance=1, term.score=RANK_TFIDF}(#and(#false() #or(#category(categories,\"Top\/source\/swyoutube\") #category(categories,\"Top\/source\/wpressblogs\") #category(categories,\"Top\/source\/lessons\") ) ))","context":"applicationId%3Ddefault%26b%3D0%26eq%3D%2523false%26hf%3D6%26l%3Den%26limits%3Dmax_fetched_hits_per_slice%253A10000%26of%3Dflea%26origin%3Dmashupapi.default.search%26q%3D%2528source%253Aswyoutube%2BOR%2Bsource%253Awpressblogs%2BOR%2Bsource%253Alessons%2529%26q.restriction%3D%2528source%253Aswyoutube%2BOR%2Bsource%253Awpressblogs%2BOR%2Bsource%253Alessons%2529%26stagingMode%3Dfalse","searchAPIUrl":"limits=max_fetched_hits_per_slice%3A10000&of=flea&b=0&q=%28source%3Aswyoutube+OR+source%3Awpressblogs+OR+source%3Alessons%29&q.restriction=%28source%3Aswyoutube+OR+source%3Awpressblogs+OR+source%3Alessons%29&origin=mashupapi.default.search&applicationId=default&hf=6&l=en&debug=all&stagingMode=false&eq=%23false","lang":"en","queryASTJson":"{\"id\":\"n-1-0\",\"data\":{\"docId\":-1,\"type\":\"FALSE\",\"estCount\":0,\"nContributed\":0},\"children\":[]}","nmatches":"0"},"itemsPerPage":6,"lastPage":0,"query":"(source:swyoutube OR source:wpressblogs OR source:lessons)","spellCheckSuggestions":[],"startIndex":0,"totalEntries":0,"totalResults":0}],"title":null,"uris":[]}],"error":null,"facets":[],"feedUri":null,"generator":"com.exalead.access.basefeeds.PageFeed","id":"search","infos":{},"itemsPerPage":0,"lastPage":0,"query":null,"spellCheckSuggestions":[],"startIndex":0,"totalEntries":0,"totalResults":0}'; $decoded = json_decode($string); var_dump($decoded);
based on SIS1p
Output for 5.2.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: string in /in/iLZ7Y on line 2 Notice: Undefined variable: string in /in/iLZ7Y on line 4 NULL
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: string in /in/iLZ7Y on line 2 Fatal error: Call to undefined function json_decode() in /in/iLZ7Y on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: string in /in/iLZ7Y on line 2 Fatal error: Call to undefined function json_decode() in /in/iLZ7Y on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: string in /in/iLZ7Y on line 2 Fatal error: Call to undefined function: json_decode() in /in/iLZ7Y on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: string in /in/iLZ7Y on line 2 Fatal error: Call to undefined function: json_decode() in /in/iLZ7Y on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: string in /in/iLZ7Y on line 2 Fatal error: Call to undefined function: json_decode() in /in/iLZ7Y on line 4