3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/(\sA\d{6})/"; $str = "A243503 ;H ;ZU, HS-JIM ;7;F122;VO ;A12 ;A2E;U;be;24.11.15 ;05.12.15 ;11^/ ; ; 1 ; 1 ;A26 ;24.11.15 ;11:05;14:45;TL;F ;^/ 18.10.15 ;18.10.15 ;BU; BLABLABLABLA BLABLABLABLA BLABLABLABLA A243504;F ;BAS, R 56 ;FC12VOp ;A12;App 2E; ;ern;24.11.15 ;05.12.15;11 ^/ ; ; 1 ;2 ;A26;24.11.15 ;11:05 ;14:45 ;TiXL ;FC ; ^/ 18.10.15 ;18.10.15 ;BU ; A243483 ;H ;BR, WG ;64 ;F113 ;GR ;DIS;DZ;H ;Hp ;19.04.16;28.04.16; 9 ^/ ; ; 1 ; 1 ;A306 ;19.04.16 ;09:50 ;13:30 ;TX ;NC; ^/ 18.10.15 ;18.10.15 ;BU ; Fr1% il. Rg ud Tr a/b"; $subst = ""; //$result = preg_replace($re, $subst, $str); $result= preg_split($re , $str,-1,PREG_SET_ORDER); print_r($result); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => A243503 ;H ;ZU, HS-JIM ;7;F122;VO ;A12 ;A2E;U;be;24.11.15 ;05.12.15 ;11^/ ; ; 1 ; 1 ;A26 ;24.11.15 ;11:05;14:45;TL;F ;^/ 18.10.15 ;18.10.15 ;BU; BLABLABLABLA BLABLABLABLA BLABLABLABLA [1] => A243504 [2] => ;F ;BAS, R 56 ;FC12VOp ;A12;App 2E; ;ern;24.11.15 ;05.12.15;11 ^/ ; ; 1 ;2 ;A26;24.11.15 ;11:05 ;14:45 ;TiXL ;FC ; ^/ 18.10.15 ;18.10.15 ;BU ; [3] => A243483 [4] => ;H ;BR, WG ;64 ;F113 ;GR ;DIS;DZ;H ;Hp ;19.04.16;28.04.16; 9 ^/ ; ; 1 ; 1 ;A306 ;19.04.16 ;09:50 ;13:30 ;TX ;NC; ^/ 18.10.15 ;18.10.15 ;BU ; Fr1% il. Rg ud Tr a/b )

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:
140.39 ms | 407 KiB | 5 Q