3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Client { public $name; } class Screen { public $client; } $screen = new Screen(); $client = new Client(); $screen->client = $client; $client->name = 'Parikshit'; echo $screen->client->name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uGHHu
function name:  (null)
number of ops:  14
compiled vars:  !0 = $screen, !1 = $client
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Screen'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        NEW                                              $5      'Client'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   17     6        ASSIGN_OBJ                                               !0, 'client'
          7        OP_DATA                                                  !1
   19     8        ASSIGN_OBJ                                               !1, 'name'
          9        OP_DATA                                                  'Parikshit'
   21    10        FETCH_OBJ_R                                      ~10     !0, 'client'
         11        FETCH_OBJ_R                                      ~11     ~10, 'name'
         12        ECHO                                                     ~11
         13      > RETURN                                                   1

Class Client: [no user functions]
Class Screen: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.95 ms | 1397 KiB | 13 Q