3v4l.org

run code in 300+ PHP versions simultaneously
<?php function runTest(string $test = null) { return $test; } runTest("test");
Output for 7.0.33, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8

preferences:
66.73 ms | 402 KiB | 66 Q