3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $names = array("John","Harry","Sam","Jake","Frank","Robert","Henry","Al"); $td = 1; echo "<table border='1' cellpadding='10' cellspacing='10'>"; echo "<tr>"; foreach($names AS $value) { do{ echo "<td>".$value."</td>"; $td++; }while{ $td <=4; } echo "</tr>"; } ?>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '{', expecting '(' in /in/cLuH8 on line 12
Process exited with code 255.