3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo '<pre>'; preg_match('/^(LEFT JOIN|RIGHT JOIN|INNER JOIN|JOIN)(?: +)([^ ]+)(?: +)ON(?: +)(.*)$/i', 'JOIN Skill ON Skill.SkillID = EmployeeSkill.SkillID', $matches); print_r($matches);
based on 88919
Output for 4.3.0 - 7.2.0
<pre>Array ( [0] => JOIN Skill ON Skill.SkillID = EmployeeSkill.SkillID [1] => JOIN [2] => Skill [3] => Skill.SkillID = EmployeeSkill.SkillID )