3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { public function active(): static { return new Test(); } } Test::active();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NaVPJ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                      'Test', 'active'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Class Test:
Function active:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NaVPJ
function name:  active
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $0      'Test'
          1        DO_FCALL                                          0          
          2        VERIFY_RETURN_TYPE                                           $0
          3      > RETURN                                                       $0
    8     4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of function active

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.39 ms | 1602 KiB | 13 Q