3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = <<<TEXT OLT(config-interface-epon-0/0)# show ont info 1 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 1 1 AC:4E:91:A6:CF:F5 active online success match VILERMINA-. ----------------------------------------------------------------------------- Total: 1, online 1 OLT(config-interface-epon-0/0)# show ont info 2 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 2 1 E0:E8:E6:4E:62:58 active online success match CLOVES-NAV. ----------------------------------------------------------------------------- Total: 1, online 1 OLT(config-interface-epon-0/0)# show ont info 3 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 3 1 E0:67:B3:93:F1:97 active online success match 0/0 3 2 18:C5:8A:B0:19:4F active online success match ----------------------------------------------------------------------------- Total: 2, online 2 OLT(config-interface-epon-0/0)# show ont info 4 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 4 1 E0:67:B3:A6:45:E1 active online success match Jessica-Si. 0/0 4 2 E0:67:B3:7E:20:05 active online success match onu-id-2 0/0 4 3 E0:67:B3:7D:F8:F9 active online success match onu-id-3 0/0 4 4 E0:E8:E6:4E:69:B8 active online success match onu-id-4 ----------------------------------------------------------------------------- Total: 4, online 4 OLT(config-interface-epon-0/0)# show ont info 5 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 5 1 C4:70:0B:26:B9:38 active online success match 0/0 5 2 E0:67:B3:88:33:E2 active online success match 0/0 5 3 E0:E8:E6:4E:70:B8 active powerdown initial initial 0/0 5 4 C4:70:0B:26:5C:28 active online success match 0/0 5 5 E0:E8:E6:4E:75:C8 active online success match 0/0 5 6 E0:E8:E6:4E:69:C0 active online success match 0/0 5 7 E0:67:B3:93:EF:D5 active online success match ----------------------------------------------------------------------------- Total: 7, online 6 OLT(config-interface-epon-0/0)# show ont info 6 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 6 1 E0:67:B3:88:3D:57 active online success match 0/0 6 2 E0:E8:E6:4E:71:08 active online success match 0/0 6 3 E0:E8:E6:4E:74:78 active online success match ----------------------------------------------------------------------------- Total: 3, online 3 OLT(config-interface-epon-0/0)# show ont info 7 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 7 1 00:6D:61:59:D8:48 active online success match 0/0 7 2 E0:E8:E6:4E:55:20 active online success match ----------------------------------------------------------------------------- Total: 2, online 2 OLT(config-interface-epon-0/0)# show ont info 8 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 8 1 E0:E8:E6:4E:69:E0 active online success match 0/0 8 2 E0:E8:E6:4E:70:08 active online success match ----------------------------------------------------------------------------- Total: 2, online 2 OLT(config-interface-epon-0/0)# show ont info 9 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 9 1 E0:E8:E6:4E:62:78 active online success match 0/0 9 2 E0:67:B3:A6:58:0F active online success match 0/0 9 3 9C:28:EF:01:AE:99 active online success match ----------------------------------------------------------------------------- Total: 3, online 3 OLT(config-interface-epon-0/0)# show ont info 10 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 10 1 E0:67:B3:35:CE:9B active online success match 0/0 10 2 E0:67:B3:A6:56:71 active online success match 0/0 10 3 E0:67:B3:A6:25:33 active online success match ----------------------------------------------------------------------------- Total: 3, online 3 OLT(config-interface-epon-0/0)# show ont info 11 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 11 1 E0:67:B3:7D:F3:E0 active online success match ----------------------------------------------------------------------------- Total: 1, online 1 OLT(config-interface-epon-0/0)# show ont info 12 all ----------------------------------------------------------------------------- F/S P ONT MAC Control Run Config Match Desc ID flag state state state ---------------------------------------------------------------------------- 0/0 12 1 E0:67:B3:93:F9:11 active online success match ----------------------------------------------------------------------------- Total: 1, online 1 OLT(config-interface-epon-0/0)# show ont info 13 all Error: There is no ONT available. OLT(config-interface-epon-0/0)# show ont info 14 all Error: There is no ONT available. OLT(config-interface-epon-0/0)# show ont info 15 all Error: There is no ONT available. OLT(config-interface-epon-0/0)# show ont info 16 all Error: There is no ONT available. TEXT; var_export( preg_match_all( '~^\h*(\d+/\d+)\h+(\d+)\h+(\d+)\h+([A-F\d]{2}(?::[A-F\d]{2}){5})\h+(\S+)\h+(\S+)\h+(\S+)\h+(\S+)(?:\h+(\S+))?~m', $response, $m, PREG_SET_ORDER ) ? $m : 'no matches' );
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
array ( 0 => array ( 0 => ' 0/0 1 1 AC:4E:91:A6:CF:F5 active online success match VILERMINA-.', 1 => '0/0', 2 => '1', 3 => '1', 4 => 'AC:4E:91:A6:CF:F5', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', 9 => 'VILERMINA-.', ), 1 => array ( 0 => ' 0/0 2 1 E0:E8:E6:4E:62:58 active online success match CLOVES-NAV.', 1 => '0/0', 2 => '2', 3 => '1', 4 => 'E0:E8:E6:4E:62:58', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', 9 => 'CLOVES-NAV.', ), 2 => array ( 0 => ' 0/0 3 1 E0:67:B3:93:F1:97 active online success match', 1 => '0/0', 2 => '3', 3 => '1', 4 => 'E0:67:B3:93:F1:97', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 3 => array ( 0 => ' 0/0 3 2 18:C5:8A:B0:19:4F active online success match', 1 => '0/0', 2 => '3', 3 => '2', 4 => '18:C5:8A:B0:19:4F', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 4 => array ( 0 => ' 0/0 4 1 E0:67:B3:A6:45:E1 active online success match Jessica-Si.', 1 => '0/0', 2 => '4', 3 => '1', 4 => 'E0:67:B3:A6:45:E1', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', 9 => 'Jessica-Si.', ), 5 => array ( 0 => ' 0/0 4 2 E0:67:B3:7E:20:05 active online success match onu-id-2', 1 => '0/0', 2 => '4', 3 => '2', 4 => 'E0:67:B3:7E:20:05', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', 9 => 'onu-id-2', ), 6 => array ( 0 => ' 0/0 4 3 E0:67:B3:7D:F8:F9 active online success match onu-id-3', 1 => '0/0', 2 => '4', 3 => '3', 4 => 'E0:67:B3:7D:F8:F9', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', 9 => 'onu-id-3', ), 7 => array ( 0 => ' 0/0 4 4 E0:E8:E6:4E:69:B8 active online success match onu-id-4', 1 => '0/0', 2 => '4', 3 => '4', 4 => 'E0:E8:E6:4E:69:B8', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', 9 => 'onu-id-4', ), 8 => array ( 0 => ' 0/0 5 1 C4:70:0B:26:B9:38 active online success match', 1 => '0/0', 2 => '5', 3 => '1', 4 => 'C4:70:0B:26:B9:38', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 9 => array ( 0 => ' 0/0 5 2 E0:67:B3:88:33:E2 active online success match', 1 => '0/0', 2 => '5', 3 => '2', 4 => 'E0:67:B3:88:33:E2', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 10 => array ( 0 => ' 0/0 5 3 E0:E8:E6:4E:70:B8 active powerdown initial initial', 1 => '0/0', 2 => '5', 3 => '3', 4 => 'E0:E8:E6:4E:70:B8', 5 => 'active', 6 => 'powerdown', 7 => 'initial', 8 => 'initial', ), 11 => array ( 0 => ' 0/0 5 4 C4:70:0B:26:5C:28 active online success match', 1 => '0/0', 2 => '5', 3 => '4', 4 => 'C4:70:0B:26:5C:28', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 12 => array ( 0 => ' 0/0 5 5 E0:E8:E6:4E:75:C8 active online success match', 1 => '0/0', 2 => '5', 3 => '5', 4 => 'E0:E8:E6:4E:75:C8', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 13 => array ( 0 => ' 0/0 5 6 E0:E8:E6:4E:69:C0 active online success match', 1 => '0/0', 2 => '5', 3 => '6', 4 => 'E0:E8:E6:4E:69:C0', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 14 => array ( 0 => ' 0/0 5 7 E0:67:B3:93:EF:D5 active online success match', 1 => '0/0', 2 => '5', 3 => '7', 4 => 'E0:67:B3:93:EF:D5', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 15 => array ( 0 => ' 0/0 6 1 E0:67:B3:88:3D:57 active online success match', 1 => '0/0', 2 => '6', 3 => '1', 4 => 'E0:67:B3:88:3D:57', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 16 => array ( 0 => ' 0/0 6 2 E0:E8:E6:4E:71:08 active online success match', 1 => '0/0', 2 => '6', 3 => '2', 4 => 'E0:E8:E6:4E:71:08', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 17 => array ( 0 => ' 0/0 6 3 E0:E8:E6:4E:74:78 active online success match', 1 => '0/0', 2 => '6', 3 => '3', 4 => 'E0:E8:E6:4E:74:78', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 18 => array ( 0 => ' 0/0 7 1 00:6D:61:59:D8:48 active online success match', 1 => '0/0', 2 => '7', 3 => '1', 4 => '00:6D:61:59:D8:48', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 19 => array ( 0 => ' 0/0 7 2 E0:E8:E6:4E:55:20 active online success match', 1 => '0/0', 2 => '7', 3 => '2', 4 => 'E0:E8:E6:4E:55:20', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 20 => array ( 0 => ' 0/0 8 1 E0:E8:E6:4E:69:E0 active online success match', 1 => '0/0', 2 => '8', 3 => '1', 4 => 'E0:E8:E6:4E:69:E0', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 21 => array ( 0 => ' 0/0 8 2 E0:E8:E6:4E:70:08 active online success match', 1 => '0/0', 2 => '8', 3 => '2', 4 => 'E0:E8:E6:4E:70:08', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 22 => array ( 0 => ' 0/0 9 1 E0:E8:E6:4E:62:78 active online success match', 1 => '0/0', 2 => '9', 3 => '1', 4 => 'E0:E8:E6:4E:62:78', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 23 => array ( 0 => ' 0/0 9 2 E0:67:B3:A6:58:0F active online success match', 1 => '0/0', 2 => '9', 3 => '2', 4 => 'E0:67:B3:A6:58:0F', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 24 => array ( 0 => ' 0/0 9 3 9C:28:EF:01:AE:99 active online success match', 1 => '0/0', 2 => '9', 3 => '3', 4 => '9C:28:EF:01:AE:99', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 25 => array ( 0 => ' 0/0 10 1 E0:67:B3:35:CE:9B active online success match', 1 => '0/0', 2 => '10', 3 => '1', 4 => 'E0:67:B3:35:CE:9B', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 26 => array ( 0 => ' 0/0 10 2 E0:67:B3:A6:56:71 active online success match', 1 => '0/0', 2 => '10', 3 => '2', 4 => 'E0:67:B3:A6:56:71', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 27 => array ( 0 => ' 0/0 10 3 E0:67:B3:A6:25:33 active online success match', 1 => '0/0', 2 => '10', 3 => '3', 4 => 'E0:67:B3:A6:25:33', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 28 => array ( 0 => ' 0/0 11 1 E0:67:B3:7D:F3:E0 active online success match', 1 => '0/0', 2 => '11', 3 => '1', 4 => 'E0:67:B3:7D:F3:E0', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), 29 => array ( 0 => ' 0/0 12 1 E0:67:B3:93:F9:11 active online success match', 1 => '0/0', 2 => '12', 3 => '1', 4 => 'E0:67:B3:93:F9:11', 5 => 'active', 6 => 'online', 7 => 'success', 8 => 'match', ), )

preferences:
122.79 ms | 418 KiB | 123 Q