3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->loadHTML( file_get_contents('https://volunteer.psu.edu/redcross/hoursreport/volunteers=members/semester=all/year=2013/min=0')); $xpath = new DOMXPath( $doc); $div = $xpath->query( '//div[@id="wrapper_left"]')->item(0); echo $div->textContent;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7bIIk
function name:  (null)
number of ops:  23
compiled vars:  !0 = $doc, !1 = $xpath, !2 = $div
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        INIT_METHOD_CALL                                         !0, 'loadHTML'
          4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 'https%3A%2F%2Fvolunteer.psu.edu%2Fredcross%2Fhoursreport%2Fvolunteers%3Dmembers%2Fsemester%3Dall%2Fyear%3D2013%2Fmin%3D0'
          6        DO_ICALL                                         $6      
          7        SEND_VAR_NO_REF_EX                                       $6
          8        DO_FCALL                                      0          
    5     9        NEW                                              $8      'DOMXPath'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $8
    6    13        INIT_METHOD_CALL                                         !1, 'query'
         14        SEND_VAL_EX                                              '%2F%2Fdiv%5B%40id%3D%22wrapper_left%22%5D'
         15        DO_FCALL                                      0  $11     
         16        INIT_METHOD_CALL                                         $11, 'item'
         17        SEND_VAL_EX                                              0
         18        DO_FCALL                                      0  $12     
         19        ASSIGN                                                   !2, $12
    7    20        FETCH_OBJ_R                                      ~14     !2, 'textContent'
         21        ECHO                                                     ~14
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1395 KiB | 15 Q