3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unfurlLinkUrl(string $url) { echo "PASS", PHP_EOL; } unfurlLinkUrl(null);
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: unfurlLinkUrl(): Argument #1 ($url) must be of type string, null given, called in /in/YhJDG on line 8 and defined in /in/YhJDG:3 Stack trace: #0 /in/YhJDG(8): unfurlLinkUrl(NULL) #1 {main} thrown in /in/YhJDG on line 3
Process exited with code 255.

preferences:
93.24 ms | 402 KiB | 89 Q