3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is my string but it also has %APP:name_of_the_app|ID:123123123% a bunch of other stuff in it"; $apps = array(); if (preg_match_all("/%APP:(.*?)\|ID:([0-9]+)%/", $string, $matches)) { for ($i = 0; $i < count($matches[0]); $i++) { $apps[] = array( "name" => $matches[1][$i], "id" => $matches[2][$i] ); } } print_r($apps);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [name] => name_of_the_app [id] => 123123123 ) )

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:
54.67 ms | 401 KiB | 8 Q