3v4l.org

run code in 300+ PHP versions simultaneously
<?php function whole($one, $two) { /* ... */ echo $one; } $partial = whole(?, 2); $partial('one');
Output for 8.0.0 - 8.0.19, 8.1.0 - 8.1.6
Parse error: syntax error, unexpected token "?" in /in/cUYmZ on line 8
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.29
Parse error: syntax error, unexpected '?' in /in/cUYmZ on line 8
Process exited with code 255.

preferences:
40.6 ms | 410 KiB | 5 Q