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}/', $string, $matches); var_dump($matches[0]);
based on cEslB
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0beta1
array(51) { [0]=> string(12) "192.168.66.5" [1]=> string(13) "216.58.209.98" [2]=> string(12) "192.168.66.5" [3]=> string(13) "216.58.209.98" [4]=> string(12) "192.168.66.5" [5]=> string(13) "216.58.209.98" [6]=> string(12) "192.168.66.5" [7]=> string(13) "216.58.209.98" [8]=> string(12) "192.168.66.5" [9]=> string(13) "192.168.170.2" [10]=> string(12) "192.168.66.5" [11]=> string(15) "192.168.100.177" [12]=> string(12) "192.168.66.5" [13]=> string(15) "192.168.105.103" [14]=> string(12) "192.168.66.5" [15]=> string(13) "172.20.100.74" [16]=> string(12) "192.168.66.5" [17]=> string(13) "40.101.124.18" [18]=> string(12) "192.168.66.5" [19]=> string(12) "40.101.124.2" [20]=> string(12) "192.168.66.5" [21]=> string(14) "192.168.117.14" [22]=> string(12) "192.168.66.5" [23]=> string(15) "192.168.105.152" [24]=> string(12) "192.168.66.5" [25]=> string(15) "192.168.105.152" [26]=> string(12) "192.168.66.5" [27]=> string(15) "192.168.105.152" [28]=> string(12) "192.168.66.5" [29]=> string(15) "192.168.105.152" [30]=> string(12) "192.168.66.5" [31]=> string(11) "104.45.0.17" [32]=> string(12) "192.168.66.5" [33]=> string(13) "104.40.240.49" [34]=> string(12) "192.168.66.5" [35]=> string(13) "104.40.240.49" [36]=> string(12) "192.168.66.5" [37]=> string(14) "52.112.193.139" [38]=> string(12) "192.168.66.5" [39]=> string(15) "192.168.105.152" [40]=> string(12) "192.168.66.5" [41]=> string(14) "192.168.105.48" [42]=> string(12) "192.168.66.5" [43]=> string(14) "192.168.105.48" [44]=> string(12) "192.168.66.5" [45]=> string(13) "40.101.65.226" [46]=> string(13) "192.168.82.82" [47]=> string(7) "0.0.0.0" [48]=> string(13) "192.168.82.82" [49]=> string(14) "192.168.105.48" [50]=> string(13) "192.168.82.82" }