3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'This string s_0a1f2d4e3c10b is foo.', 's_1a23b456c789', 'b_9d9d9d9d9d', 's_1e2f3a4b' ]; foreach ($tests as $test) { var_export( preg_match_all( '~(?:s_|\G(?!^)[a-z]+)\K\d+~', $test, $matches ) ? $matches[0] : [] ); echo "\n---\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '0', 1 => '1', 2 => '2', 3 => '4', 4 => '3', 5 => '10', ) --- array ( 0 => '1', 1 => '23', 2 => '456', 3 => '789', ) --- array ( ) --- array ( 0 => '1', 1 => '2', 2 => '3', 3 => '4', ) ---

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:
122.01 ms | 406 KiB | 5 Q