3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = <<<__TEXT__ { "url": "http://www.wral.com/weather/page/8106570/?default_map=icontroldoppler", "messages": [ { "lastLine": 1151, "lastColumn": 61, "message": "Element ul not allowed as child of element button in this context. (Suppressing further errors from this subtree.)", "messageid": "html5", "explanation": "\n<div class=\"ve html5\"><dl xmlns=\"http://www.w3.org/1999/xhtml\"><dt>Contexts in which element <a href=\"http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-ul-element\"><code>ul</code></a> may be used:</dt>\n <dd>Where <a href=\"http://www.w3.org/html/wg/drafts/html/master/single-page.html#flow-content-1\">flow content</a> is expected.</dd>\n <dt>Content model for element <a href=\"http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-button-element\"><code>button</code></a>:</dt>\n <dd><a href=\"http://www.w3.org/html/wg/drafts/html/master/single-page.html#phrasing-content-1\">Phrasing content</a>, but there must be no <a href=\"http://www.w3.org/html/wg/drafts/html/master/single-page.html#interactive-content-0\">interactive content</a> descendant.</dd>\n </dl></div>\n", "type": "error" } ], "source": { "encoding": "utf-8", "type": "text/html" } } __TEXT__; $decoded = json_decode($var); var_dump($decode, json_last_error());
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $decode in /in/gQkWm on line 26 NULL int(3)
Output for 7.3.16 - 7.3.31, 7.4.3 - 7.4.33
Notice: Undefined variable: decode in /in/gQkWm on line 26 NULL int(3)
Output for 7.3.32 - 7.3.33
NULL int(3)
Output for 5.4.0 - 5.4.25, 7.2.29 - 7.2.33
Parse error: syntax error, unexpected end of file in /in/gQkWm on line 26
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/gQkWm on line 26
Process exited with code 255.

preferences:
176.83 ms | 401 KiB | 195 Q