3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring=' part "R102" { type : "1AB000150018", } part "R103" { type : "1AB000150018", } part "R106" { type : "1AB000150018", } part "R107" { type : "1AB000150018", } part "R111" { type : "1AB000150018", } part "R112" { type : "1AB000150018", } part "C1" { type : "1AB008141056", } part "C105" { type : "1AB010050101", } part "C108" { type : "1AB010050101", } part "C111" { type : "1AB010050101", } part "C112" { type : "1AB010050101", } part "C116" { type : "1AB010050101", } part "C119" { type : "1AB010050101", } part "CR101" { type : "1AB013040001", } part "R108" { type : "1AB134110002", } part "R109" { type : "1AB134110002", } part "C101" { type : "1AB169790006", } part "C102" { type : "1AB169790006", } part "C103" { type : "1AB169790006", } part "C104" { type : "1AB169790006", } part "C120" { type : "1AB169790006", } part "PW1" { type : "3EM13494AA", } part "HY102" { type : "NOT-INST-PRT", } part "Q101" { type : "NOT-INST-PRT", } part "Q102" { type : "NOT-INST-PRT", } part "Q103" { type : "NOT-INST-PRT", } part "AT1" { type : "1AB103050002", }'; preg_match_all('/^\s*part\s"([^"]*)"[^{]*{[^}]*\stype\s*:\s+"(?![NOT_||BA])([^"]*)"/ism',$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/toc1N
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, '%0Apart+%22R102%22%0A%7B+type+++++++%3A+%221AB000150018%22%2C%0A%7D%0Apart+%22R103%22%0A%7B+type+++++++%3A+%221AB000150018%22%2C%0A%7D%0Apart+%22R106%22%0A%7B+type+++++++%3A+%221AB000150018%22%2C%0A%7D%0Apart+%22R107%22%0A%7B+type+++++++%3A+%221AB000150018%22%2C%0A%7D%0Apart+%22R111%22%0A%7B+type+++++++%3A+%221AB000150018%22%2C%0A%7D%0Apart+%22R112%22%0A%7B+type+++++++%3A+%221AB000150018%22%2C%0A%7D%0Apart+%22C1%22%0A%7B+type+++++++%3A+%221AB008141056%22%2C%0A%7D%0Apart+%22C105%22%0A%7B+type+++++++%3A+%221AB010050101%22%2C%0A%7D%0Apart+%22C108%22%0A%7B+type+++++++%3A+%221AB010050101%22%2C%0A%7D%0Apart+%22C111%22%0A%7B+type+++++++%3A+%221AB010050101%22%2C%0A%7D%0Apart+%22C112%22%0A%7B+type+++++++%3A+%221AB010050101%22%2C%0A%7D%0Apart+%22C116%22%0A%7B+type+++++++%3A+%221AB010050101%22%2C%0A%7D%0Apart+%22C119%22%0A%7B+type+++++++%3A+%221AB010050101%22%2C%0A%7D%0Apart+%22CR101%22%0A%7B+type+++++++%3A+%221AB013040001%22%2C%0A%7D%0Apart+%22R108%22%0A%7B+type+++++++%3A+%221AB134110002%22%2C%0A%7D%0Apart+%22R109%22%0A%7B+type+++++++%3A+%221AB134110002%22%2C%0A%7D%0Apart+%22C101%22%0A%7B+type+++++++%3A+%221AB169790006%22%2C%0A%7D%0Apart+%22C102%22%0A%7B+type+++++++%3A+%221AB169790006%22%2C%0A%7D%0Apart+%22C103%22%0A%7B+type+++++++%3A+%221AB169790006%22%2C%0A%7D%0Apart+%22C104%22%0A%7B+type+++++++%3A+%221AB169790006%22%2C%0A%7D%0Apart+%22C120%22%0A%7B+type+++++++%3A+%221AB169790006%22%2C%0A%7D%0Apart+%22PW1%22%0A%7B+type+++++++%3A+%223EM13494AA%22%2C%0A%7D%0Apart+%22HY102%22%0A%7B+type+++++++%3A+%22NOT-INST-PRT%22%2C%0A%7D%0Apart+%22Q101%22%0A%7B+type+++++++%3A+%22NOT-INST-PRT%22%2C%0A%7D%0Apart+%22Q102%22%0A%7B+type+++++++%3A+%22NOT-INST-PRT%22%2C%0A%7D%0Apart+%22Q103%22%0A%7B+type+++++++%3A+%22NOT-INST-PRT%22%2C%0A%7D%0Apart+%22AT1%22%0A%7B+type+++++++%3A+%221AB103050002%22%2C%0A%7D'
   84     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5E%5Cs%2Apart%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%3F%21%5BNOT_%7C%7CBA%5D%29%28%5B%5E%22%5D%2A%29%22%2Fism'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   85     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
   86    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.58 ms | 1401 KiB | 17 Q