3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '20/04/2013'; echo "\n"; echo date('Y-m-d', strtotime($data)); echo "<br />"; $data = '04/20/2013'; echo date('Y-m-d', strtotime($data)); echo "<br />"; $data = '2013-10-12'; echo date('d/m/Y', strtotime($data)); $array = array('HTML' => 'DB'); echo current(array_keys($array));
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1970-01-01<br />2013-04-20<br />12/10/2013HTML
Output for 5.0.5
2014-08-04<br />2013-04-20<br />12/10/2013 Fatal error: Only variables can be passed by reference in /in/nPcYn on line 14
Process exited with code 255.
Output for 4.3.0 - 5.0.4
2014-08-04<br />2013-04-20<br />12/10/2013HTML