3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "omceD evoL 1"; function reverseMe( String $string ) { if strlen($string > 1) { $reversedString = ReverseMe( substr($string, 1) ) . substr($string, 0, 1); } else { $reversedString = $string; } return $reversedString; } reverseMe($str);
Output for 7.1.0 - 7.1.14, 7.2.0 - 7.2.2
Parse error: syntax error, unexpected 'strlen' (T_STRING), expecting '(' in /in/CoinM on line 7
Process exited with code 255.

preferences:
165.33 ms | 1395 KiB | 25 Q