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' => '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') ); foreach($arr as $k => $v ){ $s = serialize($v); echo "UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = '".$s."' WHERE `city_code` = 'www.".$k."';".PHP_EOL; }
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:70:"https://play.google.com/store/apps/details?id=ua.com.citysites.kharkov";s:3:"ios";s:67:"https://itunes.apple.com/us/app/har-kov-city-guide/id791324172?mt=8";}' WHERE `city_code` = 'www.057.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:69:"https://play.google.com/store/apps/details?id=ua.com.citysites.odessa";s:3:"ios";s:66:"https://itunes.apple.com/us/app/odessa-city-guide/id791324468?mt=8";}' WHERE `city_code` = 'www.048.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:70:"https://play.google.com/store/apps/details?id=ua.com.citysites.donetsk";s:3:"ios";s:66:"https://itunes.apple.com/us/app/doneck-city-guide/id791324716?mt=8";}' WHERE `city_code` = 'www.62.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:72:"https://play.google.com/store/apps/details?id=ua.com.citysites.zaporojie";s:3:"ios";s:79:"https://itunes.apple.com/us/app/zaporoz-e-city-guide/id791334505?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.061.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:73:"https://play.google.com/store/apps/details?id=ua.com.citysites.simferopol";s:3:"ios";s:80:"https://itunes.apple.com/us/app/simferopol-city-guide/id791334772?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0652.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:70:"https://play.google.com/store/apps/details?id=ua.com.citysites.lugansk";s:3:"ios";s:77:"https://itunes.apple.com/us/app/lugansk-city-guide/id791331778?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0642.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:67:"https://play.google.com/store/apps/details?id=ua.com.citysites.lviv";s:3:"ios";s:75:"https://itunes.apple.com/us/app/l-viv-city-guide/id791340901?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.032.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:71:"https://play.google.com/store/apps/details?id=ua.com.citysites.nikolaev";s:3:"ios";s:78:"https://itunes.apple.com/us/app/nikolaev-city-guide/id791340923?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0512.com.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:72:"https://play.google.com/store/apps/details?id=ua.com.citysites.krivoirog";s:3:"ios";s:80:"https://itunes.apple.com/us/app/krivoj-rog-city-guide/id791341424?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0564.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:77:"https://play.google.com/store/apps/details?id=ua.com.citysites.dnepropetrovsk";s:3:"ios";s:74:"https://itunes.apple.com/us/app/dnepropetrovsk-city-guide/id791331539?mt=8";}' WHERE `city_code` = 'www.056.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:71:"https://play.google.com/store/apps/details?id=ua.com.citysites.belgorod";s:3:"ios";s:78:"https://itunes.apple.com/us/app/belgorod-city-guide/id791478926?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.go31.ru'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:72:"https://play.google.com/store/apps/details?id=ua.com.citysites.cherkassi";s:3:"ios";s:78:"https://itunes.apple.com/us/app/cerkassy-city-guide/id791478998?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0472.ua'; UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:73:"https://play.google.com/store/apps/details?id=ua.com.citysites.domodedovo";s:3:"ios";s:78:"https://itunes.apple.com/us/app/domodevo-city-guide/id791471674?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.goroddomodedovo.ru';
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:70:"https://play.google.com/store/apps/details?id=ua.com.citysites.kharkov";s:3:"ios";s:67:"https://itunes.apple.com/us/app/har-kov-city-guide/id791324172?mt=8";}' WHERE `city_code` = 'www.057.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:69:"https://play.google.com/store/apps/details?id=ua.com.citysites.odessa";s:3:"ios";s:66:"https://itunes.apple.com/us/app/odessa-city-guide/id791324468?mt=8";}' WHERE `city_code` = 'www.048.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:70:"https://play.google.com/store/apps/details?id=ua.com.citysites.donetsk";s:3:"ios";s:66:"https://itunes.apple.com/us/app/doneck-city-guide/id791324716?mt=8";}' WHERE `city_code` = 'www.62.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:72:"https://play.google.com/store/apps/details?id=ua.com.citysites.zaporojie";s:3:"ios";s:79:"https://itunes.apple.com/us/app/zaporoz-e-city-guide/id791334505?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.061.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:73:"https://play.google.com/store/apps/details?id=ua.com.citysites.simferopol";s:3:"ios";s:80:"https://itunes.apple.com/us/app/simferopol-city-guide/id791334772?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0652.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:70:"https://play.google.com/store/apps/details?id=ua.com.citysites.lugansk";s:3:"ios";s:77:"https://itunes.apple.com/us/app/lugansk-city-guide/id791331778?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0642.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:67:"https://play.google.com/store/apps/details?id=ua.com.citysites.lviv";s:3:"ios";s:75:"https://itunes.apple.com/us/app/l-viv-city-guide/id791340901?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.032.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:71:"https://play.google.com/store/apps/details?id=ua.com.citysites.nikolaev";s:3:"ios";s:78:"https://itunes.apple.com/us/app/nikolaev-city-guide/id791340923?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0512.com.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:72:"https://play.google.com/store/apps/details?id=ua.com.citysites.krivoirog";s:3:"ios";s:80:"https://itunes.apple.com/us/app/krivoj-rog-city-guide/id791341424?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0564.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:77:"https://play.google.com/store/apps/details?id=ua.com.citysites.dnepropetrovsk";s:3:"ios";s:74:"https://itunes.apple.com/us/app/dnepropetrovsk-city-guide/id791331539?mt=8";}' WHERE `city_code` = 'www.056.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:71:"https://play.google.com/store/apps/details?id=ua.com.citysites.belgorod";s:3:"ios";s:78:"https://itunes.apple.com/us/app/belgorod-city-guide/id791478926?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.go31.ru';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:72:"https://play.google.com/store/apps/details?id=ua.com.citysites.cherkassi";s:3:"ios";s:78:"https://itunes.apple.com/us/app/cerkassy-city-guide/id791478998?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.0472.ua';PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/6c3O3 on line 20 UPDATE `citysites`.`cis_sites` SET `mobile_app_urls` = 'a:2:{s:7:"android";s:73:"https://play.google.com/store/apps/details?id=ua.com.citysites.domodedovo";s:3:"ios";s:78:"https://itunes.apple.com/us/app/domodevo-city-guide/id791471674?l=ru&ls=1&mt=8";}' WHERE `city_code` = 'www.goroddomodedovo.ru';PHP_EOL