3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = 'test_one_two_three_four_five'; $path = str_replace('_', ' ', ($path)); $path = ucwords($path); <? echo basename ($path,".php"); ?>
Output for 5.3.0 - 5.3.21, 5.4.0 - 5.4.11
Parse error: syntax error, unexpected '<' in /in/SSgXu on line 6
Process exited with code 255.

preferences:
172.9 ms | 1395 KiB | 41 Q