3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testing(): never { echo 'testando...'; } $test = testing(); var_dump($test);
Output for 8.1rc3
testando... Fatal error: Uncaught TypeError: testing(): never-returning function must not implicitly return in /in/Mv0HC:7 Stack trace: #0 /in/Mv0HC(9): testing() #1 {main} thrown in /in/Mv0HC on line 7
Process exited with code 255.

preferences:
27.05 ms | 455 KiB | 5 Q