3v4l.org

run code in 300+ PHP versions simultaneously
<?php $map = [ 6 => 215601, 11 => 3260461, 7 => 210282, 11 => 3258941 ]; foreach($map as $key => $value) { $p = str_pad($key, 3, '0', STR_PAD_LEFT) . str_pad($value, 10, '0', STR_PAD_LEFT); echo "\n"; echo $p; $ctr = 22; $ctro = '0' . substr($p,1,2) . substr($p,6); echo "\n"; echo $ctro; for ($i=0; $i <= 8; $i+=2) { $ctr = $ctr + 3*(int)substr($ctro,$i,1) + (int)substr($ctro,(1+$i),1); } echo "\n"; echo $ctr; $ctr = (10 - ($ctr % 10)) % 10; echo "\n"; echo "Key = " . $ctr; }
Output for git.master, git.master_jit, rfc.property-hooks
0060000215601 0060215601 69 Key = 1 0110003258941 0113258941 86 Key = 4 0070000210282 0070210282 78 Key = 2

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.45 ms | 401 KiB | 8 Q