fork(2) download
  1. <?php
  2. $test = 'OLOLO';
  3.  
  4.  
  5. $start = microtime(true);
  6. $x="test".$test;
  7. echo $x.' 1: ';
  8. echo microtime(true)-$start."\n";
  9.  
  10. $start = microtime(true);
  11. $x="test $test";
  12. echo $x.' 2: ';
  13. echo microtime(true)-$start."\n";
  14.  
  15. $start = microtime(true);
  16. $x="test";$x.=$test;
  17. echo $x.' 3: ';
  18. echo microtime(true)-$start."\n";
  19.  
  20.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
testOLOLO 1: 6.3896179199219E-5
test OLOLO 2: 1.7166137695312E-5
testOLOLO 3: 1.215934753418E-5