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

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Array change keys
0-2015|1-03|2-31|3-12|4-07|5-22|2015 03 31 12 07 22
Output for Lexical anon
0-2015|1-03|2-31|3-12|4-07|5-22|2015 03 31 12 07 22
Output for Typed properties
0-2015|1-03|2-31|3-12|4-07|5-22|2015 03 31 12 07 22

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