3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '/Date(1576648800000)/'; if(preg_match('/\((\d+)\)/',$str,$matches) === 1){ $date = date("Y-m-d H:i:s",intval($matches[1]) / 1000); echo $date; }else{ throw new Exception('Unexpected format received from the API'); }

preferences:
159.82 ms | 405 KiB | 5 Q