3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = $html->find("<img src='http://www.example.com/Imagename.jpg' height='400px' width='600px'>"); $dom = new domDocument; $dom->loadHTML($image); $dom->preserveWhiteSpace = false; $img = $dom->getElementsByTagName("img"); print_r($img);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iq8qD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $image, !1 = $html, !2 = $dom, !3 = $img
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_METHOD_CALL                                         !1, 'find'
          1        SEND_VAL_EX                                              '%3Cimg+src%3D%27http%3A%2F%2Fwww.example.com%2FImagename.jpg%27+height%3D%27400px%27+width%3D%27600px%27%3E'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !0, $4
    3     4        NEW                                              $6      'domDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !2, $6
    4     7        INIT_METHOD_CALL                                         !2, 'loadHTML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    5    10        ASSIGN_OBJ                                               !2, 'preserveWhiteSpace'
         11        OP_DATA                                                  <false>
    6    12        INIT_METHOD_CALL                                         !2, 'getElementsByTagName'
         13        SEND_VAL_EX                                              'img'
         14        DO_FCALL                                      0  $11     
         15        ASSIGN                                                   !3, $11
    8    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.29 ms | 1386 KiB | 15 Q