3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i='4N4P19N7P1N1P2N2P'; print_r(preg_split('/(?<=\w)/',$i)); exit(); //foreach() preg_match_all('/(\d+)(\w)/',$i,$m,2); foreach($m as $p)$o.=str_repeat($p[2]=='N'?'=':'-',$p[1]); $a=str_repeat('_',$n=strlen($o=str_replace('--','- ',$o))); echo("$a\n\n\n$o\n\n$a\n");
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 4 [1] => N [2] => 4 [3] => P [4] => 1 [5] => 9 [6] => N [7] => 7 [8] => P [9] => 1 [10] => N [11] => 1 [12] => P [13] => 2 [14] => N [15] => 2 [16] => P [17] => )

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:
41.17 ms | 401 KiB | 8 Q