3v4l.org

run code in 300+ PHP versions simultaneously
<?php function addFunction($arg) { parse_str($arg, $var); foreach ($var as $val) { echo $val, "\n" } } addFunction('variable1=value1&variable2=value2');
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.12
Parse error: syntax error, unexpected '}', expecting ',' or ';' in L0mI2 on line 9
Process exited with code 255.

preferences:
244.8 ms | 1395 KiB | 43 Q