3v4l.org

run code in 300+ PHP versions simultaneously
<?php $long = '/connect=;;41.26.162.36;;192.168.0.100;;8081;; /connect=;;98.250.16.76;;192.168.0.24;;8080;; /connect=;;216.152.60.12;;192.168.1.103;;8090;; /connect=;;91.11.65.110;;192.168.1.3;;8081;;'; if (preg_match_all('/connect=;;([\d\.]+);;([\d\.]+);;(\d+);;/', $long, $matches, PREG_SET_ORDER)) { foreach($matches as $match) { list(,$ip1, $ip2, $port) = $match; /* Do stuff */ echo "{$ip1} => {$ip2}:{$port}\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
41.26.162.36 => 192.168.0.100:8081 98.250.16.76 => 192.168.0.24:8080 216.152.60.12 => 192.168.1.103:8090 91.11.65.110 => 192.168.1.3:8081

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
17.14 ms | 405 KiB | 5 Q