3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.26, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ')' in /in/q1aj0 on line 5
Process exited with code 255.

preferences:
176.58 ms | 1395 KiB | 52 Q