3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); abstract class Base { public function __construct(A $a, array $array) { } } class A{} class B{} class Concrete extends Base { public function __construct(B $b, $scalar, $scalar2) { } } new Concrete(new B, '', '');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rLulU
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   24     3        NEW                                              $1      'Concrete'
          4        NEW                                              $2      'B'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $2
          7        SEND_VAL_EX                                              ''
          8        SEND_VAL_EX                                              ''
          9        DO_FCALL                                      0          
         10        FREE                                                     $1
         11      > RETURN                                                   1

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

End of function __construct

End of class Base.

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

End of function __construct

End of class Concrete.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.49 ms | 1395 KiB | 15 Q