3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(8) "99534169" string(10) "1371116689" bool(true)