3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arg = array( 'auto_refresh' => '0', 'tags' => 'a,b,c'); $finalArg = array(); foreach($arg as $k=>$v){ $finalArg.= $k.'='.$v.'&'; } $finalArg = substr($finalArg,0,-1); echo $finalArg;
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/AuSX7 on line 7 Arrayauto_refresh=0&tags=a,b,c
Output for 4.3.0 - 5.3.29
Arrayauto_refresh=0&tags=a,b,c