3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $globalFilters = array( "w00tw00t.at.ISC.SANS.Win32", "Directory index forbidden by Options directive", "File does not exist: /home/webroot/front-end", "script not found or unable to stat: /home/webroot/cgi-bin" ); $serverFilters = array( 'admin' => array( "patate" ), 'api' => array(), 'conversion1b' => array(), 'dispatcher' => array(), 'gw' => array(), 'img' => array(), 'kiosk' => array(), 'monitoring' => array(), 'search' => array(), 'stage' => array(), 'statsm1a' => array(), 'statss1a' => array(), 'svn' => array(), 'transfer' => array(), 'web' => array(), 'website' => array(), ); if (isset($_REQUEST['server']) && isset($serverFilters[$_REQUEST['server']])) $globalFilters = array_merge($globalFilters, $serverFilters[$_REQUEST['server']]); $test = array_walk(function($value) { return preg_quote($value); }, $globalFilters); print "/" . implode("|", $test) . "/"; exit; ?>
Output for 5.3.0 - 5.4.21
Fatal error: Only variables can be passed by reference in /in/B6KJT on line 33
Process exited with code 255.