3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function demo() { return array( 'demo1' => 'asd', 'demo2' => 'dfg', 'demo3' => 'ghj', ); } list($demo1, $demo2, $demo3) = demo(); var_dump($demo1, $demo2, $demo3);
Output for 7.0.0 - 7.1.0
Notice: Undefined offset: 0 in /in/IV4ui on line 13 Notice: Undefined offset: 1 in /in/IV4ui on line 13 Notice: Undefined offset: 2 in /in/IV4ui on line 13 NULL NULL NULL
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: 2 in /in/IV4ui on line 13 Notice: Undefined index: 1 in /in/IV4ui on line 13 Notice: Undefined index: 0 in /in/IV4ui on line 13 NULL NULL NULL
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28
Notice: Undefined offset: 2 in /in/IV4ui on line 13 Notice: Undefined offset: 1 in /in/IV4ui on line 13 Notice: Undefined offset: 0 in /in/IV4ui on line 13 NULL NULL NULL
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined offset: 2 in /in/0frh4 on line 13 Notice: Undefined offset: 1 in /in/0frh4 on line 13 Notice: Undefined offset: 0 in /in/0frh4 on line 13 NULL NULL NULL
Output for 4.3.1 - 5.2.17
Notice: Undefined offset: 2 in /in/0frh4 on line 13 Notice: Undefined offset: 1 in /in/0frh4 on line 13 Notice: Undefined offset: 0 in /in/0frh4 on line 13 NULL NULL NULL
Output for 4.3.0
Notice: Undefined offset: 2 in /in/IV4ui on line 13 Notice: Undefined offset: 1 in /in/IV4ui on line 13 Notice: Undefined offset: 0 in /in/IV4ui on line 13 NULL NULL NULL