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]; } echo $i; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
012345678910111213141516

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.23 ms | 401 KiB | 8 Q