3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function chinese_date($timestamp, $output_delimiter = ' '){ $info_arr = explode(' ',date('Y m d H i s',strtotime('now'))); return implode($output_delimiter, array_map(function($v,$k){ echo $k.'-'.$v.'|'; return $v; }, $info_arr, array_keys($info_arr))); } echo chinese_date('now');
based on v6YUO