3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "31-04-2013"; $s1 = strtok($str,"-"); $s2 = strtok("-"); $s3 = strtok("\n"); echo ("$s1 $s2 $s3"); $num = intval($s2) +4; echo (" $num\n"); echo(strtodate($str)); ?>
Output for 7.0.0 - 7.1.0
31 04 2013 8 Fatal error: Uncaught Error: Call to undefined function strtodate() in /in/W1iPo:13 Stack trace: #0 {main} thrown in /in/W1iPo on line 13
Process exited with code 255.
Output for 5.0.0 - 5.6.28
31 04 2013 8 Fatal error: Call to undefined function strtodate() in /in/W1iPo on line 13
Process exited with code 255.
Output for 4.4.5 - 4.4.9
31 04 2013 8 Fatal error: Call to undefined function: strtodate() in /in/W1iPo on line 13
Process exited with code 255.
Output for 4.3.2 - 4.4.4
31 04 2013 8 Fatal error: Call to undefined function: strtodate() in /in/W1iPo on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1
31 04 2013 8 Fatal error: Call to undefined function: strtodate() in /in/W1iPo on line 13