3v4l.org

run code in 200+ php & hhvm versions
<?php $srt = ' Demo از خرید شما متشکریم Hi sd, Thanks for your order. It’s on-hold until we confirm that payment has been received. In the meantime, here’s a reminder of what you ordered: [Order #5073] (۲۹/۰۲/۱۳۹۸) محصول تعداد قیمت تلويزيون هوشمند ال جي سايز 55 اينچفروشنده: 1 ریال 10,000 جمع كل سبد خريد: ریال 10,000 حمل و نقل: Free shipping مالیات: ریال 900 روش پرداخت : پرداخت با چک قیمت نهایی: ریال 10,900 آدرس صورتحساب sd sccsscddsc ewfdsdscایلام22565165156 09114123841 s.jafarjdjnjk@gmail.com آدرس حمل و نقل sd sccsscddsc ewfdsdscایلام22565165156 We look forward to fulfilling your order soon. آش خانجون – قدرت گرفته از ووکامرس'; $str= str_replace(PHP_EOL, "|", $srt); $new_str = explode("|" , $str); print_r(array_filter($new_str));
based on MMfnI
Output for 7.1.25 - 7.3.5
Array ( [1] => Demo [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => [11] => [12] => [13] => [14] => [15] => [16] => [17] => از خرید شما متشکریم [18] => Hi sd, [19] => Thanks for your order. It’s on-hold until we confirm that payment has been received. In the meantime, here’s a reminder of what you ordered: [20] => [Order #5073] (۲۹/۰۲/۱۳۹۸) [21] => محصول [22] => تعداد [23] => قیمت [24] => [25] => [26] => [27] => [28] => [29] => تلويزيون هوشمند ال جي سايز 55 اينچفروشنده: [30] => [31] => 1 [32] => [33] => ریال 10,000 [34] => [35] => [36] => [37] => [38] => [39] => جمع كل سبد خريد: [40] => ریال 10,000 [41] => [42] => [43] => حمل و نقل: [44] => Free shipping [45] => [46] => [47] => مالیات: [48] => ریال 900 [49] => [50] => [51] => روش پرداخت : [52] => پرداخت با چک [53] => [54] => [55] => قیمت نهایی: [56] => ریال 10,900 [57] => آدرس صورتحساب [58] => sd sccsscddsc ewfdsdscایلام22565165156 09114123841 s.jafarjdjnjk@gmail.com [59] => [60] => [61] => آدرس حمل و نقل [62] => sd sccsscddsc ewfdsdscایلام22565165156 [63] => We look forward to fulfilling your order soon. [64] => [65] => [66] => [67] => [68] => [69] => [70] => [71] => [72] => [73] => [74] => [75] => [76] => [77] => [78] => [79] => [80] => [81] => [82] => [83] => [84] => آش خانجون – قدرت گرفته از ووکامرس )