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>'); foreach($dom as $x){ var_dump($x); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/mtuUb
function name:  (null)
number of ops:  17
compiled vars:  !0 = $html, !1 = $dom, !2 = $x
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                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    6     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        CONCAT                                           ~7      '%3Cdiv%3E', !0
          6        CONCAT                                           ~8      ~7, '%3C%2Fdiv%3E'
          7        SEND_VAL_EX                                              ~8
          8        DO_FCALL                                      0          
    7     9      > FE_RESET_R                                       $10     !1, ->15
         10    > > FE_FETCH_R                                               $10, !2, ->15
    8    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    7    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $10
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.64 ms | 1395 KiB | 15 Q