3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testing { //private $a = "parent"; public function __set($name, $value) { echo $name . ' ' . $value . "\n"; $this->$name = $value; } public function __construct() { $this->a = 'asd'; $this->a = 'bcd'; $this->a = 'ggg'; } } $obj = new Testing;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7cta
function name:  (null)
number of ops:  4
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Testing'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3      > RETURN                                                   1

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

End of function __set

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7cta
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_OBJ                                               'a'
          1        OP_DATA                                                  'asd'
   13     2        ASSIGN_OBJ                                               'a'
          3        OP_DATA                                                  'bcd'
   14     4        ASSIGN_OBJ                                               'a'
          5        OP_DATA                                                  'ggg'
   15     6      > RETURN                                                   null

End of function __construct

End of class Testing.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.22 ms | 1394 KiB | 13 Q