3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regex = '@/(?<type_old>sell|buy|rent_available|rent_required|obmen)(?:/?(?<rss>rss))?/?/@'; $matches = []; echo preg_match($regex, 'buyrss', &$matches) . PHP_EOL; echo $matches['rss'] . PHP_EOL;
Output for 5.4.0 - 5.4.29
Fatal error: Call-time pass-by-reference has been removed in /in/5giCY on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/5giCY on line 4
Process exited with code 255.