3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TAG DESCRIPTION QUANTITY UNIT PRICE TAX RCV DEPREC. ACV 1. Remove 3 tab - 25 yr. - composition shingle roofing - 21.25 SQ 52.83 0.00 1,122.64 (0.00) 1,122.64 incl. felt 2. 3 tab - 25 yr. - composition shingle roofing - incl. felt 24.67 SQ 186.84 199.43 4,808.77 (0.00) 4,808.77 3. R&R Drip edge 196.95 LF 2.33 16.27 475.16 (0.00) 475.16 4. Asphalt starter - universal starter course 100.58 LF 1.31 3.67 135.43 (0.00) 135.43 5. Ice & water barrier 118.94 SF 1.15 4.34 141.12 (0.00) 141.12 6. R&R Roof vent - turtle type - Metal 5.00 EA 51.09 6.55 262.00 (0.00) 262.00 7. R&R Flashing - pipe jack 3.00 EA 38.63 2.95 118.84 (0.00) 118.84 8. R&R Rain cap - 6" 2.00 EA 36.80 3.40 77.00 (0.00) 77.00 9. R&R Ridge cap - composition shingles 77.58 LF 4.67 7.04 369.33 (0.00) 369.33 10. Digital satellite system - Detach & reset 1.00 EA 31.40 0.00 31.40 (0.00) 31.40 11. Digital satellite system - alignment and calibration 1.00 EA 94.19 0.00 94.19 (0.00) 94.19 only 12. R&R Flashing - pipe jack - split boot 1.00 EA 76.00 3.76 79.76 (0.00) 79.76 13. R&R Gutter / downspout - aluminum - up to 5" 152.58 LF 7.13 49.56 1,137.45 (0.00) 1,137.45 TAG; var_dump(explode(PHP_EOL, preg_replace('/\s+(\d+\.)\s+/', PHP_EOL . '$1 ', $text)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n01E5
function name:  (null)
number of ops:  14
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'DESCRIPTION+QUANTITY+UNIT+PRICE+TAX+RCV+DEPREC.+ACV+1.+Remove+3+tab+-+25+yr.+-+composition+shingle+roofing+-+21.25+SQ+52.83+0.00+1%2C122.64+%280.00%29+1%2C122.64+incl.+felt+2.+3+tab+-+25+yr.+-+composition+shingle+roofing+-+incl.+felt+24.67+SQ+186.84+199.43+4%2C808.77+%280.00%29+4%2C808.77+3.+R%26R+Drip+edge+196.95+LF+2.33+16.27+475.16+%280.00%29+475.16+4.+Asphalt+starter+-+universal+starter+course+100.58+LF+1.31+3.67+135.43+%280.00%29+135.43+5.+Ice+%26+water+barrier+118.94+SF+1.15+4.34+141.12+%280.00%29+141.12+6.+R%26R+Roof+vent+-+turtle+type+-+Metal+5.00+EA+51.09+6.55+262.00+%280.00%29+262.00+7.+R%26R+Flashing+-+pipe+jack+3.00+EA+38.63+2.95+118.84+%280.00%29+118.84+8.+R%26R+Rain+cap+-+6%22+2.00+EA+36.80+3.40+77.00+%280.00%29+77.00+9.+R%26R+Ridge+cap+-+composition+shingles+77.58+LF+4.67+7.04+369.33+%280.00%29+369.33+10.+Digital+satellite+system+-+Detach+%26+reset+1.00+EA+31.40+0.00+31.40+%280.00%29+31.40+11.+Digital+satellite+system+-+alignment+and+calibration+1.00+EA+94.19+0.00+94.19+%280.00%29+94.19+only+12.+R%26R+Flashing+-+pipe+jack+-+split+boot+1.00+EA+76.00+3.76+79.76+%280.00%29+79.76+13.+R%26R+Gutter+%2F+downspout+-+aluminum+-+up+to+5%22+152.58+LF+7.13+49.56+1%2C137.45+%280.00%29+1%2C137.45'
    7     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0A'
          4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%5Cs%2B%28%5Cd%2B%5C.%29%5Cs%2B%2F'
          6        SEND_VAL                                                 '%0A%241+'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.23 ms | 1004 KiB | 16 Q