3v4l.org

run code in 300+ PHP versions simultaneously
<?php $account_numbers = ["1234567890","12345678901234567890","1234567890123", "0000002150895","9500053963411","08014897121650000016"]; $utility_id = 1; foreach ($account_numbers as $anum) { for($i=0;$i<strlen($anum);$i++) { $char = substr($anum,$i,1); $newchar = $char == "0" ? 0 : 10-(int)$char; echo $newchar; } echo PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
9876543210 98765432109876543210 9876543210987 0000008950215 1500057147699 02096213989450000094

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:
78.06 ms | 401 KiB | 8 Q