3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/a\[(\w+)\]/i'; $str = 'a[link1], a[link2] a[link3] text text text a[link4] text a[link5] text'; preg_match_all($re, $str, $links); var_dump($links[1]);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(5) "link1" [1]=> string(5) "link2" [2]=> string(5) "link3" [3]=> string(5) "link4" [4]=> string(5) "link5" }

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:
110.42 ms | 405 KiB | 5 Q