3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring=' project "3DB18186AFAA_06" { version {2,0,0} %ucwver { major : 9, minor : 1, build : 783 } options { format : 0, unit : 3 } fonts { 1 : {"Arial",""}, 2 : {"Arial","B"} } %userdata { 1000: {"_pmabar","PmaBar",0x00000003}, 1001: {"_item_@","Item #",0x00000000}, 1002: {"_Main_Mark","Main_Mark",0x00000003}, 1003: {"_Sub_Mark","Sub_Mark",0x00000003}, 1004: {"_Term_Seq","Term_Seq",0x00000003}, 1005: {"_Carry_Mode","Carry_Mode",0x00000003} } board 1 { outline { [L:381] PL[U] {0,{359837168,174098710},{358970393,173388145}}, PL[U] {0,{267042900,255270000},{267151485,254153670}}, PL[U] {0,{267151485,254153670},{267475335,253079250}}, PL[U] {0,{267475335,253079250},{268001115,252090555}}, PL[U] {0,{268001115,252090555},{268711680,251223780}}, PL[U] {0,{268711680,251223780},{269578455,250511310}}, PL[U] {0,{269578455,250511310},{270567150,249981720}}, PL[U] {0,{270567150,249981720},{271639665,249655965}}, PL[U] {0,{271639665,249655965},{272755995,249545475}}, PL[U] {0,{272755995,249545475},{273872325,249655965}}, PL[U] {0,{273872325,249655965},{274944840,249981720}}, PL[U] {0,{274944840,249981720},{275933535,250511310}}, PL[U] {0,{275933535,250511310},{276800310,251223780}}, PL[U] {0,{276800310,251223780},{277510875,252090555}}, PL[U] {0,{277510875,252090555},{278036655,253079250}}, PL[U] {0,{278036655,253079250},{278360505,254153670}}, PL[U] {0,{278360505,254153670},{278469090,255270000}}, PL[U] {0,{278469090,255270000},{353949000,255270000}}, PL[U] {0,{353949000,255270000},{361569000,247650000}}, PL[U] {0,{361569000,247650000},{361569000,176022000}}, PL[U] {0,{361569000,176022000},{360452670,175913415}}, PL[U] {0,{360452670,175913415},{359378250,175589565}}, PL[U] {0,{359378250,175589565},{358389555,175063785}}, PL[U] {0,{357522780,174353220},{356810310,173486445}}, PL[U] {0,{356810310,173486445},{356280720,172497750}}, PL[U] {0,{356280720,172497750},{355954965,171425235}}, PL[U] {0,{355954965,171425235},{355844475,170308905}}, PL[U] {0,{355844475,170308905},{355954965,169192575}}, PL[U] {0,{355954965,169192575},{356280720,168120060}}, PL[U] {0,{356280720,168120060},{356810310,167131365}}, PL[U] {0,{356810310,167131365},{357522780,166264590}}, PL[U] {0,{357522780,166264590},{358389555,165554025}}, PL[U] {0,{358389555,165554025},{359378250,165028245}}, PL[U] {0,{359378250,165028245},{360452670,164704395}}, PL[U] {0,{360452670,164704395},{361569000,164595810}}, PL[U] {0,{361569000,164595810},{361569000,157284420}}, PL[U] {0,{361569000,157284420},{361569000,142875000}}, PL[U] {0,{361569000,142875000},{371094000,142875000}}, PL[U] {0,{371094000,142875000},{371094000,112395000}}, PL[U] {0,{371094000,112395000},{361569000,112395000}}, PL[U] {0,{361569000,112395000},{361569000,90716100}}, PL[U] {0,{361569000,90716100},{360452670,90607515}}, PL[U] {0,{360452670,90607515},{359378250,90283665}}, PL[U] {0,{359378250,90283665},{358389555,89757885}}, PL[U] {0,{358389555,89757885},{357522780,89047320}}, PL[U] {0,{357522780,89047320},{356810310,88180545}}, PL[U] {0,{356810310,88180545},{356280720,87191850}}, PL[U] {0,{356280720,87191850},{355954965,86119335}}, PL[U] {0,{355954965,86119335},{355844475,85003005}}, PL[U] {0,{355844475,85003005},{355954965,83886675}}, PL[U] {0,{355954965,83886675},{356280720,82814160}}, PL[U] {0,{356280720,82814160},{356810310,81825465}}, PL[U] {0,{356810310,81825465},{357522780,80958690}}, PL[U] {0,{357522780,80958690},{358389555,80248125}}, PL[U] {0,{358389555,80248125},{359378250,79722345}}, PL[U] {0,{359378250,79722345},{360452670,79398495}}, PL[U] {0,{360452670,79398495},{361569000,79289910}}, PL[U] {0,{361569000,79289910},{361569000,7620000}}, PL[U] {0,{361569000,7620000},{353949000,0}}, PL[U] {0,{353949000,0},{278436705,0}}, PL[U] {0,{278436705,0},{278328120,1116330}}, PL[U] {0,{278328120,1116330},{278004270,2190750}}, PL[U] {0,{278004270,2190750},{277478490,3179445}}, PL[U] {0,{277478490,3179445},{276767925,4046220}}, PL[U] {0,{276767925,4046220},{275901150,4758690}}, PL[U] {0,{275901150,4758690},{274912455,5288280}}, PL[U] {0,{274912455,5288280},{273839940,5614035}}, PL[U] {0,{273839940,5614035},{272723610,5724525}}, PL[U] {0,{272723610,5724525},{271607280,5614035}}, PL[U] {0,{271607280,5614035},{270534765,5288280}}, PL[U] {0,{270534765,5288280},{269546070,4758690}}, PL[U] {0,{269546070,4758690},{268679295,4046220}}, PL[U] {0,{268679295,4046220},{267968730,3179445}}, PL[U] {0,{267968730,3179445},{267442950,2190750}}, PL[U] {0,{267442950,2190750},{267119100,1116330}}, PL[U] {0,{267119100,1116330},{267010515,0}}, PL[U] {0,{267010515,0},{189433200,0}}, PL[U] {0,{189433200,0},{189324615,1116330}}, PL[U] {0,{189324615,1116330},{189000765,2190750}}, PL[U] {0,{189000765,2190750},{188474985,3179445}}, PL[U] {0,{188474985,3179445},{187764420,4046220}}, PL[U] {0,{187764420,4046220},{186897645,4758690}}, PL[U] {0,{186897645,4758690},{185908950,5288280}}, PL[U] {0,{185908950,5288280},{184836435,5614035}}, PL[U] {0,{184836435,5614035},{183720105,5724525}}, PL[U] {0,{183720105,5724525},{182603775,5614035}}, PL[U] {0,{182603775,5614035},{181531260,5288280}}, PL[U] {0,{181531260,5288280},{180542565,4758690}}, PL[U] {0,{180542565,4758690},{179675790,4046220}}, PL[U] {0,{179675790,4046220},{178965225,3179445}}, PL[U] {0,{178965225,3179445},{178439445,2190750}}, PL[U] {0,{178439445,2190750},{178115595,1116330}}, PL[U] {0,{178115595,1116330},{178007010,0}}, PL[U] {0,{178007010,0},{99479100,0}}, PL[U] {0,{99479100,0},{99370515,1116330}}, PL[U] {0,{99370515,1116330},{99046665,2190750}}, PL[U] {0,{99046665,2190750},{98520885,3179445}}, PL[U] {0,{98520885,3179445},{97810320,4046220}}, PL[U] {0,{97810320,4046220},{96943545,4758690}}, PL[U] {0,{96943545,4758690},{95954850,5288280}}, PL[U] {0,{95954850,5288280},{94882335,5614035}}, PL[U] {0,{94882335,5614035},{93766005,5724525}}, PL[U] {0,{93766005,5724525},{92649675,5614035}}, PL[U] {0,{92649675,5614035},{91577160,5288280}}, PL[U] {0,{91577160,5288280},{90588465,4758690}}, PL[U] {0,{90588465,4758690},{89721690,4046220}}, PL[U] {0,{89721690,4046220},{89011125,3179445}}, PL[U] {0,{89011125,3179445},{88485345,2190750}}, PL[U] {0,{88485345,2190750},{88161495,1116330}}, PL[U] {0,{88161495,1116330},{88052910,0}}, PL[U] {0,{88052910,0},{0,0}}, PL[U] {0,{0,0},{0,183070500}}, PL[U] {0,{0,183070500},{9144000,183070500}}, PL[U] {0,{9144000,183070500},{9144000,192786000}}, PL[U] {0,{9144000,192786000},{9144000,210502500}}, PL[U] {0,{9144000,210502500},{0,210502500}}, PL[U] {0,{0,210502500},{0,255270000}}, PL[U] {0,{0,255270000},{88052910,255270000}}, PL[U] {0,{88052910,255270000},{88161495,254153670}}, PL[U] {0,{88161495,254153670},{88485345,253079250}}, PL[U] {0,{88485345,253079250},{89011125,252090555}}, PL[U] {0,{89011125,252090555},{89721690,251223780}}, PL[U] {0,{89721690,251223780},{90588465,250511310}}, PL[U] {0,{90588465,250511310},{91577160,249981720}}, PL[U] {0,{91577160,249981720},{92649675,249655965}}, PL[U] {0,{92649675,249655965},{93766005,249545475}}, PL[U] {0,{93766005,249545475},{94882335,249655965}}, PL[U] {0,{94882335,249655965},{95954850,249981720}}, PL[U] {0,{95954850,249981720},{96943545,250511310}}, PL[U] {0,{96943545,250511310},{97810320,251223780}}, PL[U] {0,{97810320,251223780},{98520885,252090555}}, PL[U] {0,{98520885,252090555},{99046665,253079250}}, PL[U] {0,{99046665,253079250},{99370515,254153670}}, PL[U] {0,{99370515,254153670},{99479100,255270000}}, PL[U] {0,{99479100,255270000},{178003200,255270000}}, PL[U] {0,{178003200,255270000},{178111785,254153670}}, PL[U] {0,{178111785,254153670},{178435635,253079250}}, PL[U] {0,{178435635,253079250},{178961415,252090555}}, PL[U] {0,{178961415,252090555},{179671980,251223780}}, PL[U] {0,{179671980,251223780},{180538755,250511310}}, PL[U] {0,{180538755,250511310},{181527450,249981720}}, PL[U] {0,{181527450,249981720},{182599965,249655965}}, PL[U] {0,{182599965,249655965},{183716295,249545475}}, PL[U] {0,{183716295,249545475},{184832625,249655965}}, PL[U] {0,{184832625,249655965},{185905140,249981720}}, PL[U] {0,{185905140,249981720},{186893835,250511310}}, PL[U] {0,{186893835,250511310},{187760610,251223780}}, PL[U] {0,{187760610,251223780},{188471175,252090555}}, PL[U] {0,{188471175,252090555},{188996955,253079250}}, PL[U] {0,{188996955,253079250},{189320805,254153670}}, PL[U] {0,{189320805,254153670},{189429390,255270000}}, PL[U] {0,{189429390,255270000},{267042900,255270000}} } shape "#4PHILLIPS_SCREW_2" { outline { PL[B] {0,{-552450,1885950},{552450,1885950},{552450,1162050},{1143000,590550},{1885950,590550}, {1885950,-552450},{1143000,-552450},{571500,-1162050},{571500,-1885950},{-571500,-1885950}, {-571500,-1162050},{-1143000,-552450},{-1885950,-552450},{-1885950,590550},{-1143000,590550}, {-571500,1143000},{-571500,1885950}}, C[B] {0,0,2552771} } } shape "2_0402_TX" { outline { [L:381] PL[U] {1,{-781050,400050},{781050,400050},{781050,-400050},{-781050,-400050},{-781050,400050}} } terminals { P3 {1,-800100,0,838200,914400,0}, P3 {2,800100,0,838200,914400,0} } } shape "2_0603" { outline { [L:38100] PL {0,{1371600,-685800},{1371600,685800}}, PL {0,{-1371600,-685800},{1371600,-685800}}, PL {0,{1371600,685800},{-1371600,685800}}, PL {0,{-1371600,685800},{-1371600,-685800}} } terminals { P2 {1,-1143000,0,1219200,0}, P2 {2,1143000,0,1219200,0} } %ref : {-1143000,0,0,CC} %partno : {-1143000,0,0,CC} %desc : {-1143000,0,0,CC} %comm : {-1143000,0,0,CC} } shape "2_1206" { outlinepart "R737" { type : "NOT_INSTALLED_R", %cadtype : "1AB144890033", shapeid : "064303", descr : "RES 100.0000 KOhm 1.00 % SMD-0402 THK FLM 63.000 mW", insclass : "CP6B,SMT", gentype : "RECT_010_005_003", %package : "080230E", %pinref : "NONE", %tvalue : "1K", updated : 1, %mtechn : 2, %clocation : {167259000,205701900,2700,0}, location : {167259000,205701900,2700,0}, %_item_@ : "170" } deletedpins "R737" { "+3V_ADC" : { "R737",1,,,1,0 }, "N$41372" : { "R737",2,,,1,0 } } part "R738" { type : "NOT_INSTALLED_R", %cadtype : "1AB144890033", shapeid : "064303", descr : "RES 100.0000 KOhm 1.00 % SMD-0402 THK FLM 63.000 mW", insclass : "CP6B,SMT", gentype : "RECT_010_005_003", %package : "080230E", %pinref : "NONE", %tvalue : "1K", updated : 1, %mtechn : 2, %clocation : {146037300,194119500,0,0}, location : {146037300,194119500,0,0}, %_item_@ : "170" }'; preg_match_all('/^part\s"([^"]*)"[^{]*{[^}]*\stype\s*:\s+"([^"]*)"/ims',$sourcestring,$matches); echo "<pre>".print_r($matches,true); ?>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
<pre>Array ( [0] => Array ( ) [1] => Array ( ) [2] => Array ( ) )

preferences:
250.74 ms | 406 KiB | 372 Q