3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iban = strtoupper(str_replace(' ', '', '1231')); $iban = substr($iban, 4) . substr($iban, 0, 4); $iban = str_replace( array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), array('10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35'), $iban ); $sum = 0; for ($i = 0; $i < strlen($iban); $i++) { $sum *= 10; $sum += intval(substr($iban, $i, 1)); $sum %= 97; } return $sum == 1;
Output for git.master, git.master_jit, rfc.property-hooks

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