3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xmldata = <<< XML <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>XML Example</title> </head> <body> <p> <b>Hello, World!</b> </p> </body> </html> XML; $sxe = simplexml_load_string($xmldata); $p = $sxe->body->p; var_dump($p); //$string = ???????? print $string; ?>
based on MHLuk
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/AHERT
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xmldata, !1 = $sxe, !2 = $p, !3 = $string
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  17     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22ISO-8859-1%22+%3F%3E%0A%3C%21DOCTYPE+html%0A+++++PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Transitional%2F%2FEN%22%0A+++++%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22+xml%3Alang%3D%22en%22+lang%3D%22en%22%3E%0A++%3Chead%3E%0A++++%3Ctitle%3EXML+Example%3C%2Ftitle%3E%0A++%3C%2Fhead%3E%0A++%3Cbody%3E%0A++++%3Cp%3E%0A++++++%3Cb%3EHello%2C+World%21%3C%2Fb%3E%0A++++%3C%2Fp%3E%0A++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  20     1        INIT_FCALL                                               'simplexml_load_string'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                         $5      
         4        ASSIGN                                                   !1, $5
  22     5        FETCH_OBJ_R                                      $7      !1, 'body'
         6        FETCH_OBJ_R                                      $8      $7, 'p'
         7        ASSIGN                                                   !2, $8
  23     8        INIT_FCALL                                               'var_dump'
         9        SEND_VAR                                                 !2
        10        DO_ICALL                                                 
  26    11        ECHO                                                     !3
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0