3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ContentHelper extends Concrete5_Helper_Content { } class Concrete5_Helper_Content { public function getNames() { return array( '__CLASS__' => __CLASS__, 'get_class()' => get_class(), 'get_class($this)' => get_class($this) ); } } $ch = new ContentHelper(); var_dump($ch->getNames());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ol0Y
function name:  (null)
number of ops:  10
compiled vars:  !0 = $ch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'contenthelper', 'concrete5_helper_content'
   14     1        NEW                                              $1      'ContentHelper'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'getNames'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class ContentHelper: [no user functions]
Class Concrete5_Helper_Content:
Function getnames:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ol0Y
function name:  getNames
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_ARRAY                                       ~0      'Concrete5_Helper_Content', '__CLASS__'
    9     1        GET_CLASS                                        ~1      
          2        ADD_ARRAY_ELEMENT                                ~0      ~1, 'get_class%28%29'
   10     3        FETCH_THIS                                       ~2      
          4        GET_CLASS                                        ~3      ~2
          5        ADD_ARRAY_ELEMENT                                ~0      ~3, 'get_class%28%24this%29'
          6      > RETURN                                                   ~0
   12     7*     > RETURN                                                   null

End of function getnames

End of class Concrete5_Helper_Content.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1395 KiB | 15 Q