3v4l.org

run code in 300+ PHP versions simultaneously
<?php function answer (string) { return string.split("").reverse().join(""); } answer("syawyna sresol rof si qnittiuq");
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Parse error: syntax error, unexpected '(string)' (string) (T_STRING_CAST), expecting '(' in /in/gjCMZ on line 2
Process exited with code 255.

preferences:
165.99 ms | 1395 KiB | 35 Q