3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php symlink('/tmp', '/tmp/ryat'); var_dump(readlink('/tmp/ryat'."\0".'ryat'));
Output for 5.4.40 - 5.4.45, 5.5.24 - 5.5.36, 5.6.8 - 5.6.28, 7.0.0 - 7.1.0
Warning: readlink() expects parameter 1 to be a valid path, string given in /in/snKL7 on line 3 NULL
Output for 4.3.0 - 5.3.3, 5.4.0 - 5.4.39, 5.5.0 - 5.5.23, 5.6.0 - 5.6.7, hhvm-3.10.0 - 3.12.0
string(4) "/tmp"
Output for 5.3.4 - 5.3.29
bool(false)