3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { private int $a; public function __construct() { $this->a = 1; } public function __set(string $name, $value) { echo "__set is called\n\n"; } } var_dump(new Test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gnjeU
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                                   'var_dump'
          1        NEW                                                  $0      'Test'
          2        DO_FCALL                                          0          
          3        SEND_VAR                                                     $0
          4        DO_ICALL                                                     
          5      > RETURN                                                       1

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gnjeU
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                                   'a'
          1        OP_DATA                                                      1
   10     2      > RETURN                                                       null

End of function __construct

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gnjeU
function name:  __set
number of ops:  4
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   14     2        ECHO                                                         '__set+is+called%0A%0A'
   15     3      > RETURN                                                       null

End of function __set

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.03 ms | 477 KiB | 8 Q