3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "brand:bmw model:e90 otherkey:this is a value otherkey2:another's value"; var_dump(explode(":",$str));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(5) { [0]=> string(5) "brand" [1]=> string(9) "bmw model" [2]=> string(12) "e90 otherkey" [3]=> string(25) "this is a value otherkey2" [4]=> string(15) "another's value" }