3v4l.org

run code in 300+ PHP versions simultaneously
<?php public function sourceForm($source_config) { $form = array(); $urlink1 = array('#type' => 'textfield', '#title' => t('URL'), '#description' => t('Enter a feed URL.'), '#default_value' => "https://api.edmunds.com/api/vehicle/v2/vins/", '#maxlength' => NULL, '#required' => TRUE); $urlkey2 = array('#type' => 'textfield', '#title' => t('VIN'), '#default_value' => "2G1FC3D33C9165616?fmt=json&api_key=dp9ghvr5sxrbmvupg2naccuk"); $form['source'] = array_merge($urlink1 , $urlkey2 ); return $form; } ?>
Output for 5.4.0 - 5.4.36
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/ZNPGE on line 2
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_PUBLIC in /in/ZNPGE on line 2
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_PUBLIC in /in/ZNPGE on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_FUNCTION in /in/ZNPGE on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_FUNCTION in /in/ZNPGE on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/ZNPGE on line 2
Process exited with code 255.

preferences:
218.34 ms | 1386 KiB | 126 Q