3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<div plans="10,11,1000" style="display: none">'; $doc = new DOMDocument; $doc->loadHTML($html); $divs = $doc->getElementsByTagName('div'); var_dump($divs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3PUJf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $html, !1 = $doc, !2 = $divs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv+plans%3D%2210%2C11%2C1000%22+style%3D%22display%3A+none%22%3E'
    4     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    5     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    6     7        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'div'
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !2, $8
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.42 ms | 1394 KiB | 15 Q