3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING 34.345.32.1:9032 4.3.21.234 2023 45.31.45.324:1025 STRING; preg_match_all('~(\d{1,3}(?:\.\d{1,3}){3})[: ]\K\d{4}~', $string, $matches, PREG_SET_ORDER); var_export(array_map('array_reverse', $matches));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => '34.345.32.1', 1 => '9032', ), 1 => array ( 0 => '4.3.21.234', 1 => '2023', ), 2 => array ( 0 => '45.31.45.324', 1 => '1025', ), )

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:
168.56 ms | 405 KiB | 5 Q