3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA <p>Portable <span class="shlt">Adobe</span> <span class="shlt">After</span> <span class="shlt">Effects</span> CC <span class="shlt">2018</span> 15.1.1.12 (x64)</p> DATA; $dom = new DOMDocument(); $dom->loadHTML($data); echo $dom->getElementsByTagName("p")[0]->textContent;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qNtkZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $data, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3EPortable+%3Cspan+class%3D%22shlt%22%3EAdobe%3C%2Fspan%3E+%3Cspan+class%3D%22shlt%22%3EAfter%3C%2Fspan%3E%0A+%3Cspan+class%3D%22shlt%22%3EEffects%3C%2Fspan%3E+CC+%3Cspan+class%3D%22shlt%22%3E2018%3C%2Fspan%3E+15.1.1.12+%28x64%29%3C%2Fp%3E'
    8     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    9     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   10     7        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'p'
          9        DO_FCALL                                      0  $7      
         10        FETCH_DIM_R                                      ~8      $7, 0
         11        FETCH_OBJ_R                                      ~9      ~8, 'textContent'
         12        ECHO                                                     ~9
   11    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
298.58 ms | 1393 KiB | 14 Q