3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testArray = array(-1, 0, 1, "Feb"); $i = 0; for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[i]; echo $testDate; echo strtotime($testDate), "\n"; echo date('r',strtotime($testDate)), "\n"; }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100
Output for hhvm-3.12.0
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 7 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 8 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 7 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 8 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 7 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 8 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 7 Warning: strtotime() expects parameter 1 to be string, null given in /in/ne177 on line 8 Thu, 01 Jan 1970 01:00:00 +0100
Output for 5.1.2 - 5.2.17
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Thu, 01 Jan 1970 01:00:00 +0100
Output for 5.1.0 - 5.1.1
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 1387635526 Sat, 21 Dec 2013 15:18:46 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 1387635526 Sat, 21 Dec 2013 15:18:46 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 1387635526 Sat, 21 Dec 2013 15:18:46 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 1387635526 Sat, 21 Dec 2013 15:18:46 +0100
Output for 5.0.4 - 5.0.5
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 01 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 01 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 01 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 01 Jan 1970 00:59:59 +0100
Output for 5.0.1 - 5.0.3
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 1 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 1 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 1 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 7 -1 Warning: strtotime(): Called with an empty time parameter. in /in/ne177 on line 8 Thu, 1 Jan 1970 00:59:59 +0100
Output for 4.3.2 - 5.0.0
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime(): Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100 Notice: Use of undefined constant i - assumed 'i' in /in/ne177 on line 5 Notice: Undefined index: i in /in/ne177 on line 5 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 7 1387580400 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/ne177 on line 8 Sat, 21 Dec 2013 00:00:00 +0100