3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php symlink('/tmp', '/tmp/ryat'."\0"); var_dump(readlink('/tmp/ryat'."\0".'ryat'));
Output for 5.4.40 - 5.5.35, 5.6.8 - 7.2.6
Warning: symlink() expects parameter 2 to be a valid path, string given in /in/gp1fF on line 2 Warning: readlink() expects parameter 1 to be a valid path, string given in /in/gp1fF on line 3 NULL
Output for 5.4.0 - 5.4.39, 5.6.7
Warning: symlink() expects parameter 2 to be a valid path, string given in /in/gp1fF on line 2 Warning: readlink(): No such file or directory in /in/gp1fF on line 3 bool(false)
Output for 5.3.4 - 5.3.29
bool(false)
Output for 4.3.0 - 5.3.3
string(4) "/tmp"