3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "#^([^|]+)\|(\d+)([^|]+)\|(\d+)$#m"; $string = "Product 1|200Producht 392|150\nProduct 2|400Producht 592|250"; $matches = array(); $search = preg_match_all($pattern, $string, $matches, PREG_SET_ORDER); print_r($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => Product 1|200Producht 392|150 [1] => Product 1 [2] => 200 [3] => Producht 392 [4] => 150 ) [1] => Array ( [0] => Product 2|400Producht 592|250 [1] => Product 2 [2] => 400 [3] => Producht 592 [4] => 250 ) )

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:
87.18 ms | 402 KiB | 8 Q