3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $path = join(DIRECTORY_SEPARATOR, array('root', 'lib', 'file.php')); var_dump($path);
based on vsGdI
Output for 4.3.0 - 7.2.0
string(17) "root/lib/file.php"