3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "[orderId] => 212939129; [orderId] => 212939129 [orderNumber] => INV10001 [salesTax] => 1.00 [amount] => 21.00 [terminal] => 5 [currency] => 1 [type] => purchase [avsStreet] => 123 Road [avsZip] => A1A 2B2 [customerCode] => CST1001 [cardId] => 18951828182 [cardHolderName] => John Smith [cardNumber] => 5454545454545454 [cardExpiry] => 1025 [cardCVV] => 100"; $butt = explode(" => ", $data); for ($i = 0; $i < count($butt); $i++) { if ($butt[$i] === "[salesTax]") { echo $butt[$i+1]; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
Branch analysis from position: 14
filename:       /in/W8eRi
function name:  (null)
number of ops:  19
compiled vars:  !0 = $data, !1 = $butt, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5BorderId%5D+%3D%3E+212939129%3B%0A++++%5BorderId%5D+%3D%3E+212939129%0A%5BorderNumber%5D+%3D%3E+INV10001%0A%5BsalesTax%5D+%3D%3E+1.00%0A%5Bamount%5D+%3D%3E+21.00%0A%5Bterminal%5D+%3D%3E+5%0A%5Bcurrency%5D+%3D%3E+1%0A%5Btype%5D+%3D%3E+purchase%0A%5BavsStreet%5D+%3D%3E+123+Road%0A%5BavsZip%5D+%3D%3E+A1A+2B2%0A%5BcustomerCode%5D+%3D%3E+CST1001%0A%5BcardId%5D+%3D%3E+18951828182%0A%5BcardHolderName%5D+%3D%3E+John+Smith%0A%5BcardNumber%5D+%3D%3E+5454545454545454%0A%5BcardExpiry%5D+%3D%3E+1025%0A%5BcardCVV%5D+%3D%3E+100'
   19     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+%3D%3E+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   20     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->15
   21     8    >   FETCH_DIM_R                                      ~7      !1, !2
          9        IS_IDENTICAL                                             ~7, '%5BsalesTax%5D'
         10      > JMPZ                                                     ~8, ->14
   22    11    >   ADD                                              ~9      !2, 1
         12        FETCH_DIM_R                                      ~10     !1, ~9
         13        ECHO                                                     ~10
   20    14    >   PRE_INC                                                  !2
         15    >   COUNT                                            ~12     !1
         16        IS_SMALLER                                               !2, ~12
         17      > JMPNZ                                                    ~13, ->8
   25    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.04 ms | 1395 KiB | 15 Q