3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d H:i', preg_replace('/([\d]{1,2})\/([\d]{1,2})\/([\d]{4})/', '$3-$1-$2 00:00', '8/4/2014'));
based on HEAS4
Output for 5.1.0 - 7.1.0
Notice: A non well formed numeric value encountered in /in/R7PJA on line 3 1970-01-01 01:33
Output for 4.3.0 - 5.0.5
1970-01-01 01:33