3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = <<<'NOWDOC' year, month, year_month, fk_dim_wait_time_id, fk_dim_careplan_group_id, fk_dim_interval_type_id, avg_plan_rt_ct_scan_interval, avg_ct_scan_delineation_interval, avg_delineation_discussion_targets_interval, avg_discussion_targets_treatment_planning_interval, avg_treatment_planning_preparation_interval, avg_preparation_treatment_interval, avg_plan_rt_treatment_interval, cnt_plan_rt_ct_scan_interval, cnt_ct_scan_delineation_interval, cnt_delineation_discussion_targets_interval, cnt_discussion_targets_treatment_planning_interval, cnt_treatment_planning_preparation_interval, cnt_preparation_treatment_interval, cnt_plan_rt_treatment_interval, med_plan_rt_ct_scan_interval, med_ct_scan_delineation_interval, med_delineation_discussion_targets_interval, med_discussion_targets_treatment_planning_interval, med_treatment_planning_preparation_interval, med_preparation_treatment_interval, med_plan_rt_treatment_interval, min_plan_rt_ct_scan_interval, min_ct_scan_delineation_interval, min_delineation_discussion_targets_interval, min_discussion_targets_treatment_planning_interval, min_treatment_planning_preparation_interval, min_preparation_treatment_interval, min_plan_rt_treatment_interval, max_plan_rt_ct_scan_interval, max_ct_scan_delineation_interval, max_delineation_discussion_targets_interval, max_discussion_targets_treatment_planning_interval, max_treatment_planning_preparation_interval, max_preparation_treatment_interval, max_plan_rt_treatment_interval NOWDOC; $array = explode("\n", $data); foreach ($array as $line) { echo 'main.'.$line.PHP_EOL; }
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
main. year, main.month, main.year_month, main.fk_dim_wait_time_id, main.fk_dim_careplan_group_id, main.fk_dim_interval_type_id, main.avg_plan_rt_ct_scan_interval, main.avg_ct_scan_delineation_interval, main.avg_delineation_discussion_targets_interval, main.avg_discussion_targets_treatment_planning_interval, main.avg_treatment_planning_preparation_interval, main.avg_preparation_treatment_interval, main.avg_plan_rt_treatment_interval, main.cnt_plan_rt_ct_scan_interval, main.cnt_ct_scan_delineation_interval, main.cnt_delineation_discussion_targets_interval, main.cnt_discussion_targets_treatment_planning_interval, main.cnt_treatment_planning_preparation_interval, main.cnt_preparation_treatment_interval, main.cnt_plan_rt_treatment_interval, main.med_plan_rt_ct_scan_interval, main.med_ct_scan_delineation_interval, main.med_delineation_discussion_targets_interval, main.med_discussion_targets_treatment_planning_interval, main.med_treatment_planning_preparation_interval, main.med_preparation_treatment_interval, main.med_plan_rt_treatment_interval, main.min_plan_rt_ct_scan_interval, main.min_ct_scan_delineation_interval, main.min_delineation_discussion_targets_interval, main.min_discussion_targets_treatment_planning_interval, main.min_treatment_planning_preparation_interval, main.min_preparation_treatment_interval, main.min_plan_rt_treatment_interval, main.max_plan_rt_ct_scan_interval, main.max_ct_scan_delineation_interval, main.max_delineation_discussion_targets_interval, main.max_discussion_targets_treatment_planning_interval, main.max_treatment_planning_preparation_interval, main.max_preparation_treatment_interval, main.max_plan_rt_treatment_interval
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_SL in /in/GDS2n on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_SL in /in/GDS2n on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/GDS2n on line 3
Process exited with code 255.