3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '103.249.101.68:49385#VN 195.34.78.172:8085#GI 79.127.107.140:808#IR 125.119.253.130:8118#CN 1.175.106.206:3128#TW 190.206.112.238:8080#VE 91.238.114.227:8085#RU 111.13.55.3:22#CN 115.58.111.66:8118#CN 14.139.172.163:3128#IN 186.88.241.86:8080#VE 186.95.27.25:8080#VE 195.191.40.195:8085#RU 60.161.29.253:8585#CN 125.112.11.94:8118#CN 190.73.116.219:8080#VE 119.108.17.159:8118#CN 190.39.80.250:8080#VE 190.200.7.228:8080#VE 91.216.3.50:8085#RU 188.72.96.192:8085#NL 175.43.20.95:80#CN 60.188.28.91:18186#CN 193.105.154.173:8085#-- 121.40.96.243:3128#CN'; preg_match_all('/([0-9]{1,3}\.){3}[0-9]{1,3}/', $string, $matches); var_dump($matches[0]);
based on Xlfku
Output for 4.3.0 - 7.2.0
array(25) { [0]=> string(14) "103.249.101.68" [1]=> string(13) "195.34.78.172" [2]=> string(14) "79.127.107.140" [3]=> string(15) "125.119.253.130" [4]=> string(13) "1.175.106.206" [5]=> string(15) "190.206.112.238" [6]=> string(14) "91.238.114.227" [7]=> string(11) "111.13.55.3" [8]=> string(13) "115.58.111.66" [9]=> string(14) "14.139.172.163" [10]=> string(13) "186.88.241.86" [11]=> string(12) "186.95.27.25" [12]=> string(14) "195.191.40.195" [13]=> string(13) "60.161.29.253" [14]=> string(13) "125.112.11.94" [15]=> string(14) "190.73.116.219" [16]=> string(14) "119.108.17.159" [17]=> string(13) "190.39.80.250" [18]=> string(13) "190.200.7.228" [19]=> string(11) "91.216.3.50" [20]=> string(13) "188.72.96.192" [21]=> string(12) "175.43.20.95" [22]=> string(12) "60.188.28.91" [23]=> string(15) "193.105.154.173" [24]=> string(13) "121.40.96.243" }