3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/(SELECT|FROM|WHERE|LEFT JOIN|ORDER BY)( |/\n)(.+?)(?= SELECT|FROM|WHERE|LEFT JOIN|ORDER BY|$)/im"; $sql = "Select id, nome FROM table as t WHERE t.id = 123 LEFT JOIN t2 ON t2.id = t.id ORDER BY t.name "; preg_match_all($pattern, $sql, $arr); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_match_all(): Unknown modifier ')' in /in/9IjQe on line 14 NULL

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