3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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