3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lines = [ "1849781487", "1838433023", "1855575775", "1825054296", "1868575843", "1800003509", "1781354776", "1650813649", "1762706044", "1688111114", "1669462381", "1632164916" ]; $searchword = '18'; $matches = array(); $pattern = "/^" . $searchword . "[0-9]{8}$/i"; foreach($lines as $k=>$v) { if(preg_match($pattern, $v)) { $matches[$k] = $v; } } print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 1849781487 [1] => 1838433023 [2] => 1855575775 [3] => 1825054296 [4] => 1868575843 [5] => 1800003509 )

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:
82.18 ms | 1436 KiB | 4 Q