3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); namespace HTML { use HTML\Header\Base; class Header { public Base $base; } } namespace HTML\Header { class Base { public $href; public $target; } } namespace { $header = new HTML\Header(); $header->base = new HTML\Header\Base(); $header->base->href = 'https://www.example.com/'; var_dump($header); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RjnsO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $header
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E >   NEW                                                  $1      'HTML%5CHeader'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   22     3        NEW                                                  $5      'HTML%5CHeader%5CBase'
          4        DO_FCALL                                          0          
          5        ASSIGN_OBJ                                                   !0, 'base'
          6        OP_DATA                                                      $5
   23     7        FETCH_OBJ_W                                          $7      !0, 'base'
          8        ASSIGN_OBJ                                                   $7, 'href'
          9        OP_DATA                                                      'https%3A%2F%2Fwww.example.com%2F'
   25    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
   26    13      > RETURN                                                       1

Class HTML\Header: [no user functions]
Class HTML\Header\Base: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.43 ms | 1143 KiB | 14 Q