3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8XAEr
function name:  (null)
number of ops:  36
compiled vars:  !0 = $ref, !1 = $instance, !2 = $instance2, !3 = $instance3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $4      'WithPromotedProps'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $4
          4        DO_ICALL                                                 
   12     5        NEW                                              $7      'ReflectionClass'
          6        SEND_VAL_EX                                              'WithPromotedProps'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $7
   14     9        INIT_METHOD_CALL                                         !0, 'newInstanceWithoutConstructor'
         10        DO_FCALL                                      0  $10     
         11        ASSIGN                                                   !1, $10
   17    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   41    15        NEW                                              $13     'ReflectionClass'
         16        SEND_VAL_EX                                              'WithoutPromotedProps'
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !0, $13
   43    19        INIT_METHOD_CALL                                         !0, 'newInstanceWithoutConstructor'
         20        DO_FCALL                                      0  $16     
         21        ASSIGN                                                   !2, $16
   46    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
   58    25        NEW                                              $19     'ReflectionClass'
         26        SEND_VAL_EX                                              'WithPromotedPropsButNotReadonly'
         27        DO_FCALL                                      0          
         28        ASSIGN                                                   !0, $19
   60    29        INIT_METHOD_CALL                                         !0, 'newInstanceWithoutConstructor'
         30        DO_FCALL                                      0  $22     
         31        ASSIGN                                                   !3, $22
   63    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Class WithPromotedProps:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8XAEr
function name:  __construct
number of ops:  4
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      ''
          1        ASSIGN_OBJ                                               'data'
          2        OP_DATA                                                  !0
    6     3      > RETURN                                                   null

End of function __construct

End of class WithPromotedProps.

Class WithoutPromotedProps:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8XAEr
function name:  __construct
number of ops:  4
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV_INIT                                        !0      ''
   37     1        ASSIGN_OBJ                                               'data'
          2        OP_DATA                                                  !0
   38     3      > RETURN                                                   null

End of function __construct

End of class WithoutPromotedProps.

Class WithPromotedPropsButNotReadonly:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8XAEr
function name:  __construct
number of ops:  4
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   53     0  E >   RECV_INIT                                        !0      ''
          1        ASSIGN_OBJ                                               'data'
          2        OP_DATA                                                  !0
   55     3      > RETURN                                                   null

End of function __construct

End of class WithPromotedPropsButNotReadonly.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.82 ms | 971 KiB | 14 Q