3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i='4N4P9N7P1N1P2N2P'; preg_match_all('/(\d+)(\w)/',$i,$m,2); foreach($m as $p){$k=$p[1];$o.=($p[2]=='N')?str_repeat('=',$k):str_repeat('- ',$k/2-$k%2).($k%2?'-':'');} $a=str_repeat('_',$n=strlen($o)); echo("$a\n\n\n$o\n\n$a\n");
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $o in /in/WIedb on line 5 Deprecated: Implicit conversion from float 2.5 to int loses precision in /in/WIedb on line 5 Deprecated: Implicit conversion from float -0.5 to int loses precision in /in/WIedb on line 5 ____________________________ ====- - =========- - -=-==- ____________________________

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:
56.36 ms | 402 KiB | 8 Q