3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Nested\Name; class Test { public static function speak(string $name) { var_dump(self::class . '\' . $name); } } Test::speak('asdf');
Output for 8.0.0 - 8.0.1
Parse error: syntax error, unexpected identifier "asdf", expecting ")" in /in/Tt1uH on line 13
Process exited with code 255.
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.14
Parse error: syntax error, unexpected 'asdf' (T_STRING), expecting ')' in /in/Tt1uH on line 13
Process exited with code 255.

preferences:
189.78 ms | 1399 KiB | 51 Q