3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array(); $test[] = 1; $test[] = 2; echo $test.join(', ');
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: join(): Argument must be an array in /in/1Acao on line 5 Notice: Array to string conversion in /in/1Acao on line 5 Array
Output for hhvm-3.12.0
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/1Acao on line 5 Notice: Array to string conversion in /in/1Acao on line 5 Array
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.5 - 5.3.29
Warning: join(): Argument must be an array in /in/1Acao on line 5 Array
Output for 4.3.2 - 5.2.4
Warning: join(): Argument to implode must be an array. in /in/1Acao on line 5 Array
Output for 4.3.0 - 4.3.1
Warning: join() [http://www.php.net/function.join]: Argument to implode must be an array. in /in/1Acao on line 5 Array