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); }

This is an error 404

There are `0` results


preferences:
131.6 ms | 1414 KiB | 7 Q