3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr=array("旅游","汽车","电商","财经","奢侈品","电子银行","社交社区","游戏","运动健身","新闻","娱乐","体育","时尚","彩票","餐饮美食","阅读","外卖团购"); $id=1; froeach($arr=>$a){ echo '"'.$id.'","'.$a.'","'.'""'; $id++; }
based on 6hs0Q
Output for 7.0.0
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in /in/vS5m2 on line 4
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/vS5m2 on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/vS5m2 on line 4
Process exited with code 255.