3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fservice[0]['name'] = 'Air Con Re-Gas'; var_dump( str_word_count($fservice[0]['name'],1) );
based on glfSn
Output for 4.3.0 - 5.4.18, 5.4.20 - 5.5.2, 5.5.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(3) { [0]=> string(3) "Air" [1]=> string(3) "Con" [2]=> string(6) "Re-Gas" }
Output for 5.4.19, 5.5.3

Process exited with code 137.