3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "Ameerpet,|Jeans Corner: 040-50607090@05:45PM/6"; print_R(str_word_count($str,"/")); echo substr($str,strpos($str,'@')+1,strpos($str,"/"));
based on diI4b
Output for 7.0.0 - 7.2.0
Warning: str_word_count() expects parameter 2 to be integer, string given in /in/4k8cr on line 4 05:45PM/6
Output for 5.3.22 - 5.6.28
Warning: str_word_count() expects parameter 2 to be long, string given in /in/4k8cr on line 4 05:45PM/6