3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($bad, $test, $bad) { echo $bad; } foo('a','b','c');
Output for 7.0.0 - 7.0.7
Fatal error: Redefinition of parameter $bad in /in/KXR3h on line 2
Process exited with code 255.
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28
c

preferences:
160.53 ms | 997 KiB | 7 Q