3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "20' Container 1, 40' Open Container 1, 40-45' Closed Container 3, container roll 10, container lift 50"; preg_match_all( "~(\d+(?:-\d+)?')? (\D+) (\d+)~", $string, $matches, PREG_SET_ORDER ); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 20' Container 1 [1] => 20' [2] => Container [3] => 1 ) [1] => Array ( [0] => 40' Open Container 1 [1] => 40' [2] => Open Container [3] => 1 ) [2] => Array ( [0] => 40-45' Closed Container 3 [1] => 40-45' [2] => Closed Container [3] => 3 ) [3] => Array ( [0] => container roll 10 [1] => [2] => container roll [3] => 10 ) [4] => Array ( [0] => container lift 50 [1] => [2] => container lift [3] => 50 ) )

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