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; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0130.00921.95
8.4.150.0020.00014.05
8.4.140.0130.00817.60
8.4.130.0150.00518.63
8.4.120.0100.01023.98
8.4.110.0060.00317.75
8.4.100.0030.00517.68
8.4.90.0090.01120.43
8.4.80.0160.00418.73
8.4.70.0030.00520.68
8.4.60.0160.00520.60
8.4.50.0110.00818.61
8.4.40.0170.00317.77
8.4.30.0130.00718.80
8.4.20.0160.00319.72
8.4.10.0030.00619.50
8.3.280.0120.00918.35
8.3.270.0080.01216.35
8.3.260.0110.00716.45
8.3.250.0080.01018.75
8.3.240.0080.01016.45
8.3.230.0060.00516.85
8.3.220.0100.00818.95
8.3.210.0120.00716.47
8.3.200.0060.00316.40
8.3.190.0050.00316.99
8.3.180.0040.00418.93
8.3.170.0090.00919.18
8.3.160.0150.00316.73
8.3.150.0140.00316.56
8.3.140.0140.00316.46
8.3.130.0070.01318.50
8.3.120.0000.01519.04
8.3.110.0090.00620.94
8.3.100.0050.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00019.36
8.3.70.0070.01418.25
8.3.60.0000.01516.37
8.3.50.0100.00724.43
8.3.40.0040.01119.08
8.3.30.0110.00318.68
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0050.00326.16
8.2.290.0130.00616.55
8.2.280.0100.00317.76
8.2.270.0210.00016.65
8.2.260.0130.00617.03
8.2.250.0040.00416.82
8.2.240.0050.00517.06
8.2.230.0030.00522.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0120.00316.58
8.2.180.0100.00725.92
8.2.170.0110.00719.09
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00426.35
8.2.110.0070.00322.12
8.2.100.0080.00417.84
8.2.90.0000.00817.84
8.2.80.0050.00319.05
8.2.70.0000.00817.50
8.2.60.0030.00617.63
8.2.50.0000.00818.05
8.2.40.0000.00818.03
8.2.30.0020.00518.03
8.2.20.0000.00718.03
8.2.10.0000.00719.23
8.2.00.0040.00419.34
8.1.330.0100.00915.96
8.1.320.0120.00716.18
8.1.310.0160.00318.57
8.1.300.0080.01217.75
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0000.00822.14
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0030.00623.96
8.1.230.0070.00320.97
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0090.00018.71
8.1.160.0040.00418.90
8.1.150.0090.00018.85
8.1.140.0050.00318.75
8.1.130.0000.00717.38
8.1.120.0000.00917.51
8.1.110.0030.00517.45
8.1.100.0000.00717.43
8.1.90.0030.00517.36
8.1.80.0050.00317.42
8.1.70.0030.00317.42
8.1.60.0030.00617.53
8.1.50.0040.00417.54
8.1.40.0040.00417.54
8.1.30.0040.00417.66
8.1.20.0000.00817.52
8.1.10.0040.00417.59
8.1.00.0090.00317.39
8.0.300.0000.00720.17
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0030.00318.02
8.0.260.0000.00816.73
8.0.250.0080.00017.01
8.0.240.0070.00016.95
8.0.230.0000.00816.95
8.0.220.0030.00316.87
8.0.210.0000.00716.80
8.0.200.0040.00416.98
8.0.190.0000.00717.01
8.0.180.0050.00216.84
8.0.170.0060.00316.90
8.0.160.0000.00816.86
8.0.150.0000.00716.91
8.0.140.0100.00016.79
8.0.130.0030.00313.25
8.0.120.0050.00316.75
8.0.110.0060.00316.88
8.0.100.0000.00716.71
8.0.90.0040.00416.73
8.0.80.0070.00716.86
8.0.70.0000.00716.71
8.0.60.0040.00416.69
8.0.50.0050.00216.74
8.0.30.0170.00017.18
8.0.20.0130.00816.94
8.0.10.0040.00416.81
8.0.00.0130.00616.80
7.4.330.0000.00515.55
7.4.320.0030.00316.58
7.4.300.0030.00316.52
7.4.290.0030.00516.44
7.4.280.0090.00016.39
7.4.270.0030.00616.58
7.4.260.0050.00013.25
7.4.250.0070.00016.48
7.4.240.0020.00616.43
7.4.230.0000.00716.34
7.4.220.0000.00716.40
7.4.210.0080.00716.63
7.4.200.0030.00316.68
7.4.130.0090.00816.54
7.4.120.0090.01216.54
7.4.110.0130.01016.38
7.4.100.0150.00416.54
7.4.90.0090.00916.51
7.4.80.0140.00819.39
7.4.70.0060.01216.50
7.4.60.0030.01516.32
7.4.50.0100.00716.64
7.4.40.0160.00616.30
7.4.30.0140.00316.38
7.4.20.0060.00916.30
7.4.10.0120.00416.35
7.4.00.0080.00816.47
7.3.330.0000.00716.27
7.3.320.0000.00513.23
7.3.310.0080.00016.16
7.3.300.0070.00016.34
7.3.290.0080.00816.36
7.3.260.0100.01016.37
7.3.230.0190.00316.52
7.3.210.0070.01016.52
7.3.200.0090.00616.43
7.3.190.0130.00316.45
7.3.180.0150.00316.61
7.3.170.0120.00916.34
7.3.160.0060.01116.29
7.3.150.0060.00916.41
7.3.140.0160.00016.36
7.3.130.0060.00916.32
7.3.120.0130.00316.19
7.3.110.0060.00916.56
7.3.100.0130.00316.35
7.3.90.0060.00916.44
7.3.80.0030.01216.22
7.3.70.0070.01016.32
7.3.60.0100.00616.25
7.3.50.0030.01316.23
7.3.40.0090.00616.16
7.3.30.0090.00916.07
7.3.20.0140.01416.29
7.3.10.0110.01416.09
7.3.00.0140.01416.32
7.2.330.0150.00316.60
7.2.320.0130.01016.70
7.2.310.0060.00916.34
7.2.300.0110.01116.56
7.2.290.0060.01116.55
7.2.280.0130.00316.40
7.2.270.0130.00316.52
7.2.260.0070.01016.73
7.2.250.0130.00316.35
7.2.240.0080.00816.34
7.2.230.0100.00716.54
7.2.220.0100.00716.77
7.2.210.0080.00816.60
7.2.200.0100.00716.65
7.2.190.0110.00716.46
7.2.180.0030.01316.56
7.2.170.0160.00016.34
7.2.160.0100.01016.43
7.2.150.0170.00916.61
7.2.140.0190.00316.54
7.2.130.0180.00416.23
7.2.120.0030.01316.52
7.2.110.0090.00816.64
7.2.100.0080.00816.70
7.2.90.0050.01116.24
7.2.80.0060.01216.50
7.2.70.0540.01616.49
7.2.60.0070.01416.45
7.2.50.0090.01316.52
7.2.40.0140.00516.65
7.2.30.0100.01416.51
7.2.20.0110.01116.57
7.2.10.0110.00716.61
7.2.00.0130.00916.37

preferences:
167.75 ms | 403 KiB | 5 Q