3v4l.org

run code in 200+ php & hhvm versions
<?php $formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd'); $position = 0; $parsedDate = $formatter->parse("2017-08-12", $position); var_dump($parsedDate, $position);
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.2.6
int(1502496000) int(10)