3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = file_get_contents("https://www.sdi.gov.in/en-US/Pages/SDISHome.aspx"); $html = tidy_repair_string($html); $doc = new DomDocument(); $doc->loadHtml($html); $xpath = new DomXPath($doc); // Now query the document: foreach ($xpath->query('//table[@class="pricing"]/th') as $node) { echo $node, "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/Xpggk
function name:  (null)
number of ops:  28
compiled vars:  !0 = $html, !1 = $doc, !2 = $xpath, !3 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'https%3A%2F%2Fwww.sdi.gov.in%2Fen-US%2FPages%2FSDISHome.aspx'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL_BY_NAME                                       'tidy_repair_string'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !0, $6
    5     8        NEW                                              $8      'DomDocument'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $8
    6    11        INIT_METHOD_CALL                                         !1, 'loadHtml'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0          
    7    14        NEW                                              $12     'DomXPath'
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !2, $12
    9    18        INIT_METHOD_CALL                                         !2, 'query'
         19        SEND_VAL_EX                                              '%2F%2Ftable%5B%40class%3D%22pricing%22%5D%2Fth'
         20        DO_FCALL                                      0  $15     
         21      > FE_RESET_R                                       $16     $15, ->26
         22    > > FE_FETCH_R                                               $16, !3, ->26
   10    23    >   ECHO                                                     !3
         24        ECHO                                                     '%0A'
    9    25      > JMP                                                      ->22
         26    >   FE_FREE                                                  $16
   11    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.91 ms | 1396 KiB | 15 Q