3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hash($key): string { return $key; } var_dump(hash(1));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Fatal error: Cannot redeclare hash() in /in/rqlUE on line 6
Process exited with code 255.

preferences:
166.27 ms | 1395 KiB | 35 Q