3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = ' <!--CPAPSM_TEST_YES_URL="http://propodpiski.ru:80/api/v1/tmpurl/AgSBO4z3jzG4vR7iaFGOgngPCWAaFOfmHOuqrtoSpdlc-251Cgb6E7NqmLTc33d-8ABdsHsWAyf6qEYL9_A8CHEQJOW9jjm_Za2pA1oU7vrlENtOg_h-wGMSEmbe-vf0VVm4WRGI1zIS_DRB-nKrq6DQalDnJ-xumjqLkhKrDXfU_psx-ZcRwq-DrlUCm20efb14p3OLikLUFL8xRivxsH5Dc5ju6hfsybIYU25Ps4YXRN5bZK0bo35EUNDMku8w2SIwI05cE8gsF8oROIKrExbTqG4ANaPw6HAV_pKWP3DAHTKIGUJl_TlrHH5rm6MYX06J6JQgkGzRztmkioVKwmVDluIzdFW97SQBqt7tFN85Sk9dJvIrHMfIgj61_EjUtg-oXDvDhFrF2rH2PvaHC7dAkjn4GjFtE_-TaC_rYzhCCJVwpZJZnprhC49F5QgIeL6zCFSIOfwy1p6xbi5vK0-AKZWF2h1ea700P8XJAEXVn859KwOcl3CiHe6tyRazC_1xdc0pEQUgA8ztR19V9QdBJr-JnhROmTHxlUr_NVTGtaq2kg4VNUjWme8PjpNsbyuLSPy3X91-mpWne-QXcVM1q6edaCiViq2wYggSVpbuTAySFwROrohCzfOrX12e09ISII46XQCFLJI4yyd--paqIwZrJY0vJUZU2HFkGu2rrkPGDM9rQZaNSQI8qdGTomTzonxtBnA2oVDlvGfcU4IIAh0lt9n55D0wGi3Zbc83-Q=="--><!--CPAPSM_TEST_NO_URL="http://propodpiski.ru:80/api/v1/tmpurl/AgSnIbjzSojogbmzRqG33_684UN6QnHWPe6WI2PAJbMm6vK-5hwgQUfg5QI5tFuPnLRX4QFYrz2AXAVhfATZoLi8w8607YoGDx0hkJH0AFJk1FHRFVnPSlMVY-xCv6qvzIRKtiVmO8E-stcyFs88uoJduB8aKNYOxJmioDRccNMkV9yhjaR--IrFvUylO7LpqzlvXFGMmS4b6Fc2I-MSB2VkZdxkcGkZcNI4HgRFnI2JP6wH5LSAhxieeOuInQmtZ0Oh0T1CU5wbrts607x0JD4BLnQT8N_T2QhocyajXMQ889UyoNjVs74nD5Hflw_rEDaFbTSYlyqYOjE7f16j0rvZPFSzItlbjvjH8jWbHllpjP8ECxmfrMmvmIoVYdlwnWciIRo0FS477CLwZYP4EdQfCvYouReO2koByqXx_HT2SgnbNw_5PNwvGbzGd_GxHR5X1GPPNsbI6N5x8aYBRClpmxalFgALb0iNmt86SbsffeggzsQkoE20M1k31tBxSMHYWiPgEltqakDjc_Ys3PN-Br672JScZcdWOFvbK_eu3vZR5Rayeh6vo8NN7DA_O727lEi4RIYcQFw0f-g56mHrhlk-XDFNI3MPX5kTDKFc7Lu82Ee0M6Msmk4eOkPo8-4teXLwAJJZ9xs0kiu3JdvaXTXRGRMBbX-b-tkIsEdDVxFFq-KYDy4gGK-oMddWiqU-haR1IihjrEeQOQgx8QujoBx-YbiBonIQcIwZwod10A=="--><html> <head> <meta charset="utf-8" /> <title>Смотреть</title> <meta content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" name="viewport" /> <link href="/preview/ic_monamoor_ru_100r_5d_ic_WAP_1/style.css" rel="stylesheet" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body scroll="no"> <div class="text" id="disclaimer"> 150.0 руб. с учетом НДС за 5 дней. 11.07.2017. Оплата производится с контентного счета </div> <div id="wrap_bg"> <div id="wrap"> <div id="agree"> <a href="http://propodpiski.ru:80/api/v1/tmpurl/AgSBO4z3jzG4vR7iaFGOgngPCWAaFOfmHOuqrtoSpdlc-251Cgb6E7NqmLTc33d-8ABdsHsWAyf6qEYL9_A8CHEQJOW9jjm_Za2pA1oU7vrlENtOg_h-wGMSEmbe-vf0VVm4WRGI1zIS_DRB-nKrq6DQalDnJ-xumjqLkhKrDXfU_psx-ZcRwq-DrlUCm20efb14p3OLikLUFL8xRivxsH5Dc5ju6hfsybIYU25Ps4YXRN5bZK0bo35EUNDMku8w2SIwI05cE8gsF8oROIKrExbTqG4ANaPw6HAV_pKWP3DAHTKIGUJl_TlrHH5rm6MYX06J6JQgkGzRztmkioVKwmVDluIzdFW97SQBqt7tFN85Sk9dJvIrHMfIgj61_EjUtg-oXDvDhFrF2rH2PvaHC7dAkjn4GjFtE_-TaC_rYzhCCJVwpZJZnprhC49F5QgIeL6zCFSIOfwy1p6xbi5vK0-AKZWF2h1ea700P8XJAEXVn859KwOcl3CiHe6tyRazC_1xdc0pEQUgA8ztR19V9QdBJr-JnhROmTHxlUr_NVTGtaq2kg4VNUjWme8PjpNsbyuLSPy3X91-mpWne-QXcVM1q6edaCiViq2wYggSVpbuTAySFwROrohCzfOrX12e09ISII46XQCFLJI4yyd--paqIwZrJY0vJUZU2HFkGu2rrkPGDM9rQZaNSQI8qdGTomTzonxtBnA2oVDlvGfcU4IIAh0lt9n55D0wGi3Zbc83-Q==">Смотреть</a> </div> <div id="cancel"> <a href="http://propodpiski.ru:80/api/v1/tmpurl/AgSnIbjzSojogbmzRqG33_684UN6QnHWPe6WI2PAJbMm6vK-5hwgQUfg5QI5tFuPnLRX4QFYrz2AXAVhfATZoLi8w8607YoGDx0hkJH0AFJk1FHRFVnPSlMVY-xCv6qvzIRKtiVmO8E-stcyFs88uoJduB8aKNYOxJmioDRccNMkV9yhjaR--IrFvUylO7LpqzlvXFGMmS4b6Fc2I-MSB2VkZdxkcGkZcNI4HgRFnI2JP6wH5LSAhxieeOuInQmtZ0Oh0T1CU5wbrts607x0JD4BLnQT8N_T2QhocyajXMQ889UyoNjVs74nD5Hflw_rEDaFbTSYlyqYOjE7f16j0rvZPFSzItlbjvjH8jWbHllpjP8ECxmfrMmvmIoVYdlwnWciIRo0FS477CLwZYP4EdQfCvYouReO2koByqXx_HT2SgnbNw_5PNwvGbzGd_GxHR5X1GPPNsbI6N5x8aYBRClpmxalFgALb0iNmt86SbsffeggzsQkoE20M1k31tBxSMHYWiPgEltqakDjc_Ys3PN-Br672JScZcdWOFvbK_eu3vZR5Rayeh6vo8NN7DA_O727lEi4RIYcQFw0f-g56mHrhlk-XDFNI3MPX5kTDKFc7Lu82Ee0M6Msmk4eOkPo8-4teXLwAJJZ9xs0kiu3JdvaXTXRGRMBbX-b-tkIsEdDVxFFq-KYDy4gGK-oMddWiqU-haR1IihjrEeQOQgx8QujoBx-YbiBonIQcIwZwod10A==">Отмена</a> </div> </div> </div> <div class="text" id="foot"> Нажатием на кнопку Смотреть Вы подтверждаете свое согласие с подключением сервиса monamoor.ru(5дней) и <a href="http://moscow.megafon.ru/download/~federal/oferts/short_numbers/Oferta_Short_numbers_stf.pdf">Условиями предоставления услуги</a>. Услуга предоставляется Контент-провайдером ООО Информпартнер.Служба технической поддержки ООО "Информпартнер": 8 800 500-25-43 (звонок бесплатный), e-mail: helpdesk@informpartner.com | <u><a href="http://monamoor.ru/info.php?operator=3">Правила покупки поставщика услуг</a>| <a href="http://moy-m-portal.ru/ic">Личный кабинет</a></u>. </div> </body> </html>'; preg_match('~\<a([ ]+)?href=\"([^\"]+)">(Смотреть)\<\/a\>~i', $data, $regs); var_dump($regs);
Output for 5.6.27
array(4) { [0]=> string(824) "<a href="http://propodpiski.ru:80/api/v1/tmpurl/AgSBO4z3jzG4vR7iaFGOgngPCWAaFOfmHOuqrtoSpdlc-251Cgb6E7NqmLTc33d-8ABdsHsWAyf6qEYL9_A8CHEQJOW9jjm_Za2pA1oU7vrlENtOg_h-wGMSEmbe-vf0VVm4WRGI1zIS_DRB-nKrq6DQalDnJ-xumjqLkhKrDXfU_psx-ZcRwq-DrlUCm20efb14p3OLikLUFL8xRivxsH5Dc5ju6hfsybIYU25Ps4YXRN5bZK0bo35EUNDMku8w2SIwI05cE8gsF8oROIKrExbTqG4ANaPw6HAV_pKWP3DAHTKIGUJl_TlrHH5rm6MYX06J6JQgkGzRztmkioVKwmVDluIzdFW97SQBqt7tFN85Sk9dJvIrHMfIgj61_EjUtg-oXDvDhFrF2rH2PvaHC7dAkjn4GjFtE_-TaC_rYzhCCJVwpZJZnprhC49F5QgIeL6zCFSIOfwy1p6xbi5vK0-AKZWF2h1ea700P8XJAEXVn859KwOcl3CiHe6tyRazC_1xdc0pEQUgA8ztR19V9QdBJr-JnhROmTHxlUr_NVTGtaq2kg4VNUjWme8PjpNsbyuLSPy3X91-mpWne-QXcVM1q6edaCiViq2wYggSVpbuTAySFwROrohCzfOrX12e09ISII46XQCFLJI4yyd--paqIwZrJY0vJUZU2HFkGu2rrkPGDM9rQZaNSQI8qdGTomTzonxtBnA2oVDlvGfcU4IIAh0lt9n55D0wGi3Zbc83-Q==">Смотреть</a>" [1]=> string(3) " " [2]=> string(791) "http://propodpiski.ru:80/api/v1/tmpurl/AgSBO4z3jzG4vR7iaFGOgngPCWAaFOfmHOuqrtoSpdlc-251Cgb6E7NqmLTc33d-8ABdsHsWAyf6qEYL9_A8CHEQJOW9jjm_Za2pA1oU7vrlENtOg_h-wGMSEmbe-vf0VVm4WRGI1zIS_DRB-nKrq6DQalDnJ-xumjqLkhKrDXfU_psx-ZcRwq-DrlUCm20efb14p3OLikLUFL8xRivxsH5Dc5ju6hfsybIYU25Ps4YXRN5bZK0bo35EUNDMku8w2SIwI05cE8gsF8oROIKrExbTqG4ANaPw6HAV_pKWP3DAHTKIGUJl_TlrHH5rm6MYX06J6JQgkGzRztmkioVKwmVDluIzdFW97SQBqt7tFN85Sk9dJvIrHMfIgj61_EjUtg-oXDvDhFrF2rH2PvaHC7dAkjn4GjFtE_-TaC_rYzhCCJVwpZJZnprhC49F5QgIeL6zCFSIOfwy1p6xbi5vK0-AKZWF2h1ea700P8XJAEXVn859KwOcl3CiHe6tyRazC_1xdc0pEQUgA8ztR19V9QdBJr-JnhROmTHxlUr_NVTGtaq2kg4VNUjWme8PjpNsbyuLSPy3X91-mpWne-QXcVM1q6edaCiViq2wYggSVpbuTAySFwROrohCzfOrX12e09ISII46XQCFLJI4yyd--paqIwZrJY0vJUZU2HFkGu2rrkPGDM9rQZaNSQI8qdGTomTzonxtBnA2oVDlvGfcU4IIAh0lt9n55D0wGi3Zbc83-Q==" [3]=> string(16) "Смотреть" }