3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<root><case1><name> </name> </case1><case2><name></name></case2><case3><name>ukits</name></case3></root>'; libxml_use_internal_errors(true); $content = simplexml_load_string($xml); if ($content === false) { libxml_clear_errors(); } print_r($content);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/BcIWf
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml, !1 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Croot%3E%3Ccase1%3E%3Cname%3E+%3C%2Fname%3E%0A%3C%2Fcase1%3E%3Ccase2%3E%3Cname%3E%3C%2Fname%3E%3C%2Fcase2%3E%3Ccase3%3E%3Cname%3Eukits%3C%2Fname%3E%3C%2Fcase3%3E%3C%2Froot%3E'
    5     1        INIT_FCALL                                               'libxml_use_internal_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'simplexml_load_string'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    9     8        TYPE_CHECK                                    4          !1
          9      > JMPZ                                                     ~6, ->12
   10    10    >   INIT_FCALL                                               'libxml_clear_errors'
         11        DO_ICALL                                                 
   13    12    >   INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.12 ms | 1395 KiB | 21 Q