3v4l.org

run code in 500+ PHP versions simultaneously
<?php set_error_handler( function ( int $errorNo, string $errorString, string $file, int $line ) { echo PHP_EOL . "Catched!: $errorString"; }, E_ALL ); rtrim(null); function foo($param_optional = null, $param_required) { // some code }

preferences:
27.65 ms | 475 KiB | 4 Q