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}\:[0-9]{1,5}/', $string, $matches); var_dump($matches[0]);
based on Q46Bt
Output for 4.3.0 - 7.2.0
array(25) { [0]=> string(20) "103.249.101.68:49385" [1]=> string(18) "195.34.78.172:8085" [2]=> string(18) "79.127.107.140:808" [3]=> string(20) "125.119.253.130:8118" [4]=> string(18) "1.175.106.206:3128" [5]=> string(20) "190.206.112.238:8080" [6]=> string(19) "91.238.114.227:8085" [7]=> string(14) "111.13.55.3:22" [8]=> string(18) "115.58.111.66:8118" [9]=> string(19) "14.139.172.163:3128" [10]=> string(18) "186.88.241.86:8080" [11]=> string(17) "186.95.27.25:8080" [12]=> string(19) "195.191.40.195:8085" [13]=> string(18) "60.161.29.253:8585" [14]=> string(18) "125.112.11.94:8118" [15]=> string(19) "190.73.116.219:8080" [16]=> string(19) "119.108.17.159:8118" [17]=> string(18) "190.39.80.250:8080" [18]=> string(18) "190.200.7.228:8080" [19]=> string(16) "91.216.3.50:8085" [20]=> string(18) "188.72.96.192:8085" [21]=> string(15) "175.43.20.95:80" [22]=> string(18) "60.188.28.91:18186" [23]=> string(20) "193.105.154.173:8085" [24]=> string(18) "121.40.96.243:3128" }