3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "(联想 OR 戴尔 OR 苹果 OR 宏基) dangers:deep1条 dangers:(newuuid deep1条 FirstTimeImageRule) 价格_i:[1500 TO 2500] cityEnglishName:beijing categoryEnglishName:bijiben"; preg_match_all('/(([a-zA-Z]+)\s*\:\s*\(([^\)]+)\))?/', $str, $m); var_dump($m);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(4) { [0]=> array(134) { [0]=> string(0) "" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(0) "" [5]=> string(0) "" [6]=> string(0) "" [7]=> string(0) "" [8]=> string(0) "" [9]=> string(0) "" [10]=> string(0) "" [11]=> string(0) "" [12]=> string(0) "" [13]=> string(0) "" [14]=> string(0) "" [15]=> string(0) "" [16]=> string(0) "" [17]=> string(0) "" [18]=> string(0) "" [19]=> string(0) "" [20]=> string(0) "" [21]=> string(0) "" [22]=> string(0) "" [23]=> string(0) "" [24]=> string(0) "" [25]=> string(0) "" [26]=> string(0) "" [27]=> string(0) "" [28]=> string(0) "" [29]=> string(0) "" [30]=> string(0) "" [31]=> string(0) "" [32]=> string(0) "" [33]=> string(0) "" [34]=> string(0) "" [35]=> string(0) "" [36]=> string(0) "" [37]=> string(0) "" [38]=> string(0) "" [39]=> string(0) "" [40]=> string(0) "" [41]=> string(0) "" [42]=> string(0) "" [43]=> string(0) "" [44]=> string(0) "" [45]=> string(0) "" [46]=> string(0) "" [47]=> string(0) "" [48]=> string(0) "" [49]=> string(0) "" [50]=> string(0) "" [51]=> string(0) "" [52]=> string(0) "" [53]=> string(0) "" [54]=> string(0) "" [55]=> string(0) "" [56]=> string(45) "dangers:(newuuid deep1条 FirstTimeImageRule)" [57]=> string(0) "" [58]=> string(0) "" [59]=> string(0) "" [60]=> string(0) "" [61]=> string(0) "" [62]=> string(0) "" [63]=> string(0) "" [64]=> string(0) "" [65]=> string(0) "" [66]=> string(0) "" [67]=> string(0) "" [68]=> string(0) "" [69]=> string(0) "" [70]=> string(0) "" [71]=> string(0) "" [72]=> string(0) "" [73]=> string(0) "" [74]=> string(0) "" [75]=> string(0) "" [76]=> string(0) "" [77]=> string(0) "" [78]=> string(0) "" [79]=> string(0) "" [80]=> string(0) "" [81]=> string(0) "" [82]=> string(0) "" [83]=> string(0) "" [84]=> string(0) "" [85]=> string(0) "" [86]=> string(0) "" [87]=> string(0) "" [88]=> string(0) "" [89]=> string(0) "" [90]=> string(0) "" [91]=> string(0) "" [92]=> string(0) "" [93]=> string(0) "" [94]=> string(0) "" [95]=> string(0) "" [96]=> string(0) "" [97]=> string(0) "" [98]=> string(0) "" [99]=> string(0) "" [100]=> string(0) "" [101]=> string(0) "" [102]=> string(0) "" [103]=> string(0) "" [104]=> string(0) "" [105]=> string(0) "" [106]=> string(0) "" [107]=> string(0) "" [108]=> string(0) "" [109]=> string(0) "" [110]=> string(0) "" [111]=> string(0) "" [112]=> string(0) "" [113]=> string(0) "" [114]=> string(0) "" [115]=> string(0) "" [116]=> string(0) "" [117]=> string(0) "" [118]=> string(0) "" [119]=> string(0) "" [120]=> string(0) "" [121]=> string(0) "" [122]=> string(0) "" [123]=> string(0) "" [124]=> string(0) "" [125]=> string(0) "" [126]=> string(0) "" [127]=> string(0) "" [128]=> string(0) "" [129]=> string(0) "" [130]=> string(0) "" [131]=> string(0) "" [132]=> string(0) "" [133]=> string(0) "" } [1]=> array(134) { [0]=> string(0) "" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(0) "" [5]=> string(0) "" [6]=> string(0) "" [7]=> string(0) "" [8]=> string(0) "" [9]=> string(0) "" [10]=> string(0) "" [11]=> string(0) "" [12]=> string(0) "" [13]=> string(0) "" [14]=> string(0) "" [15]=> string(0) "" [16]=> string(0) "" [17]=> string(0) "" [18]=> string(0) "" [19]=> string(0) "" [20]=> string(0) "" [21]=> string(0) "" [22]=> string(0) "" [23]=> string(0) "" [24]=> string(0) "" [25]=> string(0) "" [26]=> string(0) "" [27]=> string(0) "" [28]=> string(0) "" [29]=> string(0) "" [30]=> string(0) "" [31]=> string(0) "" [32]=> string(0) "" [33]=> string(0) "" [34]=> string(0) "" [35]=> string(0) "" [36]=> string(0) "" [37]=> string(0) "" [38]=> string(0) "" [39]=> string(0) "" [40]=> string(0) "" [41]=> string(0) "" [42]=> string(0) "" [43]=> string(0) "" [44]=> string(0) "" [45]=> string(0) "" [46]=> string(0) "" [47]=> string(0) "" [48]=> string(0) "" [49]=> string(0) "" [50]=> string(0) "" [51]=> string(0) "" [52]=> string(0) "" [53]=> string(0) "" [54]=> string(0) "" [55]=> string(0) "" [56]=> string(45) "dangers:(newuuid deep1条 FirstTimeImageRule)" [57]=> string(0) "" [58]=> string(0) "" [59]=> string(0) "" [60]=> string(0) "" [61]=> string(0) "" [62]=> string(0) "" [63]=> string(0) "" [64]=> string(0) "" [65]=> string(0) "" [66]=> string(0) "" [67]=> string(0) "" [68]=> string(0) "" [69]=> string(0) "" [70]=> string(0) "" [71]=> string(0) "" [72]=> string(0) "" [73]=> string(0) "" [74]=> string(0) "" [75]=> string(0) "" [76]=> string(0) "" [77]=> string(0) "" [78]=> string(0) "" [79]=> string(0) "" [80]=> string(0) "" [81]=> string(0) "" [82]=> string(0) "" [83]=> string(0) "" [84]=> string(0) "" [85]=> string(0) "" [86]=> string(0) "" [87]=> string(0) "" [88]=> string(0) "" [89]=> string(0) "" [90]=> string(0) "" [91]=> string(0) "" [92]=> string(0) "" [93]=> string(0) "" [94]=> string(0) "" [95]=> string(0) "" [96]=> string(0) "" [97]=> string(0) "" [98]=> string(0) "" [99]=> string(0) "" [100]=> string(0) "" [101]=> string(0) "" [102]=> string(0) "" [103]=> string(0) "" [104]=> string(0) "" [105]=> string(0) "" [106]=> string(0) "" [107]=> string(0) "" [108]=> string(0) "" [109]=> string(0) "" [110]=> string(0) "" [111]=> string(0) "" [112]=> string(0) "" [113]=> string(0) "" [114]=> string(0) "" [115]=> string(0) "" [116]=> string(0) "" [117]=> string(0) "" [118]=> string(0) "" [119]=> string(0) "" [120]=> string(0) "" [121]=> string(0) "" [122]=> string(0) "" [123]=> string(0) "" [124]=> string(0) "" [125]=> string(0) "" [126]=> string(0) "" [127]=> string(0) "" [128]=> string(0) "" [129]=> string(0) "" [130]=> string(0) "" [131]=> string(0) "" [132]=> string(0) "" [133]=> string(0) "" } [2]=> array(134) { [0]=> string(0) "" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(0) "" [5]=> string(0) "" [6]=> string(0) "" [7]=> string(0) "" [8]=> string(0) "" [9]=> string(0) "" [10]=> string(0) "" [11]=> string(0) "" [12]=> string(0) "" [13]=> string(0) "" [14]=> string(0) "" [15]=> string(0) "" [16]=> string(0) "" [17]=> string(0) "" [18]=> string(0) "" [19]=> string(0) "" [20]=> string(0) "" [21]=> string(0) "" [22]=> string(0) "" [23]=> string(0) "" [24]=> string(0) "" [25]=> string(0) "" [26]=> string(0) "" [27]=> string(0) "" [28]=> string(0) "" [29]=> string(0) "" [30]=> string(0) "" [31]=> string(0) "" [32]=> string(0) "" [33]=> string(0) "" [34]=> string(0) "" [35]=> string(0) "" [36]=> string(0) "" [37]=> string(0) "" [38]=> string(0) "" [39]=> string(0) "" [40]=> string(0) "" [41]=> string(0) "" [42]=> string(0) "" [43]=> string(0) "" [44]=> string(0) "" [45]=> string(0) "" [46]=> string(0) "" [47]=> string(0) "" [48]=> string(0) "" [49]=> string(0) "" [50]=> string(0) "" [51]=> string(0) "" [52]=> string(0) "" [53]=> string(0) "" [54]=> string(0) "" [55]=> string(0) "" [56]=> string(7) "dangers" [57]=> string(0) "" [58]=> string(0) "" [59]=> string(0) "" [60]=> string(0) "" [61]=> string(0) "" [62]=> string(0) "" [63]=> string(0) "" [64]=> string(0) "" [65]=> string(0) "" [66]=> string(0) "" [67]=> string(0) "" [68]=> string(0) "" [69]=> string(0) "" [70]=> string(0) "" [71]=> string(0) "" [72]=> string(0) "" [73]=> string(0) "" [74]=> string(0) "" [75]=> string(0) "" [76]=> string(0) "" [77]=> string(0) "" [78]=> string(0) "" [79]=> string(0) "" [80]=> string(0) "" [81]=> string(0) "" [82]=> string(0) "" [83]=> string(0) "" [84]=> string(0) "" [85]=> string(0) "" [86]=> string(0) "" [87]=> string(0) "" [88]=> string(0) "" [89]=> string(0) "" [90]=> string(0) "" [91]=> string(0) "" [92]=> string(0) "" [93]=> string(0) "" [94]=> string(0) "" [95]=> string(0) "" [96]=> string(0) "" [97]=> string(0) "" [98]=> string(0) "" [99]=> string(0) "" [100]=> string(0) "" [101]=> string(0) "" [102]=> string(0) "" [103]=> string(0) "" [104]=> string(0) "" [105]=> string(0) "" [106]=> string(0) "" [107]=> string(0) "" [108]=> string(0) "" [109]=> string(0) "" [110]=> string(0) "" [111]=> string(0) "" [112]=> string(0) "" [113]=> string(0) "" [114]=> string(0) "" [115]=> string(0) "" [116]=> string(0) "" [117]=> string(0) "" [118]=> string(0) "" [119]=> string(0) "" [120]=> string(0) "" [121]=> string(0) "" [122]=> string(0) "" [123]=> string(0) "" [124]=> string(0) "" [125]=> string(0) "" [126]=> string(0) "" [127]=> string(0) "" [128]=> string(0) "" [129]=> string(0) "" [130]=> string(0) "" [131]=> string(0) "" [132]=> string(0) "" [133]=> string(0) "" } [3]=> array(134) { [0]=> string(0) "" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(0) "" [5]=> string(0) "" [6]=> string(0) "" [7]=> string(0) "" [8]=> string(0) "" [9]=> string(0) "" [10]=> string(0) "" [11]=> string(0) "" [12]=> string(0) "" [13]=> string(0) "" [14]=> string(0) "" [15]=> string(0) "" [16]=> string(0) "" [17]=> string(0) "" [18]=> string(0) "" [19]=> string(0) "" [20]=> string(0) "" [21]=> string(0) "" [22]=> string(0) "" [23]=> string(0) "" [24]=> string(0) "" [25]=> string(0) "" [26]=> string(0) "" [27]=> string(0) "" [28]=> string(0) "" [29]=> string(0) "" [30]=> string(0) "" [31]=> string(0) "" [32]=> string(0) "" [33]=> string(0) "" [34]=> string(0) "" [35]=> string(0) "" [36]=> string(0) "" [37]=> string(0) "" [38]=> string(0) "" [39]=> string(0) "" [40]=> string(0) "" [41]=> string(0) "" [42]=> string(0) "" [43]=> string(0) "" [44]=> string(0) "" [45]=> string(0) "" [46]=> string(0) "" [47]=> string(0) "" [48]=> string(0) "" [49]=> string(0) "" [50]=> string(0) "" [51]=> string(0) "" [52]=> string(0) "" [53]=> string(0) "" [54]=> string(0) "" [55]=> string(0) "" [56]=> string(35) "newuuid deep1条 FirstTimeImageRule" [57]=> string(0) "" [58]=> string(0) "" [59]=> string(0) "" [60]=> string(0) "" [61]=> string(0) "" [62]=> string(0) "" [63]=> string(0) "" [64]=> string(0) "" [65]=> string(0) "" [66]=> string(0) "" [67]=> string(0) "" [68]=> string(0) "" [69]=> string(0) "" [70]=> string(0) "" [71]=> string(0) "" [72]=> string(0) "" [73]=> string(0) "" [74]=> string(0) "" [75]=> string(0) "" [76]=> string(0) "" [77]=> string(0) "" [78]=> string(0) "" [79]=> string(0) "" [80]=> string(0) "" [81]=> string(0) "" [82]=> string(0) "" [83]=> string(0) "" [84]=> string(0) "" [85]=> string(0) "" [86]=> string(0) "" [87]=> string(0) "" [88]=> string(0) "" [89]=> string(0) "" [90]=> string(0) "" [91]=> string(0) "" [92]=> string(0) "" [93]=> string(0) "" [94]=> string(0) "" [95]=> string(0) "" [96]=> string(0) "" [97]=> string(0) "" [98]=> string(0) "" [99]=> string(0) "" [100]=> string(0) "" [101]=> string(0) "" [102]=> string(0) "" [103]=> string(0) "" [104]=> string(0) "" [105]=> string(0) "" [106]=> string(0) "" [107]=> string(0) "" [108]=> string(0) "" [109]=> string(0) "" [110]=> string(0) "" [111]=> string(0) "" [112]=> string(0) "" [113]=> string(0) "" [114]=> string(0) "" [115]=> string(0) "" [116]=> string(0) "" [117]=> string(0) "" [118]=> string(0) "" [119]=> string(0) "" [120]=> string(0) "" [121]=> string(0) "" [122]=> string(0) "" [123]=> string(0) "" [124]=> string(0) "" [125]=> string(0) "" [126]=> string(0) "" [127]=> string(0) "" [128]=> string(0) "" [129]=> string(0) "" [130]=> string(0) "" [131]=> string(0) "" [132]=> string(0) "" [133]=> string(0) "" } }
Output for hhvm-3.10.0

Process exited with code 153.