3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fromDate = $_POST['fromDate']; // 25-11-2013 $strFromDate = date("Y-m-d", strtotime($fromDate)); echo $strFromDate; // 2018-05-06
Output for 5.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Undefined index: fromDate in /in/siZsr on line 3 1970-01-01
Output for hhvm-3.12.0
Notice: Undefined index: fromDate in /in/siZsr on line 3 Warning: strtotime() expects parameter 1 to be string, null given in /in/siZsr on line 4 1970-01-01
Output for 5.1.2 - 5.2.17
Notice: Undefined index: fromDate in /in/siZsr on line 3 1970-01-01
Output for 5.1.1
Notice: Undefined index: fromDate in /in/siZsr on line 3 2013-11-25
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/siZsr on line 5
Process exited with code 255.
Output for 5.0.1 - 5.0.5
Notice: Undefined index: fromDate in /in/siZsr on line 3 Warning: strtotime(): Called with an empty time parameter. in /in/siZsr on line 4 1970-01-01
Output for 4.3.2 - 5.0.0
Notice: Undefined index: fromDate in /in/siZsr on line 3 Notice: strtotime(): Called with empty time parameter in /in/siZsr on line 4 2013-11-25
Output for 4.3.0 - 4.3.1
Notice: Undefined index: fromDate in /in/siZsr on line 3 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/siZsr on line 4 2013-11-25