3v4l.org

run code in 200+ PHP versions simultaneously
<?php $pattern = ' ~^ (?: (?:(?P<function>function)\s*\(\s* (?:(?P<table1>.+)(?:\.))?(?P<column1>[^ ]+) \s*\)) | (?:(?P<table2>.+)(?:\.))?(?P<column2>[^ ]+) ) (?:\s+as\s+(?P<alias>.+))? $~ix '; var_dump(PCRE_VERSION); var_dump(preg_match($pattern, 'id')); var_dump(preg_last_error());
Output for 7.4.0
string(16) "10.33 2019-04-16" int(1) int(0)
Output for 7.3.0 - 7.3.12
string(16) "10.32 2018-09-10" int(1) int(0)
Output for 7.2.0 - 7.2.25
string(15) "8.41 2017-07-05" int(1) int(0)
Output for 7.1.25 - 7.1.33
string(15) "8.38 2015-11-23" int(1) int(0)