3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Palindrome { public static function isPalindrome($str) { str_replace($str, "^[^A-Za-z]", '') echo $str; throw new Exception('Not implemented'); } } // For testing purposes (do not submit uncommented): echo Palindrome::isPalindrome('Noel sees Leon.');
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/RZn4F on line 7
Process exited with code 255.

preferences:
152.52 ms | 1399 KiB | 22 Q