3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array_fill(0,5,"~b"); $a[1] = "~a"; $begin = "{"; $end = "}"; $format2 = $begin . implode(",", $a) . $end; print_r($format2); $args = array("srinath", "kattula", "srikanth"); $params = array("name"=>$node_id, "service"=>"XMPP_GROUPCHAT_SERVICE", "host"=>"XMPP_HOST_DOMAIN"); $args = array_values($params); print_r($args);
based on rp6PF
Output for 5.5.0 - 7.3.0rc4
{~b,~a,~b,~b,~b} Notice: Undefined variable: node_id in /in/AC0CM on line 9 Array ( [0] => [1] => XMPP_GROUPCHAT_SERVICE [2] => XMPP_HOST_DOMAIN )