3v4l.org

run code in 300+ PHP versions simultaneously
<?php function log(string $msg, ...$args) { echo sprintf($msg, $args); } log('test %s', 'abc');
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Fatal error: Cannot redeclare log() in /in/tWtv3 on line 6
Process exited with code 255.

preferences:
175.34 ms | 1399 KiB | 35 Q