3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version='1.0'?> <always> <be>&lt;![CDATA[Document Checklist: Use this checklist to make sure all your documents are complete &amp; ready to go! There are a few things that we need that are often overlooked. * Please verify that your name spelling, middle initial and property address all match the information you submitted to the IRS exactly. * If you've filed taxes under different addresses for one or both of the last two years, please complete line 4 of the form. * Please provide a written signature, we cannot accept electronic signatures on this document. ]]&gt;</be> </always> XML; $sml = new SimpleXMLElement ($xml); $result = $sml->xpath('/always/be'); $newResult = (string) array_pop($result); $anotherResult = html_entity_decode($newResult, ENT_XML1, 'UTF-8'); echo (string) $aotherResult;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBpKB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $xml, !1 = $sml, !2 = $result, !3 = $newResult, !4 = $anotherResult, !5 = $aotherResult
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%271.0%27%3F%3E%0A%3Calways%3E%0A+%3Cbe%3E%26lt%3B%21%5BCDATA%5BDocument+Checklist%3A%0AUse+this+checklist+to+make+sure+all+your+documents+are%0Acomplete+%26amp%3B+ready+to+go%21+There+are+a+few+things+that+we+need%0Athat+are+often+overlooked.%0A%2A+Please+verify+that+your+name+spelling%2C+middle+initial+and%0Aproperty+address+all+match+the+information+you+submitted+to%0Athe+IRS+exactly.%0A%2A+If+you%27ve+filed+taxes+under+different+addresses+for+one+or%0Aboth+of+the+last+two+years%2C+please+complete+line+4+of+the%0Aform.%0A%2A+Please+provide+a+written+signature%2C+we+cannot+accept%0Aelectronic+signatures+on+this+document.%0A%0A%5D%5D%26gt%3B%3C%2Fbe%3E%0A%3C%2Falways%3E'
   24     1        NEW                                              $7      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $7
   26     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2Falways%2Fbe'
          7        DO_FCALL                                      0  $10     
          8        ASSIGN                                                   !2, $10
   27     9        INIT_FCALL                                               'array_pop'
         10        SEND_REF                                                 !2
         11        DO_ICALL                                         $12     
         12        CAST                                          6  ~13     $12
         13        ASSIGN                                                   !3, ~13
   28    14        INIT_FCALL                                               'html_entity_decode'
         15        SEND_VAR                                                 !3
         16        SEND_VAL                                                 16
         17        SEND_VAL                                                 'UTF-8'
         18        DO_ICALL                                         $15     
         19        ASSIGN                                                   !4, $15
   30    20        CAST                                          6  ~17     !5
         21        ECHO                                                     ~17
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.31 ms | 1396 KiB | 17 Q