3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "12-04-2013"; $s1 = strtok($str,"-"); $s2 = strtok($str,"-"); $s2 = strtok($str,"-"); echo ("$s1 <br/>$s2<br/>$s3"); ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: s3 in /in/m44Gt on line 8 12 <br/>12<br/>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: s3 in /in/m44Gt on line 8 12 <br/>12<br/>