3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $a="1,2,3"; $v=explode(",",$a); echo $v[1]; ?>
Output for 5.4.34 - 7.2.0
2
Output for 4.3.0 - 5.4.32
<? $a="1,2,3"; $v=explode(",",$a); echo $v[1]; ?>