3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "12-04-2013"; $s1 = strtok($str,"-"); $s2 = strtok($a1,"-"); $s3 = strtok($s2,"\n"); echo ("$s1 $s2 $s3"); ?>
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: a1 in /in/Iapgo on line 5 12
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a1 in /in/Iapgo on line 5 12