3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "h@hotmail.com"; $em = explode("@", $email); $name = $em[0]; echo (strlen($name) > 3) ? substr($name, 0, 3) : "") . "@$em[1]";
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/lSYdi on line 8
Process exited with code 255.

preferences:
177.54 ms | 1399 KiB | 60 Q