3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arg = array( 'auto_refresh' => '0', 'tags' => 'a,b,c'); foreach($arg as $k=>$v){ $finalArg.= $k.'='.$v.'&'; } $finalArg = substr($finalArg,0,-1); echo $finalArg;
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: finalArg in /in/d7r8Z on line 5 auto_refresh=0&tags=a,b,c
Output for hhvm-3.10.0 - 3.13.2
auto_refresh=0&tags=a,b,c
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: finalArg in /in/d7r8Z on line 5 auto_refresh=0&tags=a,b,c