3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Evidence_Hub_Shortcode { const SHORTCODE = 'evidence_hub_shortcode'; public function __construct() { add_shortcode( $this->get_shortcode(), array( &$this, 'shortcode' )); // ... } protected function get_shortcode() { $class = get_class( $this ); return property_exists( $this, 'shortcode' ) ? $this->shortcode : static::SHORTCODE; } } class Evidence_Hub_Shortcode_GeoMap extends Evidence_Hub_Shortcode { const SHORTCODE = 'geomap'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MDvho
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E > > RETURN                                                   1

Class Evidence_Hub_Shortcode:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MDvho
function name:  __construct
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL_BY_NAME                                       'add_shortcode'
          1        INIT_METHOD_CALL                                         'get_shortcode'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR_NO_REF_EX                                       $0
          4        FETCH_THIS                                       $1      
          5        INIT_ARRAY                                       ~2      $1
          6        ADD_ARRAY_ELEMENT                                ~2      'shortcode'
          7        SEND_VAL_EX                                              ~2
          8        DO_FCALL                                      0          
   11     9      > RETURN                                                   null

End of function __construct

Function get_shortcode:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MDvho
function name:  get_shortcode
number of ops:  16
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_THIS                                       ~1      
          1        GET_CLASS                                        ~2      ~1
          2        ASSIGN                                                   !0, ~2
   16     3        INIT_FCALL                                               'property_exists'
          4        FETCH_THIS                                       ~4      
          5        SEND_VAL                                                 ~4
          6        SEND_VAL                                                 'shortcode'
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->12
          9    >   FETCH_OBJ_R                                      ~6      'shortcode'
         10        QM_ASSIGN                                        ~7      ~6
         11      > JMP                                                      ->14
         12    >   FETCH_CLASS_CONSTANT                             ~8      'SHORTCODE'
         13        QM_ASSIGN                                        ~7      ~8
         14    > > RETURN                                                   ~7
   17    15*     > RETURN                                                   null

End of function get_shortcode

End of class Evidence_Hub_Shortcode.

Class Evidence_Hub_Shortcode_GeoMap:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MDvho
function name:  __construct
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL_BY_NAME                                       'add_shortcode'
          1        INIT_METHOD_CALL                                         'get_shortcode'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR_NO_REF_EX                                       $0
          4        FETCH_THIS                                       $1      
          5        INIT_ARRAY                                       ~2      $1
          6        ADD_ARRAY_ELEMENT                                ~2      'shortcode'
          7        SEND_VAL_EX                                              ~2
          8        DO_FCALL                                      0          
   11     9      > RETURN                                                   null

End of function __construct

Function get_shortcode:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MDvho
function name:  get_shortcode
number of ops:  16
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_THIS                                       ~1      
          1        GET_CLASS                                        ~2      ~1
          2        ASSIGN                                                   !0, ~2
   16     3        INIT_FCALL                                               'property_exists'
          4        FETCH_THIS                                       ~4      
          5        SEND_VAL                                                 ~4
          6        SEND_VAL                                                 'shortcode'
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->12
          9    >   FETCH_OBJ_R                                      ~6      'shortcode'
         10        QM_ASSIGN                                        ~7      ~6
         11      > JMP                                                      ->14
         12    >   FETCH_CLASS_CONSTANT                             ~8      'SHORTCODE'
         13        QM_ASSIGN                                        ~7      ~8
         14    > > RETURN                                                   ~7
   17    15*     > RETURN                                                   null

End of function get_shortcode

End of class Evidence_Hub_Shortcode_GeoMap.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
294.08 ms | 1404 KiB | 16 Q