3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { public function __construct() { echo get_class($this); } } class Any extends Some { public function call_construct() { parent::__construct(); } } //$some = new Some; //$any = new Any; echo php_uname();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RFXr2
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'php_uname'
          1        DO_ICALL                                         $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function __construct

End of class Some.

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

End of function call_construct

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

End of function __construct

End of class Any.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.93 ms | 1395 KiB | 15 Q