3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <?php //$tlds=array("co", "ca", "bz", "us", "tv", "bar", "ch", "cz", "dk", "eu", "io", "kr", "la", "nl", "pe", "ph", "pl", "ru", "se", "sg", "ws"); $tlds=array("be"); $letters="abcdefghijklmnopqrstuvwxyz"; $letters=str_split($letters); srand(123); shuffle($letters); $domains=array(); $i=0; foreach($tlds as $tld) { foreach ($letters as $letter) { for ($digit=0; $digit<=9; $digit++) { echo "$letter$digit.$tld\n"; $i++; if ($i==500) { echo "---------------------------------\n"; $i=0; } } } }
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '<', expecting end of file in /in/MT59i on line 3
Process exited with code 255.
Output for 5.3.22 - 5.6.17
Parse error: syntax error, unexpected '<' in /in/MT59i on line 3
Process exited with code 255.