3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array(); $test[] = 1; $test[] = 2; echo $test.join(', ');
Output for 5.4.0 - 7.2.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 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