3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateStart = '2016*12*31'; list($yS, $mS, $dS) = preg_split('/[\/\.-]/', $dateStart); echo $dS;
Output for 5.3.18
Notice: Undefined offset: 2 in /in/6JZq9 on line 3 Notice: Undefined offset: 1 in /in/6JZq9 on line 3