3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 'hello form world.i am windows.i am linux '; $pieces = explode(".", $foo); for($i=0;$i<count($pieces);$i++){ $pieces[$i] = ucfirst($pieces[$i]); echo $pieces[$i].'<br>'; } $imp = implode(".", $pieces); echo $imp;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Hello form world<br>I am windows<br>I am linux <br>Hello form world.I am windows.I am linux