3v4l.org

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

Class x:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/96Sh3
function name:  __set
number of ops:  7
compiled vars:  !0 = $n, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        NOP                                                      
          3        FAST_CONCAT                                      ~2      '_', !0
          4        ASSIGN_OBJ                                               ~2
          5        OP_DATA                                                  !1
    7     6      > RETURN                                                   null

End of function __set

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.04 ms | 1393 KiB | 13 Q