3v4l.org

run code in 300+ PHP versions simultaneously
<?php example(10); function example($argument) { unset($argument); var_dump(func_get_args()); }
Output for 7.1.10 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9
array(1) { [0]=> NULL }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
array(0) { }
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
array(1) { [0]=> int(10) }

preferences:
206.18 ms | 402 KiB | 236 Q