3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=' <td><a href="javascript:void(0)" class="rankRow" data-rankkey="25"> Averages </a> </td> <td class="page_speed_602217763"> 82.84 </td> </tr >'; $domd = new DOMDocument(); @$domd->loadHTML($html); $xp = new DOMXPath($domd); $page_speed = trim($xp->query("//td[contains(@class, 'page_speed_')]")->item(0)->textContent); var_dump($page_speed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3JAKR
function name:  (null)
number of ops:  28
compiled vars:  !0 = $html, !1 = $domd, !2 = $xp, !3 = $page_speed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '++%3Ctd%3E%3Ca+href%3D%22javascript%3Avoid%280%29%22+class%3D%22rankRow%22%0A+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++data-rankkey%3D%2225%22%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Averages%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%3C%2Fa%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%3C%2Ftd%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%3Ctd+class%3D%22page_speed_602217763%22%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++82.84++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%3C%2Ftd%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%3C%2Ftr%0A%3E'
   12     1        NEW                                              $5      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
   13     4        BEGIN_SILENCE                                    ~8      
          5        INIT_METHOD_CALL                                         !1, 'loadHTML'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        END_SILENCE                                              ~8
   14     9        NEW                                              $10     'DOMXPath'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $10
   15    13        INIT_FCALL                                               'trim'
         14        INIT_METHOD_CALL                                         !2, 'query'
         15        SEND_VAL_EX                                              '%2F%2Ftd%5Bcontains%28%40class%2C+%27page_speed_%27%29%5D'
         16        DO_FCALL                                      0  $13     
         17        INIT_METHOD_CALL                                         $13, 'item'
         18        SEND_VAL_EX                                              0
         19        DO_FCALL                                      0  $14     
         20        FETCH_OBJ_R                                      ~15     $14, 'textContent'
         21        SEND_VAL                                                 ~15
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !3, $16
   16    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.81 ms | 1004 KiB | 15 Q