3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface myInterface { public function __construct(); } class concret implements myInterface { public function __construct($arg=null) { print_r(func_get_args()); } } $obj = new concret(123);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rDFqq
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'concret'
   11     1        NEW                                              $1      'concret'
          2        SEND_VAL_EX                                              123
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
          5      > RETURN                                                   1

Class myInterface:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rDFqq
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function __construct

End of class myInterface.

Class concret:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rDFqq
function name:  __construct
number of ops:  6
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      null
    8     1        INIT_FCALL                                               'print_r'
          2        FUNC_GET_ARGS                                    ~1      
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    9     5      > RETURN                                                   null

End of function __construct

End of class concret.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.4 ms | 1395 KiB | 15 Q