3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Define constants define('ADMIN_USER', 'aperry'); define('ADMIN_PASS', 'c0r5x0AP'); define('LIST_ID', '103'); $my_array = array(); $my_array[]['id']= "248509"; $my_array[]['number1']= "9255574774"; $my_array[]['number2']= ""; $my_array[]['first_name']= "JENNIFER"; $my_array[]['last_name']= "PROVENZANO"; $my_array[]['state']= "NV"; $my_array[]['city']= "HENDERSON"; $my_array[]['zip']= "89014"; $my_array[]['id']= "248513"; $my_array[]['number1']= "9255574774"; $my_array[]['number2']= ""; $my_array[]['first_name']= "marsha"; $my_array[]['last_name']= "banks"; $my_array[]['state']= "TX"; $my_array[]['city']= "Dallas"; $my_array[]['zip']= "75216"; $my_array[]['id']= "248527"; $my_array[]['number1']= "9255574774"; $my_array[]['number2']= ""; $my_array[]['first_name']= "Mary"; $my_array[]['last_name']= "Lugo"; $my_array[]['state']= "AZ"; $my_array[]['city']= "Yuma"; $my_array[]['zip']= "85364"; // Set POST variables foreach ($my_array as $key => $value){ var_dump[$value]; /* $url = "http://69.195.39.29/vicidial/non_agent_api.php"; $fields = array( // Login and function calls 'user' => ADMIN_USER, 'pass' => ADMIN_PASS, 'function' => 'add_lead', 'format' => 'text', 'list_id' => LIST_ID, 'source' => 'adminweb', // Lead Data 'phone_code' => '1', 'phone_number' => $value['number1'], 'first_name' => $value['first_name'], 'last_name' => $value['last_name'], 'state' => $value['state'], 'city' => $value['city'], 'zip' => $value['zip'], // Settings 'dnc_check' => 'Y', 'add_to_hopper' => 'Y', 'hopper_priority' => '99', 'vendor_lead_code' => $value['id'] ); if($number2 != ''){ $fields['alt_phone'] = $number2; } // Url-ify the data for the POST $fields_string = ''; foreach($fields as $key => $value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); echo $url.$fields_string.PHP_EOL;*/ }
based on k4Gsn
Output for 7.2.0
Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39
Output for 5.6.8 - 7.1.10
Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/0gsHN on line 39 Warning: Illegal offset type in /in/0gsHN on line 39
Output for 5.3.21 - 5.5.35
Parse error: syntax error, unexpected '[' in /in/0gsHN on line 39
Process exited with code 255.