5 added 84 characters in body
source | link

PHP 5.3, 55 53 5151 50 bytes

<?for(;$i<strlen($a);){echo$a{$i++}!=' '?'*':"\n";"
";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Helloa="This World"is an example histogram of word length"

Output:
*****
*****

****
**
**
*******
*********
**
****
******

PHP 5.3, 55 53 51 bytes

<?for(;$i<strlen($a);){echo$a{$i++}!=' '?'*':"\n";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Hello World"

Output:
*****
*****

PHP 5.3, 55 53 51 50 bytes

<?for(;$i<strlen($a);){echo$a{$i++}!=' '?'*':"
";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="This is an example histogram of word length"

Output:

****
**
**
*******
*********
**
****
******
4 added 8 characters in body
source | link

PHP 5.3, 55 5353 51 bytes

<?for(;$i<strlen($a);){echo($aecho$a{$i++})!=' '?'*':"\n";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Hello World"

Output:
*****
*****

PHP 5.3, 55 53 bytes

<?for(;$i<strlen($a);){echo($a{$i++})!=' '?'*':"\n";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Hello World"

Output:
*****
*****

PHP 5.3, 55 53 51 bytes

<?for(;$i<strlen($a);){echo$a{$i++}!=' '?'*':"\n";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Hello World"

Output:
*****
*****

3 added 84 characters in body
source | link

PHP 5.3, 55 53 bytes

<?for(;$i<strlen($a);){echo($a{$i++})!=' '?'*':"\n";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Hello World"

Output:
*****
*****

PHP 5.3, 55 53 bytes

<?for(;$i<strlen($a);){echo($a{$i++})!=' '?'*':"\n";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Hello World"

PHP 5.3, 55 53 bytes

<?for(;$i<strlen($a);){echo($a{$i++})!=' '?'*':"\n";}


Usage:
Call the Script and define a global variable ($a)
php -d error_reporting=0 script.php?a="Hello World"

Output:
*****
*****

2 added 8 characters in body
source | link
1
source | link