3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "Hi My name is firas. yeah. third sentnece. umhm"; $sentences = explode('.', $text); $max_sentences = count($sentences); var_dump( $max_sentences, $sentences);
Output for 4.3.0 - 7.2.0
int(4) array(4) { [0]=> string(19) "Hi My name is firas" [1]=> string(5) " yeah" [2]=> string(15) " third sentnece" [3]=> string(5) " umhm" }