3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $info = array('q0'=>'coffee', 'q1'=>'brown', 'q2'=>'caffeine'); var_dump(($info)); $info = implode(",",$info); echo $info; var_dump(explode(",",$info));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(3) { ["q0"]=> string(6) "coffee" ["q1"]=> string(5) "brown" ["q2"]=> string(8) "caffeine" } coffee,brown,caffeinearray(3) { [0]=> string(6) "coffee" [1]=> string(5) "brown" [2]=> string(8) "caffeine" }