3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variables['options']['attributes'] = [ 'attribute1' => 'value', 'href' => 'http://www.google.com.mx', 'attribute2' => 'value 2' ]; $attributes = array('href' => '') + $variables['options']['attributes']; print_r($attributes);

preferences:
23.84 ms | 402 KiB | 5 Q