3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring='part "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); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PSXuM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $sourcestring, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'part+%22R737%22%0A++++++%7B+type+++++++%3A+%22NOT_INSTALLED_R%22%2C%0A++++++++%25cadtype+++%3A+%221AB144890033%22%2C%0A++++++++shapeid++++%3A+%22064303%22%2C%0A++++++++descr++++++%3A+%22RES+100.0000+KOhm+1.00+%25+SMD-0402+THK+FLM+63.000+mW%22%2C%0A++++++++insclass+++%3A+%22CP6B%2CSMT%22%2C%0A++++++++gentype++++%3A+%22RECT_010_005_003%22%2C%0A++++++++%25package+++%3A+%22080230E%22%2C%0A++++++++%25pinref++++%3A+%22NONE%22%2C%0A++++++++%25tvalue++++%3A+%221K%22%2C%0A++++++++updated++++%3A+1%2C%0A++++++++%25mtechn++++%3A+2%2C%0A++++++++%25clocation+%3A+%7B167259000%2C205701900%2C2700%2C0%7D%2C%0A++++++++location+++%3A+%7B167259000%2C205701900%2C2700%2C0%7D%2C%0A++++++++%25_item_%40+++%3A+%22170%22+%7D%0A++++++deletedpins+%22R737%22%0A++++++%7B+%22%2B3V_ADC%22+%3A+%7B+%22R737%22%2C1%2C%2C%2C1%2C0+%7D%2C%0A++++++++%22N%2441372%22+%3A+%7B+%22R737%22%2C2%2C%2C%2C1%2C0+%7D+%7D%0A++++++part+%22R738%22%0A++++++%7B+type+++++++%3A+%22NOT_INSTALLED_R%22%2C%0A++++++++%25cadtype+++%3A+%221AB144890033%22%2C%0A++++++++shapeid++++%3A+%22064303%22%2C%0A++++++++descr++++++%3A+%22RES+100.0000+KOhm+1.00+%25+SMD-0402+THK+FLM+63.000+mW%22%2C%0A++++++++insclass+++%3A+%22CP6B%2CSMT%22%2C%0A++++++++gentype++++%3A+%22RECT_010_005_003%22%2C%0A++++++++%25package+++%3A+%22080230E%22%2C%0A++++++++%25pinref++++%3A+%22NONE%22%2C%0A++++++++%25tvalue++++%3A+%221K%22%2C%0A++++++++updated++++%3A+1%2C%0A++++++++%25mtechn++++%3A+2%2C%0A++++++++%25clocation+%3A+%7B146037300%2C194119500%2C0%2C0%7D%2C%0A++++++++location+++%3A+%7B146037300%2C194119500%2C0%2C0%7D%2C%0A++++++++%25_item_%40+++%3A+%22170%22+%7D'
   35     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Epart%5Cs%22%28%5B%5E%22%5D%2A%29%22%5B%5E%7B%5D%2A%7B%5B%5E%7D%5D%2A%5Cstype%5Cs%2A%3A%5Cs%2B%22%28%5B%5E%22%5D%2A%29%22%2Fims'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   36     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $4      
         10        CONCAT                                           ~5      '%3Cpre%3E', $4
         11        ECHO                                                     ~5
   37    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.8 ms | 1396 KiB | 17 Q