3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xx = " .++=====[ CreditCard ]=====++. Cardholder Name : King Card Family Card Number : 5291 1522 8844 8687 Expiration Date : 04 / 2022 Cvv2 : 777 BIN/IIN Info : - - - .++=====[ End ]=====++. .++=====[ Details ]=====++. Sort Code : - - Account number : BSB - OSID : - Credit Limit : Mother's name : Sanhon .++=========[ End ]=========++. .++===[ Address & Info ]===++. Account Name : Address Line 1 : Earth 1 Address Line 2 : City/Town : Moon State : Nature Zip/PostCode : 7777 Country : United States Phone Number : 123456789 SSN : 263 - 45 - 4444 ID Number : DOB : 4 / 4 / 1944 .++=========[ End ]=========++. .++=======[ PC Info ]=======++. From : 141.101.162.171 | United States | Florida | Miami On Thu, 01 Feb 2018 05:16:11 -0800 Browser : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 .++=========[ End ]=========++. Nopal BOT, [01.02.18 20:16] xXx Jatim4u Team - Trenggalek 6etar xXx .++=====[ Informasi Akun ]=====++. Email : Password : .++=====[ End ]=====++. .++=====[ CreditCard ]=====++. Cardholder Name : King Card Family Card Number : 5291 1522 8844 8687 Expiration Date : 04 / 2022 Cvv2 : 777 BIN/IIN Info : - - - .++=====[ End ]=====++. .++=====[ Details ]=====++. Sort Code : - - Account number : BSB - OSID : - Credit Limit : Mother's name : Sanhon .++=========[ End ]=========++. .++===[ Address & Info ]===++. Account Name : Address Line 1 : Earth 1 Address Line 2 : City/Town : Moon State : Nature Zip/PostCode : 7777 Country : United States Phone Number : 123456789 SSN : 263 - 45 - 4444 ID Number : DOB : 4 / 4 / 1944 .++=========[ End ]=========++. .++=======[ PC Info ]=======++. From : 141.101.162.171 | United States | Florida | Miami On Thu, 01 Feb 2018 05:16:50 -0800 Browser : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 .++=========[ End ]=========++. "; $a=explode("\n",$xx); print_r($a); preg_match_all("/^#(.*)$/m",$text,$m); $results = array(); foreach ($matches as $match) { array_push($results, $match[1], $match[2]); } print_r($results); ?>
Output for 7.3.0rc3
Array ( [0] => .++=====[ CreditCard ]=====++. [1] => Cardholder Name : King Card Family [2] => Card Number : 5291 1522 8844 8687 [3] => Expiration Date : 04 / 2022 [4] => Cvv2 : 777 [5] => BIN/IIN Info : - - - [6] => .++=====[ End ]=====++. [7] => [8] => .++=====[ Details ]=====++. [9] => Sort Code : - - [10] => Account number : [11] => BSB - OSID : - [12] => Credit Limit : [13] => Mother's name : Sanhon [14] => .++=========[ End ]=========++. [15] => [16] => .++===[ Address & Info ]===++. [17] => Account Name : [18] => Address Line 1 : Earth 1 [19] => Address Line 2 : [20] => City/Town : Moon [21] => State : Nature [22] => Zip/PostCode : 7777 [23] => Country : United States [24] => Phone Number : 123456789 [25] => SSN : 263 - 45 - 4444 [26] => ID Number : [27] => DOB : 4 / 4 / 1944 [28] => .++=========[ End ]=========++. [29] => [30] => .++=======[ PC Info ]=======++. [31] => From : 141.101.162.171 | United States | Florida | Miami On Thu, 01 Feb 2018 05:16:11 -0800 [32] => Browser : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 [33] => .++=========[ End ]=========++. [34] => [35] => Nopal BOT, [01.02.18 20:16] [36] => xXx Jatim4u Team - Trenggalek 6etar xXx [37] => [38] => .++=====[ Informasi Akun ]=====++. [39] => Email : [40] => Password : [41] => .++=====[ End ]=====++. [42] => [43] => .++=====[ CreditCard ]=====++. [44] => Cardholder Name : King Card Family [45] => Card Number : 5291 1522 8844 8687 [46] => Expiration Date : 04 / 2022 [47] => Cvv2 : 777 [48] => BIN/IIN Info : - - - [49] => .++=====[ End ]=====++. [50] => [51] => .++=====[ Details ]=====++. [52] => Sort Code : - - [53] => Account number : [54] => BSB - OSID : - [55] => Credit Limit : [56] => Mother's name : Sanhon [57] => .++=========[ End ]=========++. [58] => [59] => .++===[ Address & Info ]===++. [60] => Account Name : [61] => Address Line 1 : Earth 1 [62] => Address Line 2 : [63] => City/Town : Moon [64] => State : Nature [65] => Zip/PostCode : 7777 [66] => Country : United States [67] => Phone Number : 123456789 [68] => SSN : 263 - 45 - 4444 [69] => ID Number : [70] => DOB : 4 / 4 / 1944 [71] => .++=========[ End ]=========++. [72] => [73] => .++=======[ PC Info ]=======++. [74] => From : 141.101.162.171 | United States | Florida | Miami On Thu, 01 Feb 2018 05:16:50 -0800 [75] => Browser : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 [76] => .++=========[ End ]=========++. [77] => ) Notice: Undefined variable: text in /in/WmYFt on line 82 Notice: Undefined variable: matches in /in/WmYFt on line 84 Warning: Invalid argument supplied for foreach() in /in/WmYFt on line 84 Array ( )