3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $average = 1359684184 - 1356998400; // 1 day = 24 hours * 60 minutes * 60 seconds = 86400 seconds $days = floor( $average / 86400 ); $hours = floor( ( $average / 86400 ) 3600 ); $minutes = floor( ( $average % 3600 ) / 60 ); $seconds = $average % 60; print_r(array( 'days' => $days, 'hours' => $hours, 'minutes' => $minutes, 'seconds' => $seconds ) ); ?>
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '3600' (T_LNUMBER) in /in/W549D on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_LNUMBER in /in/W549D on line 7
Process exited with code 255.