3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument(); $doc->loadHTML(file_get_contents('http://wol.jw.org/cs/wol/dt/r29/lp-b/2016/1/5')); $excercise = $doc->getElementById('p15'); echo $excercise->textContent;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0EmAJ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $doc, !1 = $excercise
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'loadHTML'
          4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 'http%3A%2F%2Fwol.jw.org%2Fcs%2Fwol%2Fdt%2Fr29%2Flp-b%2F2016%2F1%2F5'
          6        DO_ICALL                                         $5      
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0          
    4     9        INIT_METHOD_CALL                                         !0, 'getElementById'
         10        SEND_VAL_EX                                              'p15'
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !1, $7
    5    13        FETCH_OBJ_R                                      ~9      !1, 'textContent'
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.7 ms | 1394 KiB | 15 Q