3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'Players are (4): nana, nini, nunu, nono'; $str1 = 'nunu: (JH)'; $str2 = 'Bot draws - nana: (JH) Bot draws - nini: (JH) Bot draws - nunu: (JH) Bot draws - nono: (JH)'; $pplayer = preg_match("#^Players are ?(\((.*)\):)? (.*)$#i", $str, $pp); $player = array_map('trim', explode(',', $pp[3])); $endplayer = end($player); $sisaplayer = $pp[2]; $ppkartu = preg_match("#^([a-z0-9\-\._:]+) ?(\((.*)\))?$#i", $str1, $pk); $pkartu = $pk[2]; $pbdraw = preg_match('#^Bot draws - ([a-z0-9\-\._]+)\: ?(\((.*)\))?$#i', $str2, $pb); $pbplayer = $pb; $pbkartu = $pb[2]; print_r(call_User_Func_Array('array_Merge',$player));
Output for 5.3.0 - 7.1.0
Warning: array_merge(): Argument #1 is not an array in /in/Sdn1m on line 14
Output for 5.2.3 - 5.2.17
Warning: array_merge(): Argument #1 is not an array in /in/Sdn1m on line 14 Warning: array_merge(): Argument #2 is not an array in /in/Sdn1m on line 14 Warning: array_merge(): Argument #3 is not an array in /in/Sdn1m on line 14 Warning: array_merge(): Argument #4 is not an array in /in/Sdn1m on line 14
Output for 5.0.0 - 5.2.2
<br /> <b>Warning</b>: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in <b>/in/Sdn1m</b> on line <b>14</b><br /> <br /> <b>Warning</b>: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in <b>/in/Sdn1m</b> on line <b>14</b><br /> <br /> <b>Warning</b>: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #3 is not an array in <b>/in/Sdn1m</b> on line <b>14</b><br /> <br /> <b>Warning</b>: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #4 is not an array in <b>/in/Sdn1m</b> on line <b>14</b><br />
Output for 4.3.0 - 4.4.9
Array ( [0] => nana [1] => nini [2] => nunu [3] => nono )