3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $id = 137111668999534169; if (strlen($id) >= 18) { $ts = substr($id, 0, 10); $id = substr($id, 10); //$table = self::get_log_table($ts); } var_dump($id); var_dump($ts); var_dump (date("Y-m-d", $ts) == '2013-06-13');
Output for 4.3.0 - 7.2.0
string(8) "99534169" string(10) "1371116689" bool(true)