3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait PropifierTrait { public function __set($name, $value) { var_dump($name, $value); } } class Dummy { use PropifierTrait; } $value = new Dummy(); $value->something = 'test';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0OAve
function name:  (null)
number of ops:  7
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                                'dummy'
   13     1        NEW                                                  $1      'Dummy'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   14     4        ASSIGN_OBJ                                                   !0, 'something'
          5        OP_DATA                                                      'test'
          6      > RETURN                                                       1

Class PropifierTrait:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0OAve
function name:  __set
number of ops:  7
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    5     2        INIT_FCALL                                                   'var_dump'
          3        SEND_VAR                                                     !0
          4        SEND_VAR                                                     !1
          5        DO_ICALL                                                     
    6     6      > RETURN                                                       null

End of function __set

End of class PropifierTrait.

Class Dummy: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.53 ms | 2096 KiB | 14 Q