3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $times = ["1:10:12", "2:15:33", "3:12:10"]; $today = strtotime(date("Y-m-d")); foreach ($times as $time){ echo $today - strtotime(strtotime($time); }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected ';' in /in/Il78b on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/Il78b on line 2
Process exited with code 255.