3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('a' => '1', 'b' => '2'); echo $arr['a'] ? $arr['a'] : $arr['b'];
Output for 4.3.0 - 7.1.0
1