3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo substr(0, 8, implode('', str_shuffle(array_merge(range(0,9), range('a','z'), range('A','Z')))));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: str_shuffle() expects parameter 1 to be string, array given in /in/kn0Y5 on line 3 Warning: implode(): Invalid arguments passed in /in/kn0Y5 on line 3
Output for hhvm-3.12.0
Warning: str_shuffle() expects parameter 1 to be string, array given in /in/kn0Y5 on line 3 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/kn0Y5 on line 3 Warning: substr() expects parameter 3 to be integer, null given in /in/kn0Y5 on line 3
Output for hhvm-3.10.0
Warning: str_shuffle() expects parameter 1 to be string, array given in /in/kn0Y5 on line 3 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/kn0Y5 on line 3
Output for 5.2.5 - 5.2.17
Notice: Array to string conversion in /in/kn0Y5 on line 3 Warning: implode(): Invalid arguments passed in /in/kn0Y5 on line 3
Output for 4.3.2 - 5.2.4
Notice: Array to string conversion in /in/kn0Y5 on line 3 Warning: implode(): Bad arguments. in /in/kn0Y5 on line 3
Output for 4.3.0 - 4.3.1
Notice: Array to string conversion in /in/kn0Y5 on line 3 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/kn0Y5 on line 3