3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time ='2013-03-30 01:15:00'; $stamp = strtotime($time); for($=0; $i<4; $i++){ echo date('Y-m-d H:i:s', strtotime("+{$i} hours", $stamp)); }
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected '=', expecting variable (T_VARIABLE) or '$' in /in/FgCmj on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected '=', expecting T_VARIABLE or '$' in /in/FgCmj on line 4
Process exited with code 255.