3v4l.org

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

Class Thing:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q87jb
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ASSIGN_OBJ                                                   'state'
          1        OP_DATA                                                      'foo'
    9     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/Q87jb
function name:  __set
number of ops:  5
compiled vars:  !0 = $property, !1 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   12     2        ASSIGN_OBJ                                                   !0
          3        OP_DATA                                                      !1
   13     4      > RETURN                                                       null

End of function __set

End of class Thing.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.52 ms | 2087 KiB | 14 Q