3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<'CSV_MRKR' 0,300,425,725,425,1625,2050 43000,300,425,725,430,1625,2055 44000,300,425,725,437,1625,2062 45000,300,425,725,444,1625,2069 46000,300,425,725,451,1625,2076 47000,300,425,725,458,1625,2083 48000,300,425,725,465,1625,2090 49000,300,425,725,472,1625,2097 50000,300,425,725,479,1625,2104 51000,305,425,730,486,1625,2111 52000,310,425,735,493,1625,2118 53000,315,425,740,500,1625,2125 54000,320,425,745,507,1625,2132 55000,325,425,750,514,1625,2139 56000,330,425,755,521,1625,2146 57000,335,425,760,528,1625,2153 58000,340,425,765,535,1625,2160 59000,345,425,770,542,1625,2167 60000,350,425,775,549,1625,2174 61000,355,435,790,556,1635,2191 62000,360,435,795,563,1635,2198 63000,365,435,800,570,1635,2205 64000,370,435,805,577,1635,2212 65000,375,435,810,584,1635,2219 66000,380,450,830,591,1650,2241 67000,385,450,835,598,1650,2248 68000,390,450,840,605,1650,2255 69000,395,450,845,612,1650,2262 70000,400,470,870,619,1665,2284 71000,405,470,875,626,1665,2291 72000,410,470,880,633,1665,2298 73000,415,470,885,640,1665,2305 74000,420,470,890,647,1665,2312 75000,425,470,895,654,1665,2319 76000,430,490,920,661,1680,2341 77000,435,490,925,668,1680,2348 78000,440,490,930,675,1680,2355 79000,445,490,935,682,1680,2362 80000,450,490,940,689,1680,2369 81000,455,510,965,696,1705,2401 82000,460,510,970,703,1705,2408 83000,465,510,975,710,1705,2415 84000,470,510,980,717,1705,2422 85000,475,510,985,724,1705,2429 86000,480,530,1010,731,1710,2441 87000,485,530,1015,738,1710,2448 88000,490,530,1020,745,1710,2455 89000,495,530,1025,752,1710,2462 90000,500,530,1030,759,1710,2469 91000,505,545,1050,766,1725,2491 92000,510,545,1055,773,1725,2498 93000,515,545,1060,780,1725,2505 94000,520,545,1065,787,1725,2512 95000,525,545,1070,794,1725,2519 96000,530,555,1085,801,1740,2541 97000,535,555,1090,808,1740,2548 98000,540,555,1095,815,1740,2555 99000,545,555,1100,822,1740,2562 100000,550,555,1105,829,1740,2569 105000,575,570,1145,864,1750,2614 110000,590,580,1170,899,1760,2659 115000,610,590,1200,934,1770,2704 120000,630,600,1230,969,1780,2749 125000,650,610,1260,1004,1790,2794 130000,670,620,1290,1039,1800,2839 135000,690,630,1320,1074,1810,2884 140000,710,640,1350,1109,1825,2934 145000,730,650,1380,1144,1835,2979 150000,750,675,1425,1179,1855,3034 160000,775,695,1470,1575,1915,3490 170000,800,715,1515,1650,1935,3585 180000,825,735,1560,1725,1955,3680 190000,850,755,1605,1800,1980,3780 200000,875,780,1655,1875,2000,3875 210000,900,800,1700,1950,2020,3970 220000,925,820,1745,2025,2040,4065 230000,950,840,1790,2100,2060,4160 240000,975,860,1835,2175,2085,4260 250000,1000,880,1880,2250,2105,4355 260000,1025,900,1925,2325,2150,4475 270000,1050,920,1970,2400,2170,4570 280000,1075,940,2015,2475,2190,4665 290000,1100,960,2060,2550,2215,4765 300000,1125,980,2105,2625,2235,4860 325000,1187,1010,2197,2812,2270,5082 350000,1250,1040,2290,3000,2310,5310 375000,1312,1090,2402,3187,2350,5537 400000,1375,1150,2525,3375,2385,5760 425000,1437,1200,2637,3562,2425,5987 450000,1500,1250,2750,3750,2465,6215 475000,1562,1300,2862,3937,2505,6442 500000,1625,1350,2975,4375,2540,6915 600000,1750,1500,3250,4625,2695,7320 700000,1875,1650,3525,5125,2845,7970 800000,2000,1850,3850,5625,3000,8625 900000,2125,2000,4125,6125,3150,9275 1000000,2250,2200,4450,6625,3300,9925 1250000,2562,2600,5162,7875,3720,11595 1500000,2875,2900,5775,9125,4030,13155 1750000,3187,3250,6437,10375,4350,14725 2000000,3500,3650,7150,11625,4675,16300 2500000,4125,4400,8525,14125,5300,19425 5000000,7250,7100,14350,26625,8250,34875 CSV_MRKR; $rows = str_getcsv(str_replace("\r\n","\n",$data),","); var_dump($rows); exit(); foreach($rows as $row) { $cols = str_getcsv($row,','); ?> <tr> <td class="col-basis">$<span class="right"><?=number_format((float)$cols[0],2,'.',',')?></span></td> <td>$<span class="right"><?=number_format((float)$cols[1],2,'.',',')?></span></td> <td>$<span class="right"><?=number_format((float)$cols[2],2,'.',',')?></span></td> <td class="col-total">$<span class="right"><?=number_format((float)$cols[3],2,'.',',')?></span></td> <td>$<span class="right"><?=number_format((float)$cols[4],2,'.',',')?></span></td> <td>$<span class="right"><?=number_format((float)$cols[5],2,'.',',')?></span></td> <td class="col-total">$<span class="right"><?=number_format((float)$cols[6],2,'.',',')?></span></td> </tr> <? } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/pjmPg
function name:  (null)
number of ops:  96
compiled vars:  !0 = $data, !1 = $rows, !2 = $row, !3 = $cols
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0%2C300%2C425%2C725%2C425%2C1625%2C2050%0A43000%2C300%2C425%2C725%2C430%2C1625%2C2055%0A44000%2C300%2C425%2C725%2C437%2C1625%2C2062%0A45000%2C300%2C425%2C725%2C444%2C1625%2C2069%0A46000%2C300%2C425%2C725%2C451%2C1625%2C2076%0A47000%2C300%2C425%2C725%2C458%2C1625%2C2083%0A48000%2C300%2C425%2C725%2C465%2C1625%2C2090%0A49000%2C300%2C425%2C725%2C472%2C1625%2C2097%0A50000%2C300%2C425%2C725%2C479%2C1625%2C2104%0A51000%2C305%2C425%2C730%2C486%2C1625%2C2111%0A52000%2C310%2C425%2C735%2C493%2C1625%2C2118%0A53000%2C315%2C425%2C740%2C500%2C1625%2C2125%0A54000%2C320%2C425%2C745%2C507%2C1625%2C2132%0A55000%2C325%2C425%2C750%2C514%2C1625%2C2139%0A56000%2C330%2C425%2C755%2C521%2C1625%2C2146%0A57000%2C335%2C425%2C760%2C528%2C1625%2C2153%0A58000%2C340%2C425%2C765%2C535%2C1625%2C2160%0A59000%2C345%2C425%2C770%2C542%2C1625%2C2167%0A60000%2C350%2C425%2C775%2C549%2C1625%2C2174%0A61000%2C355%2C435%2C790%2C556%2C1635%2C2191%0A62000%2C360%2C435%2C795%2C563%2C1635%2C2198%0A63000%2C365%2C435%2C800%2C570%2C1635%2C2205%0A64000%2C370%2C435%2C805%2C577%2C1635%2C2212%0A65000%2C375%2C435%2C810%2C584%2C1635%2C2219%0A66000%2C380%2C450%2C830%2C591%2C1650%2C2241%0A67000%2C385%2C450%2C835%2C598%2C1650%2C2248%0A68000%2C390%2C450%2C840%2C605%2C1650%2C2255%0A69000%2C395%2C450%2C845%2C612%2C1650%2C2262%0A70000%2C400%2C470%2C870%2C619%2C1665%2C2284%0A71000%2C405%2C470%2C875%2C626%2C1665%2C2291%0A72000%2C410%2C470%2C880%2C633%2C1665%2C2298%0A73000%2C415%2C470%2C885%2C640%2C1665%2C2305%0A74000%2C420%2C470%2C890%2C647%2C1665%2C2312%0A75000%2C425%2C470%2C895%2C654%2C1665%2C2319%0A76000%2C430%2C490%2C920%2C661%2C1680%2C2341%0A77000%2C435%2C490%2C925%2C668%2C1680%2C2348%0A78000%2C440%2C490%2C930%2C675%2C1680%2C2355%0A79000%2C445%2C490%2C935%2C682%2C1680%2C2362%0A80000%2C450%2C490%2C940%2C689%2C1680%2C2369%0A81000%2C455%2C510%2C965%2C696%2C1705%2C2401%0A82000%2C460%2C510%2C970%2C703%2C1705%2C2408%0A83000%2C465%2C510%2C975%2C710%2C1705%2C2415%0A84000%2C470%2C510%2C980%2C717%2C1705%2C2422%0A85000%2C475%2C510%2C985%2C724%2C1705%2C2429%0A86000%2C480%2C530%2C1010%2C731%2C1710%2C2441%0A87000%2C485%2C530%2C1015%2C738%2C1710%2C2448%0A88000%2C490%2C530%2C1020%2C745%2C1710%2C2455%0A89000%2C495%2C530%2C1025%2C752%2C1710%2C2462%0A90000%2C500%2C530%2C1030%2C759%2C1710%2C2469%0A91000%2C505%2C545%2C1050%2C766%2C1725%2C2491%0A92000%2C510%2C545%2C1055%2C773%2C1725%2C2498%0A93000%2C515%2C545%2C1060%2C780%2C1725%2C2505%0A94000%2C520%2C545%2C1065%2C787%2C1725%2C2512%0A95000%2C525%2C545%2C1070%2C794%2C1725%2C2519%0A96000%2C530%2C555%2C1085%2C801%2C1740%2C2541%0A97000%2C535%2C555%2C1090%2C808%2C1740%2C2548%0A98000%2C540%2C555%2C1095%2C815%2C1740%2C2555%0A99000%2C545%2C555%2C1100%2C822%2C1740%2C2562%0A100000%2C550%2C555%2C1105%2C829%2C1740%2C2569%0A105000%2C575%2C570%2C1145%2C864%2C1750%2C2614%0A110000%2C590%2C580%2C1170%2C899%2C1760%2C2659%0A115000%2C610%2C590%2C1200%2C934%2C1770%2C2704%0A120000%2C630%2C600%2C1230%2C969%2C1780%2C2749%0A125000%2C650%2C610%2C1260%2C1004%2C1790%2C2794%0A130000%2C670%2C620%2C1290%2C1039%2C1800%2C2839%0A135000%2C690%2C630%2C1320%2C1074%2C1810%2C2884%0A140000%2C710%2C640%2C1350%2C1109%2C1825%2C2934%0A145000%2C730%2C650%2C1380%2C1144%2C1835%2C2979%0A150000%2C750%2C675%2C1425%2C1179%2C1855%2C3034%0A160000%2C775%2C695%2C1470%2C1575%2C1915%2C3490%0A170000%2C800%2C715%2C1515%2C1650%2C1935%2C3585%0A180000%2C825%2C735%2C1560%2C1725%2C1955%2C3680%0A190000%2C850%2C755%2C1605%2C1800%2C1980%2C3780%0A200000%2C875%2C780%2C1655%2C1875%2C2000%2C3875%0A210000%2C900%2C800%2C1700%2C1950%2C2020%2C3970%0A220000%2C925%2C820%2C1745%2C2025%2C2040%2C4065%0A230000%2C950%2C840%2C1790%2C2100%2C2060%2C4160%0A240000%2C975%2C860%2C1835%2C2175%2C2085%2C4260%0A250000%2C1000%2C880%2C1880%2C2250%2C2105%2C4355%0A260000%2C1025%2C900%2C1925%2C2325%2C2150%2C4475%0A270000%2C1050%2C920%2C1970%2C2400%2C2170%2C4570%0A280000%2C1075%2C940%2C2015%2C2475%2C2190%2C4665%0A290000%2C1100%2C960%2C2060%2C2550%2C2215%2C4765%0A300000%2C1125%2C980%2C2105%2C2625%2C2235%2C4860%0A325000%2C1187%2C1010%2C2197%2C2812%2C2270%2C5082%0A350000%2C1250%2C1040%2C2290%2C3000%2C2310%2C5310%0A375000%2C1312%2C1090%2C2402%2C3187%2C2350%2C5537%0A400000%2C1375%2C1150%2C2525%2C3375%2C2385%2C5760%0A425000%2C1437%2C1200%2C2637%2C3562%2C2425%2C5987%0A450000%2C1500%2C1250%2C2750%2C3750%2C2465%2C6215%0A475000%2C1562%2C1300%2C2862%2C3937%2C2505%2C6442%0A500000%2C1625%2C1350%2C2975%2C4375%2C2540%2C6915%0A600000%2C1750%2C1500%2C3250%2C4625%2C2695%2C7320%0A700000%2C1875%2C1650%2C3525%2C5125%2C2845%2C7970%0A800000%2C2000%2C1850%2C3850%2C5625%2C3000%2C8625%0A900000%2C2125%2C2000%2C4125%2C6125%2C3150%2C9275%0A1000000%2C2250%2C2200%2C4450%2C6625%2C3300%2C9925%0A1250000%2C2562%2C2600%2C5162%2C7875%2C3720%2C11595%0A1500000%2C2875%2C2900%2C5775%2C9125%2C4030%2C13155%0A1750000%2C3187%2C3250%2C6437%2C10375%2C4350%2C14725%0A2000000%2C3500%2C3650%2C7150%2C11625%2C4675%2C16300%0A2500000%2C4125%2C4400%2C8525%2C14125%2C5300%2C19425%0A5000000%2C7250%2C7100%2C14350%2C26625%2C8250%2C34875'
  108     1        INIT_FCALL                                               'str_getcsv'
          2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '%0D%0A'
          4        SEND_VAL                                                 '%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        SEND_VAL                                                 '%2C'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
  110    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
  111    14      > EXIT                                                     
  113    15*       FE_RESET_R                                       $9      !1, ->94
         16*       FE_FETCH_R                                               $9, !2, ->94
  114    17*       INIT_FCALL                                               'str_getcsv'
         18*       SEND_VAR                                                 !2
         19*       SEND_VAL                                                 '%2C'
         20*       DO_ICALL                                         $10     
         21*       ASSIGN                                                   !3, $10
  116    22*       ECHO                                                     '%09%09%3Ctr%3E%0A%09%09%09%3Ctd+class%3D%22col-basis%22%3E%24%3Cspan+class%3D%22right%22%3E'
  117    23*       INIT_FCALL                                               'number_format'
         24*       FETCH_DIM_R                                      ~12     !3, 0
         25*       CAST                                          5  ~13     ~12
         26*       SEND_VAL                                                 ~13
         27*       SEND_VAL                                                 2
         28*       SEND_VAL                                                 '.'
         29*       SEND_VAL                                                 '%2C'
         30*       DO_ICALL                                         $14     
         31*       ECHO                                                     $14
         32*       ECHO                                                     '%3C%2Fspan%3E%3C%2Ftd%3E%0A%09%09%09%3Ctd%3E%24%3Cspan+class%3D%22right%22%3E'
  118    33*       INIT_FCALL                                               'number_format'
         34*       FETCH_DIM_R                                      ~15     !3, 1
         35*       CAST                                          5  ~16     ~15
         36*       SEND_VAL                                                 ~16
         37*       SEND_VAL                                                 2
         38*       SEND_VAL                                                 '.'
         39*       SEND_VAL                                                 '%2C'
         40*       DO_ICALL                                         $17     
         41*       ECHO                                                     $17
         42*       ECHO                                                     '%3C%2Fspan%3E%3C%2Ftd%3E%0A%09%09%09%3Ctd%3E%24%3Cspan+class%3D%22right%22%3E'
  119    43*       INIT_FCALL                                               'number_format'
         44*       FETCH_DIM_R                                      ~18     !3, 2
         45*       CAST                                          5  ~19     ~18
         46*       SEND_VAL                                                 ~19
         47*       SEND_VAL                                                 2
         48*       SEND_VAL                                                 '.'
         49*       SEND_VAL                                                 '%2C'
         50*       DO_ICALL                                         $20     
         51*       ECHO                                                     $20
         52*       ECHO                                                     '%3C%2Fspan%3E%3C%2Ftd%3E%0A%09%09%09%3Ctd+class%3D%22col-total%22%3E%24%3Cspan+class%3D%22right%22%3E'
  120    53*       INIT_FCALL                                               'number_format'
         54*       FETCH_DIM_R                                      ~21     !3, 3
         55*       CAST                                          5  ~22     ~21
         56*       SEND_VAL                                                 ~22
         57*       SEND_VAL                                                 2
         58*       SEND_VAL                                                 '.'
         59*       SEND_VAL                                                 '%2C'
         60*       DO_ICALL                                         $23     
         61*       ECHO                                                     $23
         62*       ECHO                                                     '%3C%2Fspan%3E%3C%2Ftd%3E%0A%09%09%09%3Ctd%3E%24%3Cspan+class%3D%22right%22%3E'
  121    63*       INIT_FCALL                                               'number_format'
         64*       FETCH_DIM_R                                      ~24     !3, 4
         65*       CAST                                          5  ~25     ~24
         66*       SEND_VAL                                                 ~25
         67*       SEND_VAL                                                 2
         68*       SEND_VAL                                                 '.'
         69*       SEND_VAL                                                 '%2C'
         70*       DO_ICALL                                         $26     
         71*       ECHO                                                     $26
         72*       ECHO                                                     '%3C%2Fspan%3E%3C%2Ftd%3E%0A%09%09%09%3Ctd%3E%24%3Cspan+class%3D%22right%22%3E'
  122    73*       INIT_FCALL                                               'number_format'
         74*       FETCH_DIM_R                                      ~27     !3, 5
         75*       CAST                                          5  ~28     ~27
         76*       SEND_VAL                                                 ~28
         77*       SEND_VAL                                                 2
         78*       SEND_VAL                                                 '.'
         79*       SEND_VAL                                                 '%2C'
         80*       DO_ICALL                                         $29     
         81*       ECHO                                                     $29
         82*       ECHO                                                     '%3C%2Fspan%3E%3C%2Ftd%3E%0A%09%09%09%3Ctd+class%3D%22col-total%22%3E%24%3Cspan+class%3D%22right%22%3E'
  123    83*       INIT_FCALL                                               'number_format'
         84*       FETCH_DIM_R                                      ~30     !3, 6
         85*       CAST                                          5  ~31     ~30
         86*       SEND_VAL                                                 ~31
         87*       SEND_VAL                                                 2
         88*       SEND_VAL                                                 '.'
         89*       SEND_VAL                                                 '%2C'
         90*       DO_ICALL                                         $32     
         91*       ECHO                                                     $32
         92*       ECHO                                                     '%3C%2Fspan%3E%3C%2Ftd%3E%0A%09%09%3C%2Ftr%3E%0A'
  113    93*       JMP                                                      ->16
         94*       FE_FREE                                                  $9
  125    95*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.09 ms | 1408 KiB | 21 Q