3v4l.org

run code in 300+ PHP versions simultaneously
<?php class OfficeProductResponseDTO { /** * @param string|null $officeId GUID офиса * @param array $products Массив GUID товаров * @param int|null $code Код * @param string|null $message Сообщение * @param int|null $reason Причина */ public function __construct( public readonly ?string $officeId, public readonly array $products, public readonly ?int $code, public readonly ?int $reason, public readonly ?string $message, ) { } } $dto = new OfficeProductResponseDTO('12', ['guid'], 200, 5, 'message'); $dto->officeId = 'guid2'; var_dump($dto);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lt5m9
function name:  (null)
number of ops:  14
compiled vars:  !0 = $dto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'OfficeProductResponseDTO'
          1        SEND_VAL_EX                                              '12'
          2        SEND_VAL_EX                                              <array>
          3        SEND_VAL_EX                                              200
          4        SEND_VAL_EX                                              5
          5        SEND_VAL_EX                                              'message'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $1
   24     8        ASSIGN_OBJ                                               !0, 'officeId'
          9        OP_DATA                                                  'guid2'
   26    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class OfficeProductResponseDTO:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lt5m9
function name:  __construct
number of ops:  16
compiled vars:  !0 = $officeId, !1 = $products, !2 = $code, !3 = $reason, !4 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        ASSIGN_OBJ                                               'officeId'
          6        OP_DATA                                                  !0
          7        ASSIGN_OBJ                                               'products'
          8        OP_DATA                                                  !1
          9        ASSIGN_OBJ                                               'code'
         10        OP_DATA                                                  !2
         11        ASSIGN_OBJ                                               'reason'
         12        OP_DATA                                                  !3
         13        ASSIGN_OBJ                                               'message'
         14        OP_DATA                                                  !4
   19    15      > RETURN                                                   null

End of function __construct

End of class OfficeProductResponseDTO.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.64 ms | 969 KiB | 15 Q