3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '#ORGNR "123" 1 #ACCOUNT 1010 "Kassa" #ACCOUNT 1050 "Bank" #IB -1 1010 1923.15 #IB 1 1050 201.42'; $arr = explode("\n", $str); // you use file but it's the same thing foreach($arr as &$val){ $val = preg_split("/\s+/", $val); } var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(3) { [0]=> string(6) "#ORGNR" [1]=> string(5) ""123"" [2]=> string(1) "1" } [1]=> array(3) { [0]=> string(8) "#ACCOUNT" [1]=> string(4) "1010" [2]=> string(7) ""Kassa"" } [2]=> array(3) { [0]=> string(8) "#ACCOUNT" [1]=> string(4) "1050" [2]=> string(6) ""Bank"" } [3]=> array(4) { [0]=> string(3) "#IB" [1]=> string(2) "-1" [2]=> string(4) "1010" [3]=> string(7) "1923.15" } [4]=> &array(4) { [0]=> string(3) "#IB" [1]=> string(1) "1" [2]=> string(4) "1050" [3]=> string(6) "201.42" } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.97 ms | 402 KiB | 8 Q