3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( '057.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.kharkov', 'ios' => 'https://itunes.apple.com/us/app/har-kov-city-guide/id791324172?mt=8'), '048.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.odessa', 'ios' => 'https://itunes.apple.com/us/app/odessa-city-guide/id791324468?mt=8'), '62.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.donetsk', 'ios' => 'https://itunes.apple.com/us/app/doneck-city-guide/id791324716?mt=8'), '061.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.zaporojie', 'ios' => 'https://itunes.apple.com/us/app/zaporoz-e-city-guide/id791334505?l=ru&ls=1&mt=8'), '0652.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.simferopol', 'ios' => 'https://itunes.apple.com/us/app/simferopol-city-guide/id791334772?l=ru&ls=1&mt=8'), '0642.ua'=>array('android' => '', 'ios' => ''), ''=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.lugansk', 'ios' => 'https://itunes.apple.com/us/app/lugansk-city-guide/id791331778?l=ru&ls=1&mt=8'), '032.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.lviv', 'ios' => 'https://itunes.apple.com/us/app/l-viv-city-guide/id791340901?l=ru&ls=1&mt=8'), '0512.com.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.nikolaev', 'ios' => 'https://itunes.apple.com/us/app/nikolaev-city-guide/id791340923?l=ru&ls=1&mt=8'), '0564.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.krivoirog', 'ios' => 'https://itunes.apple.com/us/app/krivoj-rog-city-guide/id791341424?l=ru&ls=1&mt=8'), '056.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.dnepropetrovsk', 'ios' => 'https://itunes.apple.com/us/app/dnepropetrovsk-city-guide/id791331539?mt=8'), 'go31.ru'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.belgorod', 'ios' => 'https://itunes.apple.com/us/app/belgorod-city-guide/id791478926?l=ru&ls=1&mt=8'), '0472.ua'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.cherkassi', 'ios' => 'https://itunes.apple.com/us/app/cerkassy-city-guide/id791478998?l=ru&ls=1&mt=8'), 'goroddomodedovo.ru'=>array('android' => 'https://play.google.com/store/apps/details?id=ua.com.citysites.domodedovo', 'ios' => 'https://itunes.apple.com/us/app/domodevo-city-guide/id791471674?l=ru&ls=1&mt=8') ); $emails = array('android' => '', 'ios' => ''), foreach($arr as $k => $v ){ $s = serialize($v); echo "UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = '".$s."' WHERE `url`.`url` = '".$k."';"; }
Output for 5.3.0 - 5.5.8
Parse error: syntax error, unexpected ',' in /in/c34K4 on line 18
Process exited with code 255.