3v4l.org

run code in 300+ PHP versions simultaneously
<?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){ switch($k){ case '0': // 处理年 return $v.'年'; case '1': // 处理月 return $v; default: // 不做处理的 return $v; break; } }, $info_arr, array_keys($info_arr))); } echo chinese_date('now','*');
Output for git.master, git.master_jit, rfc.property-hooks
2015年*03*31*12*11*04

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
69.13 ms | 401 KiB | 8 Q