3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = ' <div class="embedmain"> <div class="embedFooter">Data sent successfully in <b>1406.081199646 ms</b></div> <ol class="text"> <li class="li0"></li> </ol> </div>'; $dom = new DOMDocument(); $dom->loadHTML($html); $xpath = new DOMXPath($dom); $bold = $xpath->query('//div[@class="embedmain"]/div[@class="embedFooter"]/b')[0]->nodeValue; echo $bold;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A91Em
function name:  (null)
number of ops:  19
compiled vars:  !0 = $html, !1 = $dom, !2 = $xpath, !3 = $bold
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%3Cdiv+class%3D%22embedmain%22%3E%0A++++%3Cdiv+class%3D%22embedFooter%22%3EData+sent+successfully+in+%3Cb%3E1406.081199646+ms%3C%2Fb%3E%3C%2Fdiv%3E%0A++++%3Col+class%3D%22text%22%3E%0A++++++++%3Cli+class%3D%22li0%22%3E%3C%2Fli%3E%0A++++%3C%2Fol%3E%0A%3C%2Fdiv%3E'
   10     1        NEW                                              $5      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
   11     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   12     7        NEW                                              $9      'DOMXPath'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $9
   13    11        INIT_METHOD_CALL                                         !2, 'query'
         12        SEND_VAL_EX                                              '%2F%2Fdiv%5B%40class%3D%22embedmain%22%5D%2Fdiv%5B%40class%3D%22embedFooter%22%5D%2Fb'
         13        DO_FCALL                                      0  $12     
         14        FETCH_DIM_R                                      ~13     $12, 0
         15        FETCH_OBJ_R                                      ~14     ~13, 'nodeValue'
         16        ASSIGN                                                   !3, ~14
   14    17        ECHO                                                     !3
   15    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
290.33 ms | 1007 KiB | 13 Q