3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <?xml version='1.0'?> <document> <title>Forty What?</title> <from>Joe</from> <to>Jane <body> I know that's the answer -- but what's the question? </body> </document> XML; $xml = simplexml_load_string($string); if($xml == false) { throw new \Exception(); } print_r($xml);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/niO7j
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%271.0%27%3F%3E+%0A%3Cdocument%3E%0A+%3Ctitle%3EForty+What%3F%3C%2Ftitle%3E%0A+%3Cfrom%3EJoe%3C%2Ffrom%3E%0A+%3Cto%3EJane%0A+%3Cbody%3E%0A++I+know+that%27s+the+answer+--+but+what%27s+the+question%3F%0A+%3C%2Fbody%3E%0A%3C%2Fdocument%3E'
   15     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   17     5        BOOL_NOT                                         ~5      !1
          6      > JMPZ                                                     ~5, ->10
   19     7    >   NEW                                              $6      'Exception'
          8        DO_FCALL                                      0          
          9      > THROW                                         0          $6
   21    10    >   INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.96 ms | 1394 KiB | 17 Q