3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/^[^\d\r\n]*\b(\d+)([admno]\d+)?/'; $strings = [ "Some string 12345a1% some other string.", "Somet string 23456b2! some other string" ]; foreach ($strings as $s) { preg_match($pattern, $s, $match); var_dump($match); }
Output for git.master_jit, git.master, rfc.property-hooks
array(3) { [0]=> string(19) "Some string 12345a1" [1]=> string(5) "12345" [2]=> string(2) "a1" } array(2) { [0]=> string(18) "Somet string 23456" [1]=> string(5) "23456" }

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:
48.47 ms | 1273 KiB | 4 Q