3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array("a"=> "fdsfd","b"=>"123","c"=> "erwe4233"); //list($a, $b, $c) = $arr; array_map("sss", $arr); array_walk($arr,"sss"); function sss($m="mmm", $n="nnn") { echo $m."::".$n."\n"; } var_dump($a); var_dump($b); var_dump($c);
based on uC3sP
Output for 5.0.4 - 7.3.0rc4
fdsfd::nnn 123::nnn erwe4233::nnn fdsfd::a 123::b erwe4233::c Notice: Undefined variable: a in /in/ucDa1 on line 9 NULL Notice: Undefined variable: b in /in/ucDa1 on line 10 NULL Notice: Undefined variable: c in /in/ucDa1 on line 11 NULL
Output for 4.3.0 - 5.0.3
fdsfd::nnn 123::nnn erwe4233::nnn fdsfd::a 123::b erwe4233::c Notice: Undefined variable: a in /in/ucDa1 on line 9 NULL Notice: Undefined variable: b in /in/ucDa1 on line 10 NULL Notice: Undefined variable: c in /in/ucDa1 on line 11 NULL