3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PropertyTest { public function __set($name, $value) { echo "Setting '$name' to '$value'\n"; $this->data[$name] = $value; } } echo "<pre>\nn"; $obj = new PropertyTest; $obj->a = 1; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6N06t
function name:  (null)
number of ops:  7
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     '%3Cpre%3E%0An'
   16     1        NEW                                              $1      'PropertyTest'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   18     4        ASSIGN_OBJ                                               !0, 'a'
          5        OP_DATA                                                  1
   22     6      > RETURN                                                   1

Class PropertyTest:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6N06t
function name:  __set
number of ops:  12
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ROPE_INIT                                     5  ~3      'Setting+%27'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '%27+to+%27'
          5        ROPE_ADD                                      3  ~3      ~3, !1
          6        ROPE_END                                      4  ~2      ~3, '%27%0A'
          7        ECHO                                                     ~2
    7     8        FETCH_OBJ_W                                      $6      'data'
          9        ASSIGN_DIM                                               $6, !0
         10        OP_DATA                                                  !1
    8    11      > RETURN                                                   null

End of function __set

End of class PropertyTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.73 ms | 1393 KiB | 13 Q