3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( '2012-12-04', '12/04/2012', '12/13/2012', '13/12/2012', '04/12/2012' ); foreach($tests as $test){ $ts = strtotime($test); echo "$test : $ts : ".date('Y-m-d', $ts)." \n" }
Output for 5.3.0 - 5.3.19, 5.4.0 - 5.4.9
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/sA3Yd on line 12
Process exited with code 255.

preferences:
169.11 ms | 1387 KiB | 37 Q