3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $subscriptions = array('portail', 'espace1', 'espace2'); //foreach ($subscriptions as $subscription) { $subList = implode(", ", subscriptions); //} echo $subList;
Output for 7.2.0 - 7.3.0rc3
Warning: Use of undefined constant subscriptions - assumed 'subscriptions' (this will throw an Error in a future version of PHP) in /in/iM4a2 on line 6 Warning: implode(): Invalid arguments passed in /in/iM4a2 on line 6
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.20
Notice: Use of undefined constant subscriptions - assumed 'subscriptions' in /in/iM4a2 on line 6 Warning: implode(): Invalid arguments passed in /in/iM4a2 on line 6
Output for hhvm-3.12.14 - 3.17.3
Notice: Use of undefined constant subscriptions - assumed 'subscriptions' in /in/iM4a2 on line 6 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/iM4a2 on line 6