3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$str = "ryat\0".str_repeat('i',1024); //link('/in/01E2M','b'); //$str = "/vmlinuz"; //var_dump(readlink($str)); $a = tempnam("/tmp", ""); $b = tempnam("/tmp", ""); link($a,$b); var_dump(readlink($b));
Output for 4.3.2 - 7.2.0
Warning: link(): File exists in /in/XLo9t on line 11 Warning: readlink(): Invalid argument in /in/XLo9t on line 12 bool(false)
Output for 4.3.0 - 4.3.1
Warning: link() [http://www.php.net/function.link]: File exists in /in/XLo9t on line 11 Warning: readlink() [http://www.php.net/function.readlink]: Invalid argument in /in/XLo9t on line 12 bool(false)