3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="iso-8859-1"?> <wwwjob id="32cca11IACH" method="Delete"> some more xml stuff </wwwjob>'; $www = new SimpleXMLElement($xml); echo $www->attributes()->method; // Delete
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1bseu
function name:  (null)
number of ops:  10
compiled vars:  !0 = $xml, !1 = $www
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%0A+%3Cwwwjob+id%3D%2232cca11IACH%22+method%3D%22Delete%22%3E%0A+++some+more+xml+stuff%0A+%3C%2Fwwwjob%3E'
    7     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    8     5        INIT_METHOD_CALL                                         !1, 'attributes'
          6        DO_FCALL                                      0  $6      
          7        FETCH_OBJ_R                                      ~7      $6, 'method'
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.95 ms | 1001 KiB | 13 Q