fork download
  1. <?php
  2. $source = "-webkit-border-radius: !!1-10-30!!px;
  3. -moz-border-radius: !!1-10-30!!px;
  4. border-radius: !!1-10-30!!px;
  5. /* Internet Explorer */
  6. filter: alpha(opacity=!!2-80-100!!);
  7. /* CSS3 standard */
  8. opacity: 0.!!2-80-100!!;
  9. background-color:#ffffff;
  10. border: !!7-1-50!!px solid black;
  11. margin: !!3-3-10!!px !!4-5-30!!px !!3-3-10!!px !!4-5-30!!px;
  12. padding: !!5-5-15!!px;
  13. height: !!6-80-90!!%;";
  14.  
  15. preg_match_all("|!!(\d+)-(\d+)-(\d+)!!|siU", $source, $matches);
  16. $buffer = array();
  17. for($t = 0; $t <= (count($matches[0]) - 1); $t++){
  18. if(@isset($buffer[$t])){
  19. $buffer[$t]['match'] = $matches[0][$t];
  20. $buffer[$t]['min'] = $matches[2][$t];
  21. $buffer[$t]['max'] = $matches[3][$t];
  22. }
  23. }
  24.  
  25. foreach($buffer as $k => $b){
  26. preg_replace("|!!".$k."-\d+-\d+!!|siU", rand($b['min'], $b['max']), $source);
  27. }
  28.  
  29. echo $source;
  30. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
-webkit-border-radius: !!1-10-30!!px;
	-moz-border-radius: !!1-10-30!!px;
	border-radius: !!1-10-30!!px;
	/* Internet Explorer */
	filter: alpha(opacity=!!2-80-100!!);
	/* CSS3 standard */
	opacity: 0.!!2-80-100!!;
	background-color:#ffffff;
	border: !!7-1-50!!px solid black;
	margin: !!3-3-10!!px !!4-5-30!!px !!3-3-10!!px !!4-5-30!!px;
	padding: !!5-5-15!!px;
	height: !!6-80-90!!%;