3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row['value'] = "1899.01.16" try { $date = new DateTime($row['value']); } catch (Exception $e) { echo $e->getMessage(); exit(1); } echo $date->format("F j, Y"); ?>
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'try' (T_TRY) in /in/Hbs7j on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_TRY in /in/Hbs7j on line 5
Process exited with code 255.