3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'NL91 RABO 0157 8094 63 4837 NL78 RABO 0135 0695 99 4829 NL39 RBRB 0827 4287 31 4823 NL63 RABO 0151 5685 02 4825 NL77 RABO 0151 8976 62 4935 NL24 RABO 0159 7351 49 4819 NL75 RABO 0128 6474 77 4821 NL69 DEUT 0540 7045 98 4815 NL49 RABO 0129 6430 68 4827 NL92 RABO 0166 3531 08 4831 NL86 RABO 0183 6005 92 5521 NL38 INGB 0007525857 5901'; $lines = explode(PHP_EOL, $text); foreach($lines as $line){ list($iban, $klantid)=explode("\t", $line); $iban = str_replace(' ', '', $iban); //echo "select * from klanten WHERE klantid='".$klantid."' and REPLACE(iban, ' ', '') = '".$iban."';".PHP_EOL; echo "UPDATE klanten SET iban='' WHERE klantid='".$klantid."' and REPLACE(iban, ' ', '') = '".$iban."';".PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 30
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 30
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/m0ntX
function name:  (null)
number of ops:  32
compiled vars:  !0 = $text, !1 = $lines, !2 = $line, !3 = $iban, !4 = $klantid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'NL91+RABO+0157+8094+63%094837%0ANL78+RABO+0135+0695+99%094829%0ANL39+RBRB+0827+4287+31%094823%0ANL63+RABO+0151+5685+02%094825%0ANL77+RABO+0151+8976+62%094935%0ANL24+RABO+0159+7351+49%094819%0ANL75+RABO+0128+6474+77%094821%0ANL69+DEUT+0540+7045+98%094815%0ANL49+RABO+0129+6430+68%094827%0ANL92+RABO+0166+3531+08%094831%0ANL86+RABO+0183+6005+92%095521%0ANL38+INGB+0007525857%095901'
   16     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
   17     6      > FE_RESET_R                                       $8      !1, ->30
          7    > > FE_FETCH_R                                               $8, !2, ->30
   18     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%09'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        FETCH_LIST_R                                     $10     $9, 0
         13        ASSIGN                                                   !3, $10
         14        FETCH_LIST_R                                     $12     $9, 1
         15        ASSIGN                                                   !4, $12
         16        FREE                                                     $9
   19    17        INIT_FCALL                                               'str_replace'
         18        SEND_VAL                                                 '+'
         19        SEND_VAL                                                 ''
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $14     
         22        ASSIGN                                                   !3, $14
   21    23        CONCAT                                           ~16     'UPDATE+klanten+SET+iban%3D%27%27+WHERE+klantid%3D%27', !4
         24        CONCAT                                           ~17     ~16, '%27+and++REPLACE%28iban%2C+%27+%27%2C+%27%27%29+%3D+%27'
         25        CONCAT                                           ~18     ~17, !3
         26        CONCAT                                           ~19     ~18, '%27%3B'
         27        CONCAT                                           ~20     ~19, '%0A'
         28        ECHO                                                     ~20
   17    29      > JMP                                                      ->7
         30    >   FE_FREE                                                  $8
   22    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.11 ms | 1388 KiB | 17 Q