3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface Runnable { public function run(): ?stdClass; } class ImplementorRunnable implements Runnable { /** * @return never */ public function run() { throw new \Exception('test'); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aZ2cq
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'implementorrunnable'
   17     1      > RETURN                                                       1

Class Runnable:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aZ2cq
function name:  run
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 run

End of class Runnable.

Class ImplementorRunnable:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/aZ2cq
function name:  run
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $0      'Exception'
          1        SEND_VAL_EX                                                  'test'
          2        DO_FCALL                                          0          
          3      > THROW                                             0          $0
   16     4*     > RETURN                                                       null

End of function run

End of class ImplementorRunnable.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.18 ms | 1463 KiB | 13 Q