3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 0; } class C { } $a = new A(); $b = (object)[chr(0) . 'A' . chr(0) . 'a' => 1]; $c = new C(); $c->{chr(0) . 'C' . chr(0) . 'a'} = 2; echo $c->{chr(0) . 'A' . chr(0) . 'a'}; echo $b->{chr(0) . 'A' . chr(0) . 'a'}; echo $a->{chr(0) . 'A' . chr(0) . 'a'};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/63Un9
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   11     3        INIT_ARRAY                                       ~6      1, '%00A%00a'
          4        CAST                                          8  ~7      ~6
          5        ASSIGN                                                   !1, ~7
   12     6        NEW                                              $9      'C'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
   13     9        ASSIGN_OBJ                                               !2, '%00C%00a'
         10        OP_DATA                                                  2
   15    11        FETCH_OBJ_R                                      ~13     !2, '%00A%00a'
         12        ECHO                                                     ~13
   16    13        FETCH_OBJ_R                                      ~14     !1, '%00A%00a'
         14        ECHO                                                     ~14
   17    15        FETCH_OBJ_R                                      ~15     !0, '%00A%00a'
         16        ECHO                                                     ~15
         17      > RETURN                                                   1

Class A: [no user functions]
Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.1 ms | 1393 KiB | 13 Q