3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <programme channel="cnn.info" start="20131027060000" stop="20131027061500"> <title>hello CONTENT</title> <premiere/></programme> XML; $xml = simplexml_load_string($string); $start = $xml->attributes()->start; $stop = $xml->attributes()->stop; $title = $xml->title; echo "Title: " . $title . "\n"; echo "Time:left" . ($stop-$start);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gob20
function name:  (null)
number of ops:  22
compiled vars:  !0 = $string, !1 = $xml, !2 = $start, !3 = $stop, !4 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+%3Cprogramme+channel%3D%22cnn.info%22+start%3D%2220131027060000%22+stop%3D%2220131027061500%22%3E%0A+%3Ctitle%3Ehello+CONTENT%3C%2Ftitle%3E%0A+%3Cpremiere%2F%3E%3C%2Fprogramme%3E'
    8     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   10     5        INIT_METHOD_CALL                                         !1, 'attributes'
          6        DO_FCALL                                      0  $8      
          7        FETCH_OBJ_R                                      ~9      $8, 'start'
          8        ASSIGN                                                   !2, ~9
   11     9        INIT_METHOD_CALL                                         !1, 'attributes'
         10        DO_FCALL                                      0  $11     
         11        FETCH_OBJ_R                                      ~12     $11, 'stop'
         12        ASSIGN                                                   !3, ~12
   12    13        FETCH_OBJ_R                                      ~14     !1, 'title'
         14        ASSIGN                                                   !4, ~14
   13    15        CONCAT                                           ~16     'Title%3A+', !4
         16        CONCAT                                           ~17     ~16, '%0A'
         17        ECHO                                                     ~17
   14    18        SUB                                              ~18     !3, !2
         19        CONCAT                                           ~19     'Time%3Aleft', ~18
         20        ECHO                                                     ~19
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1386 KiB | 15 Q