3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'vid..0002-3f3c-458c-8000__vpid..e29ac000-8020-395e__caid..8ff77872-a0cb-4d7c-a36c0bd6__rt..D__lid..a1b926-17da-45b8-8bfc-32464ba72cdd__oid1..7ef55782-6c4b-414e-b7b9-faa2d55b32e1__oid2..a2292a00-31ce-4366-b6c6-72a0204b38be__var1..%7Bname%7D__var2..MLPUBID__var3..%7Bheadline%7D__var4..%7Bimage%7D__var5..%7Badid%7D__var6..%7Bad%7D__var7..%7Bage%7D__rd..__aid..__sid..'; $split = explode('__', $str); $results = array_map(function($e){ return explode('..', $e); }, $split); print_r($results);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => vid [1] => 0002-3f3c-458c-8000 ) [1] => Array ( [0] => vpid [1] => e29ac000-8020-395e ) [2] => Array ( [0] => caid [1] => 8ff77872-a0cb-4d7c-a36c0bd6 ) [3] => Array ( [0] => rt [1] => D ) [4] => Array ( [0] => lid [1] => a1b926-17da-45b8-8bfc-32464ba72cdd ) [5] => Array ( [0] => oid1 [1] => 7ef55782-6c4b-414e-b7b9-faa2d55b32e1 ) [6] => Array ( [0] => oid2 [1] => a2292a00-31ce-4366-b6c6-72a0204b38be ) [7] => Array ( [0] => var1 [1] => %7Bname%7D ) [8] => Array ( [0] => var2 [1] => MLPUBID ) [9] => Array ( [0] => var3 [1] => %7Bheadline%7D ) [10] => Array ( [0] => var4 [1] => %7Bimage%7D ) [11] => Array ( [0] => var5 [1] => %7Badid%7D ) [12] => Array ( [0] => var6 [1] => %7Bad%7D ) [13] => Array ( [0] => var7 [1] => %7Bage%7D ) [14] => Array ( [0] => rd [1] => ) [15] => Array ( [0] => aid [1] => ) [16] => Array ( [0] => sid [1] => ) )

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:
26.67 ms | 410 KiB | 5 Q