3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DOMDocument; $d->load( 'https://feeds.feedburner.com/Newbreak-Video' ); $x = new DOMXPath( $a ); $l1 = $x->query( '//*' ); $l2 = $x->query( '//itunes:*' ); var_dump( $l1->length, $l2->length );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oTt1L
function name:  (null)
number of ops:  25
compiled vars:  !0 = $d, !1 = $x, !2 = $a, !3 = $l1, !4 = $l2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $5      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    3     3        INIT_METHOD_CALL                                         !0, 'load'
          4        SEND_VAL_EX                                              'https%3A%2F%2Ffeeds.feedburner.com%2FNewbreak-Video'
          5        DO_FCALL                                      0          
    4     6        NEW                                              $9      'DOMXPath'
          7        SEND_VAR_EX                                              !2
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $9
    5    10        INIT_METHOD_CALL                                         !1, 'query'
         11        SEND_VAL_EX                                              '%2F%2F%2A'
         12        DO_FCALL                                      0  $12     
         13        ASSIGN                                                   !3, $12
    6    14        INIT_METHOD_CALL                                         !1, 'query'
         15        SEND_VAL_EX                                              '%2F%2Fitunes%3A%2A'
         16        DO_FCALL                                      0  $14     
         17        ASSIGN                                                   !4, $14
    7    18        INIT_FCALL                                               'var_dump'
         19        FETCH_OBJ_R                                      ~16     !3, 'length'
         20        SEND_VAL                                                 ~16
         21        FETCH_OBJ_R                                      ~17     !4, 'length'
         22        SEND_VAL                                                 ~17
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.92 ms | 1395 KiB | 15 Q