3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('dsiplay_errors', 'On'); error_reporting(-1); echo 'realpath: '.realpath("\0")."\n";
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Warning: realpath() expects parameter 1 to be a valid path, string given in /in/VYn5K on line 5 realpath:
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.0, 5.3.4 - 5.3.29
realpath:
Output for 5.2.3 - 5.3.3
realpath: /
Output for 5.2.1 - 5.2.2
realpath: /in