3v4l.org

run code in 300+ PHP versions simultaneously
<?php class m { public function __set($name, $val) { var_dump(true); $this->{'count'} = $val; } } $m = new m; $m->c = 'Hey';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HMLXJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'm'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        ASSIGN_OBJ                                               !0, 'c'
          4        OP_DATA                                                  'Hey'
          5      > RETURN                                                   1

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

End of function __set

End of class m.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.09 ms | 1405 KiB | 15 Q