3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlRoot = new SimpleXMLElement('<?xml version="1.0"?> <habrauser> <error>404</error> </habrauser> '); if (false != ($e = $xmlRoot->xpath('/habrauser/error'))) { throw new Exception('Error value received: ' . $e, 205); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GqloX
function name:  (null)
number of ops:  17
compiled vars:  !0 = $xmlRoot, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Chabrauser%3E%0A%3Cerror%3E404%3C%2Ferror%3E%0A%3C%2Fhabrauser%3E%0A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    8     4        INIT_METHOD_CALL                                         !0, 'xpath'
          5        SEND_VAL_EX                                              '%2Fhabrauser%2Ferror'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                           ~6      !1, $5
          8        BOOL                                             ~7      ~6
          9      > JMPZ                                                     ~7, ->16
   10    10    >   NEW                                              $8      'Exception'
         11        CONCAT                                           ~9      'Error+value+received%3A+', !1
         12        SEND_VAL_EX                                              ~9
         13        SEND_VAL_EX                                              205
         14        DO_FCALL                                      0          
         15      > THROW                                         0          $8
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.48 ms | 941 KiB | 14 Q