3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '[2017-03-14 11:48:22] Steve T: Hi! [2017-03-14 11:49:01] Oscar: Hi! :D How are u doin? [2017-03-14 11:50:24] Steve T: Im doing great :P'; $returnValue = preg_match_all( '/^\\[(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})\\] ([\\w\\s]+): (.+)$/m', $subject, $matches, PREG_SET_ORDER // this groups the result nicely ); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => [2017-03-14 11:48:22] Steve T: Hi! [1] => 2017-03-14 11:48:22 [2] => Steve T [3] => Hi! ) [1] => Array ( [0] => [2017-03-14 11:49:01] Oscar: Hi! :D How are u doin? [1] => 2017-03-14 11:49:01 [2] => Oscar [3] => Hi! :D How are u doin? ) [2] => Array ( [0] => [2017-03-14 11:50:24] Steve T: Im doing great :P [1] => 2017-03-14 11:50:24 [2] => Steve T [3] => Im doing great :P ) )

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:
29.21 ms | 407 KiB | 5 Q