3v4l.org

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

Class Animal:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xpm75
function name:  __set
number of ops:  7
compiled vars:  !0 = $f, !1 = $v
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 Animal.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.75 ms | 1386 KiB | 15 Q