3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = 'Unser nächster Inbound ist da'; $tagName = preg_replace('/[^\w-_ÄÖÜäöüß]/', '', $title); var_dump($tagName); $tagName = preg_replace('/[^\w-_ÄÖÜäöüß]/', ' ', $title); var_rump(ucfirst($tagName))
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Parse error: syntax error, unexpected end of file in /in/jdfUp on line 8
Process exited with code 255.

preferences:
193.41 ms | 1395 KiB | 67 Q