3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace YOLOLOLO; function exit(... $args) { foreach ($args as $arg) { print_r($arg); } \exit; } exit("YOLO", "SUP", ["dup", "d'oh"]);
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.21, 7.0.5 - 7.0.6
Parse error: syntax error, unexpected 'exit' (T_EXIT), expecting '(' in /in/tTJ1Y on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Parse error: syntax error, unexpected 'exit' (T_EXIT), expecting identifier (T_STRING) or '(' in /in/tTJ1Y on line 4
Process exited with code 255.

preferences:
184.57 ms | 1399 KiB | 71 Q