3v4l.org

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

Class BadAss:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CbfUF
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        NOP                                                      
          3        FAST_CONCAT                                      ~2      'bad_', !0
          4        ASSIGN_OBJ                                               ~2
          5        OP_DATA                                                  !1
    6     6      > RETURN                                                   null

End of function __set

End of class BadAss.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.14 ms | 1395 KiB | 15 Q