3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = "201511"; $username= "ryan"; $password= "12345"; $SQL_query = <<<EOT SELECT reg_id as ID, what_mach_op, address, farm_breeding_mating, farm_calve, farm_drenching, farm_feed_req, farm_detect_treat_lame, farm_detect_treat_mast, if(isnull(date_begin) || year(date_begin)<=1970, null, Date_format(date_begin, '%d/%m/%Y')) as begin_date, if(isnull(date_finish) || year(date_finish)<=1970, null, Date_format(date_finish, '%d/%m/%Y')) as finish_date, country_birth, farm_calf_health, EmployeeClientNo, country_app, num_dep, if(isnull(date_birth) || year(date_birth)<=1970, null, Date_format(date_birth, '%d/%m/%Y')) as birth_date, drv_lic_n_proj_exp, email, lvl_eng, gather_exp, first_name, full_name, sex, health_prob, height, last_name, farm_mach_maint, farm_drive_motor, farm_drive_quad, farm_drv_tractor, farm_wagon, marital_status, farm_milking_herr, farm_milking_rot, farm_shed_setup, mobile_phone, nation, if(isnull(date_pass) || year(date_pass)<=1970, null, Date_format(date_pass, '%d/%m/%Y')) as expire_date, farm_fencing, farm_hay, farm_weed, list_qual, home_phone, job_position, pref_name, emplo_det, emplo_as, emplo_ref1_comp, emplo_ref1_contact, emplo_ref1_name, emplo_ref1_pos, emplo_ref2_company, emplo_ref2_contact, emplo_ref2_name, emplo_ref2_pos, emplo_contact_them, weight, facebook, skype, up_photo, up_cv, if(isnull(data_created) || year(data_created)<=1970, null, DATE_FORMAT(data_created, '%d/%m/%Y %h:%i%:%s')) as DateCreated, if(isnull(data_created) || year(data_created)<=1970, null, DATE_FORMAT(data_created, '%Y%m')) as TimeStamp FROM $tbl_name WHERE length(EmployeeClientNo) > '1' AND TimeStamp = $timestamp AND area = 'Farming' "; EOT; $SQL_query
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected end of file in /in/SZsER on line 78
Process exited with code 255.

preferences:
168.26 ms | 1395 KiB | 22 Q