3v4l.org

run code in 300+ PHP versions simultaneously
<?php $htmlDocument = new DOMDocument(); $htmlDocument->loadHTML('test'); $elements = $htmlDocument->getElementsByTagName('li'); $description = 'test'; var_dump($elements); if ($elements !== 0) { $description = "<ul>"; foreach ($elements as $value) { $description .= "<li>" . $value->nodeValue . "</li>"; } $description .= "</ul>"; } echo $description;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 26
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 26
filename:       /in/5clkk
function name:  (null)
number of ops:  28
compiled vars:  !0 = $htmlDocument, !1 = $elements, !2 = $description, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        INIT_METHOD_CALL                                         !0, 'loadHTML'
          4        SEND_VAL_EX                                              'test'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
          7        SEND_VAL_EX                                              'li'
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !1, $8
    6    10        ASSIGN                                                   !2, 'test'
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    8    14        IS_NOT_IDENTICAL                                         !1, 0
         15      > JMPZ                                                     ~12, ->26
    9    16    >   ASSIGN                                                   !2, '%3Cul%3E'
   10    17      > FE_RESET_R                                       $14     !1, ->24
         18    > > FE_FETCH_R                                               $14, !3, ->24
   11    19    >   FETCH_OBJ_R                                      ~15     !3, 'nodeValue'
         20        CONCAT                                           ~16     '%3Cli%3E', ~15
         21        CONCAT                                           ~17     ~16, '%3C%2Fli%3E'
         22        ASSIGN_OP                                     8          !2, ~17
   10    23      > JMP                                                      ->18
         24    >   FE_FREE                                                  $14
   13    25        ASSIGN_OP                                     8          !2, '%3C%2Ful%3E'
   16    26    >   ECHO                                                     !2
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.52 ms | 1401 KiB | 15 Q