3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (false === empty($url)) { $url .= '/'; } return array_reduce( $parts, '.', $url );
Output for 7.0.20, 7.1.5 - 7.3.0rc4
Notice: Undefined variable: parts in /in/uetBq on line 9 Notice: Undefined variable: url in /in/uetBq on line 11 Warning: array_reduce() expects parameter 1 to be array, null given in /in/uetBq on line 11
Output for 7.0.0 - 7.0.14, 7.1.0
Notice: Undefined variable: parts in /in/uetBq on line 8 Notice: Undefined variable: url in /in/uetBq on line 10 Warning: array_reduce() expects parameter 1 to be array, null given in /in/uetBq on line 10
Output for 5.3.0 - 5.6.28
Notice: Undefined variable: parts in /in/uetBq on line 9 Notice: Undefined variable: url in /in/uetBq on line 12 Warning: array_reduce() expects parameter 1 to be array, null given in /in/uetBq on line 12
Output for 5.1.0 - 5.2.17
Notice: Undefined variable: parts in /in/uetBq on line 9 Notice: Undefined variable: url in /in/uetBq on line 12 Warning: array_reduce(): The first argument should be an array in /in/uetBq on line 12
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: parts in /in/uetBq on line 9 Notice: Undefined variable: url in /in/uetBq on line 11 Warning: array_reduce(): The first argument should be an array in /in/uetBq on line 12
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: parts in /in/uetBq on line 9 Notice: Undefined variable: url in /in/uetBq on line 11 Warning: array_reduce(): The first argument should be an array in /in/uetBq on line 12
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: parts in /in/uetBq on line 9 Notice: Undefined variable: url in /in/uetBq on line 11 Warning: array_reduce() [http://www.php.net/function.array-reduce]: The first argument should be an array in /in/uetBq on line 12