3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <response request="getHierarchyByMarketType" code="001" message="success" debug=""> <jonny> <class id="5" name="Formula 1" maxRepDate="2012-12-19" maxRepTime="15:03:34"> <type id="4558" name="F1 Championship" lastUpdateDate="2012-11-26" lastUpdateTime="16:17:33" /> </class> </jonny> </response> XML; $xml = simplexml_load_string($x); $test = (string)$xml->xpath("//type/@name"); var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KbZFR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $xml, !2 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cresponse+request%3D%22getHierarchyByMarketType%22+code%3D%22001%22+message%3D%22success%22+debug%3D%22%22%3E%0A%3Cjonny%3E%0A%3Cclass+id%3D%225%22+name%3D%22Formula+1%22+maxRepDate%3D%222012-12-19%22+maxRepTime%3D%2215%3A03%3A34%22%3E%0A%3Ctype+id%3D%224558%22+name%3D%22F1+Championship%22+lastUpdateDate%3D%222012-11-26%22+lastUpdateTime%3D%2216%3A17%3A33%22+%2F%3E%0A%3C%2Fclass%3E%0A%3C%2Fjonny%3E%0A%3C%2Fresponse%3E'
   12     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   14     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2F%2Ftype%2F%40name'
          7        DO_FCALL                                      0  $6      
          8        CAST                                          6  ~7      $6
          9        ASSIGN                                                   !2, ~7
   16    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.16 ms | 1386 KiB | 17 Q