fork(11) download
  1. <?php goto l01;
  2. l01: $filename = __FILE__; goto l02;
  3. l02: $contents = file_get_contents($filename); goto l03;
  4. l03: $lines = explode("\n",$contents); goto l04;
  5. l04: $collection = array(); goto l05;
  6. l05: $pattern = '%^[^:]+:.*goto [^;]+;$%'; goto l06;
  7. l06: $i = 0; goto l07;
  8. l07: /*while*/if ($i < count($lines)) goto l08; else goto l23;
  9. l08: $line = $lines[$i]; goto l09;
  10. l09: $line = trim($line); goto l10;
  11. l10: if (substr($line,0,2) != '//') goto l11; else goto l22;
  12. l11: if (preg_match($pattern, $line) === 1) goto l12; else goto l13;
  13. l12: $collection[] = $line; goto l22;
  14. // else
  15. l13: shuffle($collection); goto l14;
  16. l14: $j = 0; goto l15;
  17. l15: /*while*/if ($j < count($collection)) goto l16; else goto l19;
  18. l16: echo $collection[$j]; goto l17;
  19. l17: echo "\n"; goto l18;
  20. l18: $j++; goto l15;
  21. l19: $collection = array(); goto l20;
  22. l20: echo $line; goto l21;
  23. l21: echo "\n"; goto l22;
  24. l22: $i++; goto l07;
  25. l23: exit(0); goto l23;
  26. ?>
  27.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
<?php goto l01;
l14:       $j = 0;                               goto l15;
l22:   $i++;                                     goto l07;
l07: /*while*/if ($i < count($lines))            goto l08; else goto l23;
l10:   if (substr($line,0,2) != '//')            goto l11; else goto l22;
l12:       $collection[] = $line;                goto l22;
l23: exit(0);                                    goto l23;
l19:       $collection = array();                goto l20;
l15:       /*while*/if ($j < count($collection)) goto l16; else goto l19;
l05: $pattern = '%^[^:]+:.*goto [^;]+;$%';       goto l06;
l03: $lines = explode("\n",$contents);           goto l04;
l01: $filename = __FILE__;                       goto l02;
l08:   $line = $lines[$i];                       goto l09;
l02: $contents = file_get_contents($filename);   goto l03;
l04: $collection = array();                      goto l05;
l11:     if (preg_match($pattern, $line) === 1)  goto l12; else goto l13;
l18:         $j++;                               goto l15;
l13:       shuffle($collection);                 goto l14;
l17:         echo "\n";                          goto l18;
l06: $i = 0;                                     goto l07;
l20:       echo $line;                           goto l21;
l09:   $line = trim($line);                      goto l10;
l16:         echo $collection[$j];               goto l17;
l21:       echo "\n";                            goto l22;
?>