3v4l.org

run code in 500+ PHP versions simultaneously
<?php define ('XXX', Bagr::GetNew()->n); // Fatal error interface IBagr {} class Bagr implements IBagr { public $n = 1; public static function GetNew() { return new Bagr(); } } echo XXX;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6EsPe
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'XXX'
          2        INIT_STATIC_METHOD_CALL                                      'Bagr', 'GetNew'
          3        DO_FCALL                                          0  $0      
          4        FETCH_OBJ_R                                          ~1      $0, 'n'
          5        SEND_VAL                                                     ~1
          6        DO_ICALL                                                     
    7     7        DECLARE_CLASS                                                'bagr'
   14     8        FETCH_CONSTANT                                       ~3      'XXX'
          9        ECHO                                                         ~3
         10      > RETURN                                                       1

Class IBagr: [no user functions]
Class Bagr:
Function getnew:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6EsPe
function name:  GetNew
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   NEW                                                  $0      'Bagr'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       $0
          3*     > RETURN                                                       null

End of function getnew

End of class Bagr.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.21 ms | 477 KiB | 8 Q