3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = ' 22793 22796 21563 22383 22715 21318 22993 23025 23377 21442 23649 22677 22316 22920 23147 23022 22633 23433 22373 22461 21384 23156 23043 22829 23220 22413 22997 22253 22505 22398 22909 22928 23078 22249 23520 22416 23503 23105 21407 22586 22795 21410 21764 22971 23120 23368 21791 23535 22831 22351 22313 23580 22621 22061'; $a = explode("\n", $s); echo implode("&setid[]=", $a);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
&setid[]=22793&setid[]=22796&setid[]=21563&setid[]=22383&setid[]=22715&setid[]=21318&setid[]=22993&setid[]=23025&setid[]=23377&setid[]=21442&setid[]=23649&setid[]=22677&setid[]=22316&setid[]=22920&setid[]=23147&setid[]=23022&setid[]=22633&setid[]=23433&setid[]=22373&setid[]=22461&setid[]=21384&setid[]=23156&setid[]=23043&setid[]=22829&setid[]=23220&setid[]=22413&setid[]=22997&setid[]=22253&setid[]=22505&setid[]=22398&setid[]=22909&setid[]=22928&setid[]=23078&setid[]=22249&setid[]=23520&setid[]=22416&setid[]=23503&setid[]=23105&setid[]=21407&setid[]=22586&setid[]=22795&setid[]=21410&setid[]=21764&setid[]=22971&setid[]=23120&setid[]=23368&setid[]=21791&setid[]=23535&setid[]=22831&setid[]=22351&setid[]=22313&setid[]=23580&setid[]=22621&setid[]=22061