3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $col = 0; foreach (range(1,100) as $num) { echo $num; if (++$col == 2) { $col = 0; echo '\n'; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
12\n34\n56\n78\n910\n1112\n1314\n1516\n1718\n1920\n2122\n2324\n2526\n2728\n2930\n3132\n3334\n3536\n3738\n3940\n4142\n4344\n4546\n4748\n4950\n5152\n5354\n5556\n5758\n5960\n6162\n6364\n6566\n6768\n6970\n7172\n7374\n7576\n7778\n7980\n8182\n8384\n8586\n8788\n8990\n9192\n9394\n9596\n9798\n99100\n