3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $header = array('Set-Cookie: A tua tia', 'Set-Cookie:Test','Set-cookie:atuatia'); foreach($header as $line) { if(stripos($line, 'Set-Cookie:') === 0)) { $line = trim(str_ireplace('Set-Cookie:', '', $line)); } echo $line.PHP_EOL; } ?>
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected ')' in /in/q1aj0 on line 5
Process exited with code 255.