3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class uiae { public function getDbFields($form, $table, $hiddenField=null, $text, $label_arr, $data=false, $input_type=null){ var_dump($input_type); } } $cTpro = new uiae; $category = array('select' => array('1'=>"Direkteinstieg",'2'=>"Studium",'3'=>"Ausbildung" ) ); $employment = array('select' => array('1'=>"Vollzeit",'2'=>"Teilzeit") ); $cTpro->getDbFields($form, $cfg['tab']['xst_cTpro_jobs'], array("id_jobs"=>'',"linked_to"=>'',"lang_id"=>''), "Neues Stelleninserat anlegen", $label_arr, NULL, array( 'description' => 'textarea', 'requirements' => 'textarea', 'category' => $category, 'employment' => $employment ) );
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: form in /in/1KG59 on line 12 Notice: Undefined variable: cfg in /in/1KG59 on line 13 Notice: Undefined variable: label_arr in /in/1KG59 on line 15 array(4) { ["description"]=> string(8) "textarea" ["requirements"]=> string(8) "textarea" ["category"]=> array(1) { ["select"]=> array(3) { [1]=> string(14) "Direkteinstieg" [2]=> string(7) "Studium" [3]=> string(10) "Ausbildung" } } ["employment"]=> array(1) { ["select"]=> array(2) { [1]=> string(8) "Vollzeit" [2]=> string(8) "Teilzeit" } } }
Output for 5.0.4 - 5.6.21
Notice: Undefined variable: form in /in/1KG59 on line 12 Notice: Undefined variable: cfg in /in/1KG59 on line 13 Notice: Undefined variable: label_arr in /in/1KG59 on line 16 array(4) { ["description"]=> string(8) "textarea" ["requirements"]=> string(8) "textarea" ["category"]=> array(1) { ["select"]=> array(3) { [1]=> string(14) "Direkteinstieg" [2]=> string(7) "Studium" [3]=> string(10) "Ausbildung" } } ["employment"]=> array(1) { ["select"]=> array(2) { [1]=> string(8) "Vollzeit" [2]=> string(8) "Teilzeit" } } }
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: form in /in/1KG59 on line 12 Notice: Undefined variable: cfg in /in/1KG59 on line 13 Notice: Undefined variable: label_arr in /in/1KG59 on line 16 array(4) { ["description"]=> string(8) "textarea" ["requirements"]=> string(8) "textarea" ["category"]=> array(1) { ["select"]=> array(3) { [1]=> string(14) "Direkteinstieg" [2]=> string(7) "Studium" [3]=> string(10) "Ausbildung" } } ["employment"]=> array(1) { ["select"]=> array(2) { [1]=> string(8) "Vollzeit" [2]=> string(8) "Teilzeit" } } }
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/1KG59 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/1KG59 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/1KG59 on line 3
Process exited with code 255.