3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B { function __construct($b = null, A $a) {} } Reflection::export(new ReflectionClass('B')); class C { function __construct(A $a, $b = null) {} } Reflection::export(new ReflectionClass('C'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gKhZ6
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                  'Reflection', 'export'
          1        NEW                                              $0      'ReflectionClass'
          2        SEND_VAL_EX                                              'B'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
   14     6        INIT_STATIC_METHOD_CALL                                  'Reflection', 'export'
          7        NEW                                              $3      'ReflectionClass'
          8        SEND_VAL_EX                                              'C'
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $3
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class A: [no user functions]
Class B:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gKhZ6
function name:  __construct
number of ops:  3
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function __construct

End of class B.

Class C:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gKhZ6
function name:  __construct
number of ops:  3
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2      > RETURN                                                   null

End of function __construct

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.81 ms | 1398 KiB | 13 Q