3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = array('utm_source', 'utm_medium', 'utm_campaign'); echo $_GET foreach ($tags as $tag){ $results[] = $_GET["{$tag}"]; } print_r($result);
Output for 5.4.0 - 5.4.20, 5.5.0 - 5.5.4
Parse error: syntax error, unexpected 'foreach' (T_FOREACH), expecting ',' or ';' in /in/INQS6 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_FOREACH, expecting ',' or ';' in /in/INQS6 on line 7
Process exited with code 255.

preferences:
180.08 ms | 1399 KiB | 61 Q