<?php $s=fgets(STDIN);echo $s!=''?implode(' ',array_map(function($x){return strlen($x);},preg_split('/(?<!^)(?!$)/u',$s))):'';
ĉaŭ
1 2 1 1 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!