3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'a|b'; $aa = 'a,b'; $b = explode(',', $a); print_r($b); var_dump($b);
based on sSUJV
Output for 4.3.0 - 7.2.0
Array ( [0] => a|b ) array(1) { [0]=> string(3) "a|b" }