3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = str_get_html("<img src='http://www.example.com/Imagename.jpg' height='400px' width='600px'>"); $image = $html->find("img"); print_r($link->src);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qFfe4
function name:  (null)
number of ops:  13
compiled vars:  !0 = $html, !1 = $image, !2 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'str_get_html'
          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  $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_METHOD_CALL                                         !0, 'find'
          5        SEND_VAL_EX                                              'img'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'print_r'
          9        FETCH_OBJ_R                                      ~7      !2, 'src'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.68 ms | 1385 KiB | 15 Q