3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', true); error_reporting(E_ALL); abstract class papa { public function __construct() { var_dump(__CLASS__ . '-' . __FUNCTION__); } } class son extends papa { public function son() { var_dump(__CLASS__ . '-' . __FUNCTION__); parent::papa(); } } var_dump('SON'); $boy = new son();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sBJ9g
function name:  (null)
number of ops:  14
compiled vars:  !0 = $boy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
   19     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAL                                                 'SON'
          9        DO_ICALL                                                 
   20    10        NEW                                              $4      'son'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !0, $4
         13      > RETURN                                                   1

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

End of function __construct

End of class papa.

Class son:
Function son:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sBJ9g
function name:  son
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'son-son'
          2        DO_ICALL                                                 
   15     3        INIT_STATIC_METHOD_CALL                                  'papa'
          4        DO_FCALL                                      0          
   16     5      > RETURN                                                   null

End of function son

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sBJ9g
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'papa-__construct'
          2        DO_ICALL                                                 
    9     3      > RETURN                                                   null

End of function __construct

End of class son.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.85 ms | 1396 KiB | 19 Q