3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = file_get_contents('http://www.google.com/'); $dom = new DOMDocument(); @$dom->loadHTML($html); $titles = $dom->getElementsByTagName('title'); $title = $titles->item(0)->nodeValue; var_dump($title);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7aef9
function name:  (null)
number of ops:  25
compiled vars:  !0 = $html, !1 = $dom, !2 = $titles, !3 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.google.com%2F'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        NEW                                              $6      'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    4     7        BEGIN_SILENCE                                    ~9      
          8        INIT_METHOD_CALL                                         !1, 'loadHTML'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0          
         11        END_SILENCE                                              ~9
    6    12        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         13        SEND_VAL_EX                                              'title'
         14        DO_FCALL                                      0  $11     
         15        ASSIGN                                                   !2, $11
    7    16        INIT_METHOD_CALL                                         !2, 'item'
         17        SEND_VAL_EX                                              0
         18        DO_FCALL                                      0  $13     
         19        FETCH_OBJ_R                                      ~14     $13, 'nodeValue'
         20        ASSIGN                                                   !3, ~14
    8    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1395 KiB | 17 Q