3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BlogData { public function __construct( public readonly string $title = 'Readonly-свойства', ) {} } $a = new BlogData(); $b = clone $a; var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iH8qW
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'BlogData'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        CLONE                                            ~5      !0
          4        ASSIGN                                                   !1, ~5
   13     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class BlogData:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iH8qW
function name:  __construct
number of ops:  4
compiled vars:  !0 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      'Readonly-%D1%81%D0%B2%D0%BE%D0%B9%D1%81%D1%82%D0%B2%D0%B0'
          1        ASSIGN_OBJ                                               'title'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function __construct

End of class BlogData.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.34 ms | 996 KiB | 14 Q