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); echo (string) $anotherResult;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XWZ93
function name:  (null)
number of ops:  22
compiled vars:  !0 = $xml, !1 = $sml, !2 = $result, !3 = $newResult, !4 = $anotherResult
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                                              $6      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $6
   26     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2Falways%2Fbe'
          7        DO_FCALL                                      0  $9      
          8        ASSIGN                                                   !2, $9
   27     9        INIT_FCALL                                               'array_pop'
         10        SEND_REF                                                 !2
         11        DO_ICALL                                         $11     
         12        CAST                                          6  ~12     $11
         13        ASSIGN                                                   !3, ~12
   28    14        INIT_FCALL                                               'html_entity_decode'
         15        SEND_VAR                                                 !3
         16        SEND_VAL                                                 16
         17        DO_ICALL                                         $14     
         18        ASSIGN                                                   !4, $14
   30    19        CAST                                          6  ~16     !4
         20        ECHO                                                     ~16
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.54 ms | 1395 KiB | 17 Q