3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'sometext moretext 01 text text sometext moretext 002 text text 1 (somemoretext) etc'; preg_match_all('/^(\D*?)\s*(\d+)/m', $text, $matches); var_export([ 'non-digit' => $matches[1], 'digit' => $matches[2] ]);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'non-digit' => array ( 0 => 'sometext moretext', 1 => 'text sometext moretext', 2 => 'text text', ), 'digit' => array ( 0 => '01', 1 => '002', 2 => '1', ), )

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