3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <data type="current observations"> <time-layout time-coordinate="local"> <start-valid-time period-name="current">2013-05-27T13:53:00-04:00</start-valid-time> </time-layout> </data> XML; $weather = simplexml_load_string($x); $time=$weather->xpath("//data[@type='current observations']/time-layout/start-valid-time"); echo $time[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TLbGl
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x, !1 = $weather, !2 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cdata+type%3D%22current+observations%22%3E%0A%3Ctime-layout+time-coordinate%3D%22local%22%3E%0A%3Cstart-valid-time+period-name%3D%22current%22%3E2013-05-27T13%3A53%3A00-04%3A00%3C%2Fstart-valid-time%3E%0A%3C%2Ftime-layout%3E%0A%3C%2Fdata%3E'
   10     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   11     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2F%2Fdata%5B%40type%3D%27current+observations%27%5D%2Ftime-layout%2Fstart-valid-time'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !2, $6
   12     9        FETCH_DIM_R                                      ~8      !2, 0
         10        ECHO                                                     ~8
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136 ms | 1394 KiB | 15 Q