3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "12-04-2013"; $s1 = strtok($str,"-"); $s2 = strtok("-"); $s3 = strtok("\n"); echo ("$s1 $s2 $s3"); $num = intval($s2); echo (" $num"); ?>
Output for 4.3.0 - 7.1.7
12 04 2013 4