3v4l.org

run code in 500+ PHP versions simultaneously
<?php function to_ascii_seven_segment( ... $numbers) { $g=fn($d)=>is_numeric($d)?hexdec(substr('00f59079d99ccded91fddd',$d+1<<1,2))<<1:0;$q=' |_'; $j=fn($c,$v,$s="\n")=>join($s,array_map($c,$v)); return @$j(fn($n)=>$j(fn($r)=>$j(fn($d)=> $q[0<($g($d)&1<<$r++)].$q[(0<($g($d)&1<<$r++))<<1].$q[0<($g($d)&1<<$r++)], str_split($n),''),range(0,9,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:
51.66 ms | 1576 KiB | 4 Q