3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = ['a' => 1, 'b' => 2]; list($a, $b) = $arr;
Output for 7.0.0 - 7.3.0rc3
Notice: Undefined offset: 0 in /in/muYWZ on line 4 Notice: Undefined offset: 1 in /in/muYWZ on line 4
Output for hhvm-3.15.4
Notice: Undefined index: 0 in /in/muYWZ on line 4 Notice: Undefined index: 1 in /in/muYWZ on line 4
Output for 5.6.0 - 5.6.30
Notice: Undefined offset: 1 in /in/muYWZ on line 4 Notice: Undefined offset: 0 in /in/muYWZ on line 4