3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("UTC"); $raw_data = strtotime("7/19/2014 8:00" . " " . "CST"); $timestamp = DateTime::createFromFormat('n/j/Y G:i T', $raw_data); echo $timestamp->format('Y-m-d G:i:s'); ?>

preferences:
32.6 ms | 402 KiB | 5 Q