3v4l.org

run code in 500+ PHP versions simultaneously
<?php #[AllowDynamicProperties] class Foo { public function __set($name, $value) { $this->{$name} = $value; } } $foo = new Foo(); $foo->bar = 'bar'; var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6u3SR
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   11     3        ASSIGN_OBJ                                                   !0, 'bar'
          4        OP_DATA                                                      'bar'
   12     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

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

End of function __set

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.64 ms | 1402 KiB | 14 Q