3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.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.