3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface ITest { public function apfel(): mixed; } class Test implements ITest { public function apfel(): array { return []; } } var_dump((new Test())->apfel());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PXDB6
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'test'
   16     1        INIT_FCALL                                                   'var_dump'
          2        NEW                                                  $0      'Test'
          3        DO_FCALL                                          0          
          4        INIT_METHOD_CALL                                             $0, 'apfel'
          5        DO_FCALL                                          0  $2      
          6        SEND_VAR                                                     $2
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Class ITest:
Function apfel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PXDB6
function name:  apfel
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   VERIFY_RETURN_TYPE                                           
          1      > RETURN                                                       null

End of function apfel

End of class ITest.

Class Test:
Function apfel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PXDB6
function name:  apfel
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                       <array>
   13     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function apfel

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.4 ms | 2017 KiB | 14 Q