3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<input type="hidden" name="payFormParams" id="payFormParams" value="payment_type=PaymentForm&merchant_id=117589463&trnType=P&errorPage=%2Fscripts%2Fpayment%2Fpayment%2Easp&approvedPage=&declinedPage=&epe_client_found=false&trnLanguage=eng&shipping_method=&ref1=&ref2=&ref3=&ref4=&ref5=&shippingMethod=&deliveryEstimate=&ordTax1Price=&ordTax2Price=&ordItemPrice=0&ordShippingPrice=0&trnOrderNumber=51029&trnAmount=5%2E00&ordName=Surreal+View&ordEmailAddress=xx%40gmail%2Ecom&ordPhoneNumber=2039581030&ordAddress1=3501+Jack+Northrop+Ave&ordCity=Hawthorne&ordProvince=CA&ordPostalCode=90250&ordCountry=US&paymentMethod=CC&trnCardOwner=Suyash&trnCardCvd=xxx&cavBirthMonth=&cavBirthDay=&cavBirthYear=&cavSin=&paymentAction=&hashValue="6a1562f5c4901522ab6926a4caf9f278"=&trnCardNumber=xxxxxxxxx0412300&trnExpMonth=xx&trnExpYear=xx&aDFinancingType=&aDPlanNumber=&aDGracePeriod=&aDTerm=>'; $ex = explode('=', $html); foreach($ex as $key => $value){ if($value === '&hashValue'){ $targetKey = $key + 1; $hash = explode('"', $ex[$targetKey]); $targetHash = $hash[1]; echo $targetHash; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 23
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 22
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/kUrJs
function name:  (null)
number of ops:  25
compiled vars:  !0 = $html, !1 = $ex, !2 = $value, !3 = $key, !4 = $targetKey, !5 = $hash, !6 = $targetHash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cinput+type%3D%22hidden%22+name%3D%22payFormParams%22+id%3D%22payFormParams%22+value%3D%22payment_type%3DPaymentForm%26merchant_id%3D117589463%26trnType%3DP%26errorPage%3D%252Fscripts%252Fpayment%252Fpayment%252Easp%26approvedPage%3D%26declinedPage%3D%26epe_client_found%3Dfalse%26trnLanguage%3Deng%26shipping_method%3D%26ref1%3D%26ref2%3D%26ref3%3D%26ref4%3D%26ref5%3D%26shippingMethod%3D%26deliveryEstimate%3D%26ordTax1Price%3D%26ordTax2Price%3D%26ordItemPrice%3D0%26ordShippingPrice%3D0%26trnOrderNumber%3D51029%26trnAmount%3D5%252E00%26ordName%3DSurreal%2BView%26ordEmailAddress%3Dxx%2540gmail%252Ecom%26ordPhoneNumber%3D2039581030%26ordAddress1%3D3501%2BJack%2BNorthrop%2BAve%26ordCity%3DHawthorne%26ordProvince%3DCA%26ordPostalCode%3D90250%26ordCountry%3DUS%26paymentMethod%3DCC%26trnCardOwner%3DSuyash%26trnCardCvd%3Dxxx%26cavBirthMonth%3D%26cavBirthDay%3D%26cavBirthYear%3D%26cavSin%3D%26paymentAction%3D%26hashValue%3D%226a1562f5c4901522ab6926a4caf9f278%22%3D%26trnCardNumber%3Dxxxxxxxxx0412300%26trnExpMonth%3Dxx%26trnExpYear%3Dxx%26aDFinancingType%3D%26aDPlanNumber%3D%26aDGracePeriod%3D%26aDTerm%3D%3E'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3D'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !1, $8
    5     6      > FE_RESET_R                                       $10     !1, ->23
          7    > > FE_FETCH_R                                       ~11     $10, !2, ->23
          8    >   ASSIGN                                                   !3, ~11
    6     9        IS_IDENTICAL                                             !2, '%26hashValue'
         10      > JMPZ                                                     ~13, ->22
    7    11    >   ADD                                              ~14     !3, 1
         12        ASSIGN                                                   !4, ~14
    8    13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%22'
         15        FETCH_DIM_R                                      ~16     !1, !4
         16        SEND_VAL                                                 ~16
         17        DO_ICALL                                         $17     
         18        ASSIGN                                                   !5, $17
    9    19        FETCH_DIM_R                                      ~19     !5, 1
         20        ASSIGN                                                   !6, ~19
   10    21        ECHO                                                     !6
    5    22    > > JMP                                                      ->7
         23    >   FE_FREE                                                  $10
   12    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.85 ms | 1010 KiB | 14 Q