3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(range('a', 'z') as $letter){ try{ $date = new \DateTime($letter); var_dump($date); } catch(Exception $e){ var_dump($e); } }