3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = '<div class="item active" style="display: block; left: 685.5753504672897px; top: 0px; height: 475.3125px; width: 318.84929906542055px; font-size: 100%; z-index: 32768; visibility: visible;"> <canvas class="content landscape" href="#" src="imgs/dead.jpg" title="The Dead Weather - Horehound" id="3" num="0" song="Horehound" origproportion="1.0062305295950156" width="323" height="482"></canvas></div>'; $xpath = new DOMXPath($doc); $resulted = $xpath->query('div[@class="active"]'); $active= $resulted->item->query('div[@class="content"]');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gJDII
function name:  (null)
number of ops:  15
compiled vars:  !0 = $doc, !1 = $xpath, !2 = $resulted, !3 = $active
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv+class%3D%22item+active%22+style%3D%22display%3A+block%3B+left%3A+685.5753504672897px%3B+top%3A+0px%3B+height%3A+475.3125px%3B+width%3A+318.84929906542055px%3B+font-size%3A+100%25%3B+z-index%3A+32768%3B+visibility%3A+visible%3B%22%3E%0A%3Ccanvas+class%3D%22content+landscape%22+href%3D%22%23%22+src%3D%22imgs%2Fdead.jpg%22+title%3D%22The+Dead+Weather+-+Horehound%22+id%3D%223%22+num%3D%220%22+song%3D%22Horehound%22+origproportion%3D%221.0062305295950156%22+width%3D%22323%22+height%3D%22482%22%3E%3C%2Fcanvas%3E%3C%2Fdiv%3E'
    7     1        NEW                                              $5      'DOMXPath'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
    8     5        INIT_METHOD_CALL                                         !1, 'query'
          6        SEND_VAL_EX                                              'div%5B%40class%3D%22active%22%5D'
          7        DO_FCALL                                      0  $8      
          8        ASSIGN                                                   !2, $8
    9     9        FETCH_OBJ_R                                      ~10     !2, 'item'
         10        INIT_METHOD_CALL                                         ~10, 'query'
         11        SEND_VAL_EX                                              'div%5B%40class%3D%22content%22%5D'
         12        DO_FCALL                                      0  $11     
         13        ASSIGN                                                   !3, $11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.42 ms | 1394 KiB | 13 Q