3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_flip('test'));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_flip() expects parameter 1 to be array, string given in /in/LJOLr on line 2 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: array_flip expects an array or collection in /in/LJOLr on line 2 NULL
Output for 4.3.2 - 5.2.17
Warning: array_flip(): The argument should be an array in /in/LJOLr on line 2 bool(false)
Output for 4.3.0 - 4.3.1
Warning: array_flip() [http://www.php.net/function.array-flip]: The argument should be an array in /in/LJOLr on line 2 bool(false)