fork(1) download
  1. <?php
  2.  
  3. // A string with numbers
  4. $numbers = "442158755745";
  5. // Find the frequency of occurrence of 5
  6. echo preg_match_all( '/(5)/', $numbers );
  7.  
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
4