3v4l.org

run code in 300+ PHP versions simultaneously
<?php class nombreclase { function __construct() { echo __METHOD__,"\n"; } } function nombrefunc() { echo __FUNCTION__,"\n"; } const nombreconst = "global"; /* $a = 'nombreclase'; $obj = new $a; // imprime nombreclase::__construct $b = 'nombrefunc'; $b(); // imprime nombrefunc echo constant('nombreconst'), "\n"; // imprime global */ $aa = new nombreclase; nombrefunc(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NNCLl
function name:  (null)
number of ops:  7
compiled vars:  !0 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CONST                                            'nombreconst', 'global'
   23     1        NEW                                              $1      'nombreclase'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   24     4        INIT_FCALL                                               'nombrefunc'
          5        DO_FCALL                                      0          
   25     6      > RETURN                                                   1

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

End of function nombrefunc

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

End of function __construct

End of class nombreclase.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.93 ms | 1397 KiB | 14 Q