3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$str = "ryat\0".str_repeat('i',1024); $str = "a\0../in"; var_dump(readlink($str));
Output for 5.4.40 - 7.2.0
Warning: readlink() expects parameter 1 to be a valid path, string given in /in/GsSTt on line 6 NULL
Output for 4.3.2 - 5.3.3, 5.4.0 - 5.4.39
Warning: readlink(): No such file or directory in /in/GsSTt on line 6 bool(false)
Output for 5.3.4 - 5.3.29
bool(false)
Output for 4.3.0 - 4.3.1
Warning: readlink() [http://www.php.net/function.readlink]: No such file or directory in /in/GsSTt on line 6 bool(false)