3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link http://stackoverflow.com/q/24526493/367456 */ $xml = <<<XML <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN" "http://jats.nlm.nih.gov/publishing/1.0/JATS-journalpublishing1.dtd"> <article/> XML; libxml_set_external_entity_loader(function() { var_dump(func_get_args()); return NULL; }); $doc = new DOMDocument; $doc->loadXML($xml, LIBXML_DTDLOAD);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lQ1eB
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xml, !1 = $doc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3C%21DOCTYPE+article+PUBLIC+%22-%2F%2FNLM%2F%2FDTD+JATS+%28Z39.96%29+Journal+Publishing+DTD+v1.0+20120330%2F%2FEN%22+%22http%3A%2F%2Fjats.nlm.nih.gov%2Fpublishing%2F1.0%2FJATS-journalpublishing1.dtd%22%3E%0A%3Carticle%2F%3E'
   12     1        INIT_FCALL                                               'libxml_set_external_entity_loader'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FlQ1eB%3A12%240'
   15     3        SEND_VAL                                                 ~3
          4        DO_ICALL                                                 
   17     5        NEW                                              $5      'DOMDocument'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   18     8        INIT_METHOD_CALL                                         !1, 'loadXML'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              4
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FlQ1eB%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lQ1eB
function name:  {closure}
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   14     4      > RETURN                                                   null
   15     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FlQ1eB%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.32 ms | 1395 KiB | 17 Q