3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('OG_SITE_NAME', 'Holaciudad.com'); $arrOpenGraphTags = array( 'og:type' => 'article', 'og:image' => 'http://placekitten.com/324x234'); if (defined('OG_SITE_NAME')) { $arrOpenGraphTags += array('og:site_name' => OG_SITE_NAME); } var_dump($arrOpenGraphTags);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { ["og:type"]=> string(7) "article" ["og:image"]=> string(30) "http://placekitten.com/324x234" ["og:site_name"]=> string(14) "Holaciudad.com" }