3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encriptar_email($email) { $partes = str_split(trim($email)); $nuevo = ''; foreach ($partes as $valor) { $nuevo .= '&#'.ord($valor).';'; } return $nuevo; } echo encriptar_mail('abc123')
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/3XTC3 on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/3XTC3 on line 15
Process exited with code 255.

preferences:
169.98 ms | 1395 KiB | 60 Q