3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $line = 'A 4 "AB5672HMKL OLD" B 9500 8150 39 0000 L XFN "ProductPN"'; $parts = preg_split('/\s+/', $line); print_r($parts);
Output for 5.6.38 - 7.3.0rc3
Array ( [0] => A [1] => 4 [2] => "AB5672HMKL [3] => OLD" [4] => B [5] => 9500 [6] => 8150 [7] => 39 [8] => 0000 [9] => L [10] => XFN [11] => "ProductPN" )