3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array("旅游","汽车","电商","财经","奢侈品","电子银行","社交社区","游戏","运动健身","新闻","娱乐","体育","时尚","彩票","餐饮美食","阅读","外卖团购"); $id=1; froeach($arr=>$a){ echo '"'.$id.'","'.$a.'","'.'""'; $id++; }
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.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/vS5m2 on line 4
Process exited with code 255.

preferences:
166.03 ms | 1395 KiB | 24 Q