3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<span role="button" class="a-n S1xjN" tabindex="0">414,817 people</span>'; $dom = new DOMDocument; $dom->loadHTML('<div>'.$html.'</div>'); echo $dom->nodeValue;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ModLd
function name:  (null)
number of ops:  12
compiled vars:  !0 = $html, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cspan+role%3D%22button%22+class%3D%22a-n+S1xjN%22+tabindex%3D%220%22%3E414%2C817+people%3C%2Fspan%3E'
    5     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    6     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        CONCAT                                           ~6      '%3Cdiv%3E', !0
          6        CONCAT                                           ~7      ~6, '%3C%2Fdiv%3E'
          7        SEND_VAL_EX                                              ~7
          8        DO_FCALL                                      0          
    7     9        FETCH_OBJ_R                                      ~9      !1, 'nodeValue'
         10        ECHO                                                     ~9
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1393 KiB | 13 Q