3v4l.org

run code in 300+ PHP versions simultaneously
<?php function returns_null(): void { return null; // Fatal error: A void function must not return a value } try { returns_null(); echo "OK!"; } catch (Error $e) { echo "Error:"; var_dump($e); }

preferences:
50.02 ms | 402 KiB | 5 Q