3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "ELVIS MASTAINE KANGABAM"; $hidden_name = substr($name 0, 3). str_repeat("x", length($name)-6) . substr($name , -3); echo $hidden_name;
Output for 7.0.0 - 7.0.23, 7.1.0 - 7.1.9
Parse error: syntax error, unexpected '0' (T_LNUMBER), expecting ',' or ')' in /in/dkWTv on line 5
Process exited with code 255.

preferences:
170.76 ms | 1008 KiB | 7 Q