3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = array(); $additionalImagesPath = array('toto', 'tata'); $result['large_image'] = !is_null($additionalImagesPath) ? array_shift($additionalImagesPath) : ''; var_dump($result);
based on rvvlV
Output for 5.3.20 - 7.3.0rc4
array(1) { ["large_image"]=> string(4) "toto" }