fork(22) download
  1. <?php
  2.  
  3. $tempo1 = '19:38:20';
  4. $tempo2 = '19:37:00';
  5.  
  6. $tempo = date('H:i:s', strtotime( $tempo1 ) - strtotime( $tempo2 ) );
  7.  
  8. echo $tempo;
  9.  
  10.  
Success #stdin #stdout 0.03s 52472KB
stdin
Standard input is empty
stdout
00:01:20