3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('DS', DIRECTORY_SEPARATOR); $str = 'template/base/files/js\jquery1.11.min.js'; $str = str_replace($str, array('\\', '/'), DS); echo $str;
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/XK2qM on line 4 /
Output for hhvm-3.10.0 - 3.12.0
Notice: Array to string conversion in /in/XK2qM on line 4 Notice: Array to string conversion in /in/XK2qM on line 4 /