3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "ryat\0".str_repeat('i',1024); var_dump((readlink($str)));
Output for 5.4.40 - 5.4.45, 5.5.24 - 5.5.38, 5.6.8 - 7.1.0
Warning: readlink() expects parameter 1 to be a valid path, string given in /in/Q33pT on line 5 NULL
Output for 4.3.2 - 5.3.3, 5.4.0 - 5.4.39, 5.5.0 - 5.5.23, 5.6.0 - 5.6.7
Warning: readlink(): No such file or directory in /in/Q33pT on line 5 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/Q33pT on line 5 bool(false)