3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $record = array( 'email' => 'emily@kognito.com', 'user_id' => 0, 'course_id' => 1, 'group_id' => 2, 'notification_id' => 'CHAMPION_STATUS_UPDATE', 'datestamp' => date('Y-m-d h:i:s'), 'unixtime' => time(), ); $q = ' REPLACE INTO `kognito_reminders_log` (`'.implode(array_keys($record), '`, `').'`) VALUES (\''.implode($record, '\', \'').'\')'; '; echo $q;
based on WZXnS
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '';' (T_ENCAPSED_AND_WHITESPACE), expecting end of file in /in/S6YS8 on line 17
Process exited with code 255.
Output for 5.4.11 - 5.6.16
Parse error: syntax error, unexpected '';' (T_ENCAPSED_AND_WHITESPACE) in /in/S6YS8 on line 17
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/S6YS8 on line 17
Process exited with code 255.