3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors', true); $xml = new XMLReader(); $xml->XML('<html <head><title>411 Length Required</title></head> <body bgcolor="white"> <center><h1>411 Length Required</h1></center> <hr><center>nginx</center> </body> </html>'); // You must to use it $xml->setParserProperty(XMLReader::VALIDATE, true); var_dump($xml->isValid());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BHI2j
function name:  (null)
number of ops:  23
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                                 
    6     7        NEW                                              $3      'XMLReader'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $3
    7    10        INIT_METHOD_CALL                                         !0, 'XML'
         11        SEND_VAL_EX                                              '%3Chtml%0A%3Chead%3E%3Ctitle%3E411+Length+Required%3C%2Ftitle%3E%3C%2Fhead%3E%0A%3Cbody+bgcolor%3D%22white%22%3E%0A%3Ccenter%3E%3Ch1%3E411+Length+Required%3C%2Fh1%3E%3C%2Fcenter%3E%0A%3Chr%3E%3Ccenter%3Enginx%3C%2Fcenter%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
         12        DO_FCALL                                      0          
   16    13        INIT_METHOD_CALL                                         !0, 'setParserProperty'
         14        SEND_VAL_EX                                              3
         15        SEND_VAL_EX                                              <true>
         16        DO_FCALL                                      0          
   18    17        INIT_FCALL                                               'var_dump'
         18        INIT_METHOD_CALL                                         !0, 'isValid'
         19        DO_FCALL                                      0  $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.95 ms | 1395 KiB | 19 Q