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 QIIrG
Output for 5.2.0 - 7.2.0
Warning: preg_match_all(): Unknown modifier ':' in /in/HUQqn on line 30 NULL
Output for 4.3.11 - 5.1.6
Warning: preg_match_all(): Unknown modifier ':' in /in/HUQqn on line 30 Notice: Undefined offset: 0 in /in/HUQqn on line 31 NULL
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier ':' in /in/HUQqn on line 30 Notice: Undefined offset: 0 in /in/HUQqn on line 31 NULL