3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'SS 1.0140 SL 1.0670 TP1 1.0870 TP 1 1.0870 TP 2 1.0870 Takeprofit1 1.0870 Take profit 1 1.0870 TP 1.0870 TP 20/30/50 TP-----1.0870 TP=1.0870 TP1=1.0870 TP Open'; $p = '#\b(TAKE ?PROFIT ?(?:[1-3]|\|TP|at)|TP ?(?:[1-3](?!\.\d))?)\b(.*?)\b(Open|(\d+(?:\.\d+)?(?:/\d+)*))\b#i'; preg_match_all($p , $s , $m); var_export($m[3]);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '1.0870', 1 => '1.0870', 2 => '1.0870', 3 => '1.0870', 4 => '1.0870', 5 => '1.0870', 6 => '20/30/50', 7 => '1.0870', 8 => '1.0870', 9 => '1.0870', 10 => 'Open', )

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