3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = "Type:Bid, End Time: 12/20/2018 08:10 AM (PST), Price: $8,000,Bids: 14, Age: 0, Description: , Views: 120270, Valuation: $10,75, IsTrue: false"; var_export(preg_match_all('/[^:]+:\s*\K.*?(?=\s*(?:$|,[^,:]+:))/', $line, $out) ? $out[0] : []);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E3vZv
function name:  (null)
number of ops:  15
compiled vars:  !0 = $line, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Type%3ABid%2C+End+Time%3A+12%2F20%2F2018+08%3A10+AM+%28PST%29%2C+Price%3A+%248%2C000%2CBids%3A+14%2C+Age%3A+0%2C+Description%3A++%2C+Views%3A+120270%2C+Valuation%3A+%2410%2C75%2C+IsTrue%3A+false'
    5     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%5B%5E%3A%5D%2B%3A%5Cs%2A%5CK.%2A%3F%28%3F%3D%5Cs%2A%28%3F%3A%24%7C%2C%5B%5E%2C%3A%5D%2B%3A%29%29%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7      > JMPZ                                                     $3, ->11
          8    >   FETCH_DIM_R                                      ~4      !1, 0
          9        QM_ASSIGN                                        ~5      ~4
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~5      <array>
         12    >   SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.34 ms | 1006 KiB | 15 Q