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($decoded, json_last_error());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VWDcc
function name:  (null)
number of ops:  12
compiled vars:  !0 = $var, !1 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A%22url%22%3A+%22http%3A%2F%2Fwww.wral.com%2Fweather%2Fpage%2F8106570%2F%3Fdefault_map%3Dicontroldoppler%22%2C%0A%22messages%22%3A+%5B%0A%0A++++++%7B%0A++++++++++%22lastLine%22%3A+1151%2C%0A++++++++++%22lastColumn%22%3A+61%2C%0A++++++++++%22message%22%3A+%22Element+ul+not+allowed+as+child+of+element+button+in+this+context.+%28Suppressing+further+errors+from+this+subtree.%29%22%2C%0A++++++++++%22messageid%22%3A+%22html5%22%2C%0A++++++++++%22explanation%22%3A+%22%0A%3Cdiv+class%3D%5C%22ve+html5%5C%22%3E%3Cdl+xmlns%3D%5C%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%5C%22%3E%3Cdt%3EContexts+in+which+element+%3Ca+href%3D%5C%22http%3A%2F%2Fwww.w3.org%2Fhtml%2Fwg%2Fdrafts%2Fhtml%2Fmaster%2Fsingle-page.html%23the-ul-element%5C%22%3E%3Ccode%3Eul%3C%2Fcode%3E%3C%2Fa%3E+may+be+used%3A%3C%2Fdt%3E%0A+++%3Cdd%3EWhere+%3Ca+href%3D%5C%22http%3A%2F%2Fwww.w3.org%2Fhtml%2Fwg%2Fdrafts%2Fhtml%2Fmaster%2Fsingle-page.html%23flow-content-1%5C%22%3Eflow+content%3C%2Fa%3E+is+expected.%3C%2Fdd%3E%0A+++%3Cdt%3EContent+model+for+element+%3Ca+href%3D%5C%22http%3A%2F%2Fwww.w3.org%2Fhtml%2Fwg%2Fdrafts%2Fhtml%2Fmaster%2Fsingle-page.html%23the-button-element%5C%22%3E%3Ccode%3Ebutton%3C%2Fcode%3E%3C%2Fa%3E%3A%3C%2Fdt%3E%0A+++%3Cdd%3E%3Ca+href%3D%5C%22http%3A%2F%2Fwww.w3.org%2Fhtml%2Fwg%2Fdrafts%2Fhtml%2Fmaster%2Fsingle-page.html%23phrasing-content-1%5C%22%3EPhrasing+content%3C%2Fa%3E%2C+but+there+must+be+no+%3Ca+href%3D%5C%22http%3A%2F%2Fwww.w3.org%2Fhtml%2Fwg%2Fdrafts%2Fhtml%2Fmaster%2Fsingle-page.html%23interactive-content-0%5C%22%3Einteractive+content%3C%2Fa%3E+descendant.%3C%2Fdd%3E%0A+++%3C%2Fdl%3E%3C%2Fdiv%3E%0A%22%2C%0A++++++++++%22type%22%3A+%22error%22%0A++++++%7D%0A%0A%5D%2C%0A%22source%22%3A+%7B%0A++++%22encoding%22%3A+%22utf-8%22%2C%0A++++%22type%22%3A+%22text%2Fhtml%22%0A%7D%0A%7D'
   24     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   26     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        INIT_FCALL                                               'json_last_error'
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.31 ms | 1396 KiB | 19 Q