3v4l.org

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

Class t: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.62 ms | 1392 KiB | 13 Q