3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $info = array('tr'=>'coffee', 'tr1'=>'brown', 'tr2'=>'caffeine'); // Listing all the variables list($drink, $color, $power) = $info; echo "$drink is $color and $power makes it special.\n";
Output for 7.0.0 - 7.1.0
Notice: Undefined offset: 0 in /in/fOjBf on line 5 Notice: Undefined offset: 1 in /in/fOjBf on line 5 Notice: Undefined offset: 2 in /in/fOjBf on line 5 is and makes it special.
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28
Notice: Undefined offset: 2 in /in/fOjBf on line 5 Notice: Undefined offset: 1 in /in/fOjBf on line 5 Notice: Undefined offset: 0 in /in/fOjBf on line 5 is and makes it special.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined offset: 2 in /in/7KQ7h on line 5 Notice: Undefined offset: 1 in /in/7KQ7h on line 5 Notice: Undefined offset: 0 in /in/7KQ7h on line 5 is and makes it special.
Output for 4.3.1 - 5.2.17
Notice: Undefined offset: 2 in /in/7KQ7h on line 5 Notice: Undefined offset: 1 in /in/7KQ7h on line 5 Notice: Undefined offset: 0 in /in/7KQ7h on line 5 is and makes it special.
Output for 4.3.0
Notice: Undefined offset: 2 in /in/fOjBf on line 5 Notice: Undefined offset: 1 in /in/fOjBf on line 5 Notice: Undefined offset: 0 in /in/fOjBf on line 5 is and makes it special.