3v4l.org

run code in 500+ PHP versions simultaneously
<?php function to_ascii_seven_segment( ... $numbers) { return implode("\n",array_map(fn($n)=>implode("\n",array_map(fn($r)=>join('',array_map(fn($d)=>substr( " _ _ _ _ _ _ _ _ ". " | | | _| _| |_| |_ |_ | |_| |_| ". " |_| | |_ _| | _| |_| | |_| _| " ,$r*44+4*(array_search($d,str_split(" 0123456789"))),4),str_split($n))),range(0,3))), $numbers)); } echo to_ascii_seven_segment( '1337', '7083170', '5318008', '53177187714' );
Output for rfc.property-hooks, git.master, git.master_jit
_ _ _ | _| _| | | _| _| | _ _ _ _ _ _ | | | |_| _| | | | | | |_| |_| _| | | |_| _ _ _ _ _ _ |_ _| | |_| | | | | |_| _| _| | |_| |_| |_| |_| _ _ _ _ _ _ _ |_ _| | | | | |_| | | | |_| _| _| | | | | |_| | | | |

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:
49.46 ms | 1581 KiB | 4 Q