3v4l.org

run code in 500+ PHP versions simultaneously
<?php const A = 'b::c'; class B { static function C() { echo __METHOD__; } } //valid call to \B::C() constant('A')(); // class A not found //new A; // Call to undefined function A() A(); // parse error, this is not supported //{A}();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c16hv
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                                'A', 'b%3A%3Ac'
   11     1        INIT_FCALL                                                   'constant'
          2        SEND_VAL                                                     'A'
          3        DO_ICALL                                             $0      
          4        INIT_DYNAMIC_CALL                                            $0
          5        DO_FCALL                                          0          
   17     6        INIT_FCALL_BY_NAME                                           'A'
          7        DO_FCALL                                          0          
   20     8      > RETURN                                                       1

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

End of function c

End of class B.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
148.81 ms | 1479 KiB | 14 Q