3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! chdir('/var/www/'); echo realpath('./../../etc/passwd');
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: chdir(): No such file or directory (errno 2) in /in/6p2lZ on line 3 /etc/passwd
Output for hhvm-3.10.0 - 3.13.2
Warning: No such file or directory (errno 2) in /in/6p2lZ on line 3 /etc/passwd
Output for 4.3.0 - 4.3.1
Warning: chdir() [http://www.php.net/function.chdir]: No such file or directory (errno 2) in /in/6p2lZ on line 3 /etc/passwd