3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(implode('', array_slice(shuffle(str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ')), 0, 12)));
Output for 7.0.0 - 7.1.0
Notice: Only variables should be passed by reference in /in/BLCJU on line 3 Warning: array_slice() expects parameter 1 to be array, boolean given in /in/BLCJU on line 3 Warning: implode(): Invalid arguments passed in /in/BLCJU on line 3 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: array_slice expects an array or collection as argument 1 in /in/BLCJU on line 3 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/BLCJU on line 3 NULL
Output for 5.2.6 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/BLCJU on line 3 Warning: array_slice() expects parameter 1 to be array, boolean given in /in/BLCJU on line 3 Warning: implode(): Invalid arguments passed in /in/BLCJU on line 3 NULL
Output for 5.2.5
Strict Standards: Only variables should be passed by reference in /in/BLCJU on line 3 Warning: array_slice(): The first argument should be an array in /in/BLCJU on line 3 Warning: implode(): Invalid arguments passed in /in/BLCJU on line 3 NULL
Output for 5.1.0 - 5.2.4
Strict Standards: Only variables should be passed by reference in /in/BLCJU on line 3 Warning: array_slice(): The first argument should be an array in /in/BLCJU on line 3 Warning: implode(): Bad arguments. in /in/BLCJU on line 3 NULL
Output for 5.0.5
Fatal error: Only variables can be passed by reference in /in/BLCJU on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Warning: array_slice(): The first argument should be an array in /in/BLCJU on line 3 Warning: implode(): Bad arguments. in /in/BLCJU on line 3 NULL
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/BLCJU on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/BLCJU on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/BLCJU on line 3