3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'Aktiva anslutningar Proto Lokal adress Fj?rradress Tillst?nd PID TCP 192.168.66.5:52540 216.58.209.98:443 CLOSE_WAIT 2224 [IEXPLORE.EXE] TCP 192.168.66.5:52557 216.58.209.98:80 CLOSE_WAIT 2224 [IEXPLORE.EXE] TCP 192.168.66.5:52637 216.58.209.98:80 CLOSE_WAIT 2224 [IEXPLORE.EXE] TCP 192.168.66.5:52638 216.58.209.98:80 CLOSE_WAIT 2224 [IEXPLORE.EXE] TCP 192.168.66.5:55438 192.168.170.2:445 ESTABLISHED 4 Det g?r inte att h?mta information om ?garskap TCP 192.168.66.5:55450 192.168.100.177:10017 ESTABLISHED 6560 [PROCES~1.EXE] TCP 192.168.66.5:55735 192.168.105.103:445 ESTABLISHED 4 Det g?r inte att h?mta information om ?garskap TCP 192.168.66.5:59956 172.20.100.74:10123 ESTABLISHED 2768 [CcmExec.exe] TCP 192.168.66.5:62011 40.101.124.18:443 ESTABLISHED 1488 [OUTLOOK.EXE] TCP 192.168.66.5:62012 40.101.124.2:443 ESTABLISHED 1488 [OUTLOOK.EXE] TCP 192.168.66.5:62043 192.168.117.14:80 TIME_WAIT 0 TCP 192.168.66.5:62045 192.168.105.152:135 TIME_WAIT 0 TCP 192.168.66.5:62046 192.168.105.152:135 TIME_WAIT 0 TCP 192.168.66.5:62047 192.168.105.152:49155 TIME_WAIT 0 TCP 192.168.66.5:62048 192.168.105.152:49159 TIME_WAIT 0 TCP 192.168.66.5:62061 104.45.0.17:443 ESTABLISHED 4864 [lync.exe] TCP 192.168.66.5:62063 104.40.240.49:443 ESTABLISHED 4864 [lync.exe] TCP 192.168.66.5:62064 104.40.240.49:443 ESTABLISHED 4864 [lync.exe] TCP 192.168.66.5:62065 52.112.193.139:443 TIME_WAIT 0 TCP 192.168.66.5:62066 192.168.105.152:49159 TIME_WAIT 0 TCP 192.168.66.5:62067 192.168.105.48:445 ESTABLISHED 4 Det g?r inte att h?mta information om ?garskap TCP 192.168.66.5:62068 192.168.105.48:445 ESTABLISHED 4 Det g?r inte att h?mta information om ?garskap TCP 192.168.66.5:62069 40.101.65.226:443 ESTABLISHED 1488 [OUTLOOK.EXE] TCP 192.168.82.82:139 0.0.0.0:0 LISTENING 4 Det g?r inte att h?mta information om ?garskap TCP 192.168.82.82:59966 192.168.105.48:445 ESTABLISHED 4 Det g?r inte att h?mta information om ?garskap UDP 192.168.82.82:54823 *:* 1908 SSDPSRV [svchost.exe] UDP [::]:123 *:* 1044 W32Time [svchost.exe] UDP [::]:3540 *:* 3484 p2pimsvc [svchost.exe] UDP [::]:5355 *:* 1732 Dnscache [svchost.exe] UDP [::]:6129 *:* 2256 [dwrcs.exe] UDP [::1]:1900 *:* 1908 SSDPSRV [svchost.exe] UDP [::1]:54822 *:* 1908 SSDPSRV [svchost.exe] UDP [fe80::bdc4:58fa:8d03:6428%11]:546 *:* 612 Dhcp'; preg_match_all('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}/', $string, $matches); var_dump($matches[0]);
based on aAV3K
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
array(51) { [0]=> string(18) "192.168.66.5:52540" [1]=> string(17) "216.58.209.98:443" [2]=> string(18) "192.168.66.5:52557" [3]=> string(16) "216.58.209.98:80" [4]=> string(18) "192.168.66.5:52637" [5]=> string(16) "216.58.209.98:80" [6]=> string(18) "192.168.66.5:52638" [7]=> string(16) "216.58.209.98:80" [8]=> string(18) "192.168.66.5:55438" [9]=> string(17) "192.168.170.2:445" [10]=> string(18) "192.168.66.5:55450" [11]=> string(21) "192.168.100.177:10017" [12]=> string(18) "192.168.66.5:55735" [13]=> string(19) "192.168.105.103:445" [14]=> string(18) "192.168.66.5:59956" [15]=> string(19) "172.20.100.74:10123" [16]=> string(18) "192.168.66.5:62011" [17]=> string(17) "40.101.124.18:443" [18]=> string(18) "192.168.66.5:62012" [19]=> string(16) "40.101.124.2:443" [20]=> string(18) "192.168.66.5:62043" [21]=> string(17) "192.168.117.14:80" [22]=> string(18) "192.168.66.5:62045" [23]=> string(19) "192.168.105.152:135" [24]=> string(18) "192.168.66.5:62046" [25]=> string(19) "192.168.105.152:135" [26]=> string(18) "192.168.66.5:62047" [27]=> string(21) "192.168.105.152:49155" [28]=> string(18) "192.168.66.5:62048" [29]=> string(21) "192.168.105.152:49159" [30]=> string(18) "192.168.66.5:62061" [31]=> string(15) "104.45.0.17:443" [32]=> string(18) "192.168.66.5:62063" [33]=> string(17) "104.40.240.49:443" [34]=> string(18) "192.168.66.5:62064" [35]=> string(17) "104.40.240.49:443" [36]=> string(18) "192.168.66.5:62065" [37]=> string(18) "52.112.193.139:443" [38]=> string(18) "192.168.66.5:62066" [39]=> string(21) "192.168.105.152:49159" [40]=> string(18) "192.168.66.5:62067" [41]=> string(18) "192.168.105.48:445" [42]=> string(18) "192.168.66.5:62068" [43]=> string(18) "192.168.105.48:445" [44]=> string(18) "192.168.66.5:62069" [45]=> string(17) "40.101.65.226:443" [46]=> string(17) "192.168.82.82:139" [47]=> string(9) "0.0.0.0:0" [48]=> string(19) "192.168.82.82:59966" [49]=> string(18) "192.168.105.48:445" [50]=> string(19) "192.168.82.82:54823" }