3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "00211501600326941"; $b = "37137137137137137"; $a = str_split($a); $b = str_split($b); Foreach($a as $key => $val){ Echo $val * $b[$key] . " " . substr($val * $b[$key], -1). "\n"; $temp[] = substr($val * $b[$key], -1); } //Var_dump($temp); //Echo implode("", $temp);
based on Mqlne
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1
0 0 0 0 2 2 3 3 7 7 5 5 0 0 7 7 6 6 0 0 0 0 3 3 6 6 42 2 9 9 12 2 7 7