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
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 86, Position 2 = 92
Branch analysis from position: 86
2 jumps found. (Code = 78) Position 1 = 87, Position 2 = 92
Branch analysis from position: 87
1 jumps found. (Code = 42) Position 1 = 86
Branch analysis from position: 86
Branch analysis from position: 92
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 92
filename:       /in/0gsHN
function name:  (null)
number of ops:  94
compiled vars:  !0 = $my_array, !1 = $value, !2 = $key
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   INIT_FCALL                                               'define'
         1        SEND_VAL                                                 'ADMIN_USER'
         2        SEND_VAL                                                 'aperry'
         3        DO_ICALL                                                 
   5     4        INIT_FCALL                                               'define'
         5        SEND_VAL                                                 'ADMIN_PASS'
         6        SEND_VAL                                                 'c0r5x0AP'
         7        DO_ICALL                                                 
   6     8        INIT_FCALL                                               'define'
         9        SEND_VAL                                                 'LIST_ID'
        10        SEND_VAL                                                 '103'
        11        DO_ICALL                                                 
   8    12        ASSIGN                                                   !0, <array>
  10    13        FETCH_DIM_W                                      $7      !0
        14        ASSIGN_DIM                                               $7, 'id'
        15        OP_DATA                                                  '248509'
  11    16        FETCH_DIM_W                                      $9      !0
        17        ASSIGN_DIM                                               $9, 'number1'
        18        OP_DATA                                                  '9255574774'
  12    19        FETCH_DIM_W                                      $11     !0
        20        ASSIGN_DIM                                               $11, 'number2'
        21        OP_DATA                                                  ''
  13    22        FETCH_DIM_W                                      $13     !0
        23        ASSIGN_DIM                                               $13, 'first_name'
        24        OP_DATA                                                  'JENNIFER'
  14    25        FETCH_DIM_W                                      $15     !0
        26        ASSIGN_DIM                                               $15, 'last_name'
        27        OP_DATA                                                  'PROVENZANO'
  15    28        FETCH_DIM_W                                      $17     !0
        29        ASSIGN_DIM                                               $17, 'state'
        30        OP_DATA                                                  'NV'
  16    31        FETCH_DIM_W                                      $19     !0
        32        ASSIGN_DIM                                               $19, 'city'
        33        OP_DATA                                                  'HENDERSON'
  17    34        FETCH_DIM_W                                      $21     !0
        35        ASSIGN_DIM                                               $21, 'zip'
        36        OP_DATA                                                  '89014'
  19    37        FETCH_DIM_W                                      $23     !0
        38        ASSIGN_DIM                                               $23, 'id'
        39        OP_DATA                                                  '248513'
  20    40        FETCH_DIM_W                                      $25     !0
        41        ASSIGN_DIM                                               $25, 'number1'
        42        OP_DATA                                                  '9255574774'
  21    43        FETCH_DIM_W                                      $27     !0
        44        ASSIGN_DIM                                               $27, 'number2'
        45        OP_DATA                                                  ''
  22    46        FETCH_DIM_W                                      $29     !0
        47        ASSIGN_DIM                                               $29, 'first_name'
        48        OP_DATA                                                  'marsha'
  23    49        FETCH_DIM_W                                      $31     !0
        50        ASSIGN_DIM                                               $31, 'last_name'
        51        OP_DATA                                                  'banks'
  24    52        FETCH_DIM_W                                      $33     !0
        53        ASSIGN_DIM                                               $33, 'state'
        54        OP_DATA                                                  'TX'
  25    55        FETCH_DIM_W                                      $35     !0
        56        ASSIGN_DIM                                               $35, 'city'
        57        OP_DATA                                                  'Dallas'
  26    58        FETCH_DIM_W                                      $37     !0
        59        ASSIGN_DIM                                               $37, 'zip'
        60        OP_DATA                                                  '75216'
  28    61        FETCH_DIM_W                                      $39     !0
        62        ASSIGN_DIM                                               $39, 'id'
        63        OP_DATA                                                  '248527'
  29    64        FETCH_DIM_W                                      $41     !0
        65        ASSIGN_DIM                                               $41, 'number1'
        66        OP_DATA                                                  '9255574774'
  30    67        FETCH_DIM_W                                      $43     !0
        68        ASSIGN_DIM                                               $43, 'number2'
        69        OP_DATA                                                  ''
  31    70        FETCH_DIM_W                                      $45     !0
        71        ASSIGN_DIM                                               $45, 'first_name'
        72        OP_DATA                                                  'Mary'
  32    73        FETCH_DIM_W                                      $47     !0
        74        ASSIGN_DIM                                               $47, 'last_name'
        75        OP_DATA                                                  'Lugo'
  33    76        FETCH_DIM_W                                      $49     !0
        77        ASSIGN_DIM                                               $49, 'state'
        78        OP_DATA                                                  'AZ'
  34    79        FETCH_DIM_W                                      $51     !0
        80        ASSIGN_DIM                                               $51, 'city'
        81        OP_DATA                                                  'Yuma'
  35    82        FETCH_DIM_W                                      $53     !0
        83        ASSIGN_DIM                                               $53, 'zip'
        84        OP_DATA                                                  '85364'
  38    85      > FE_RESET_R                                       $55     !0, ->92
        86    > > FE_FETCH_R                                       ~56     $55, !1, ->92
        87    >   ASSIGN                                                   !2, ~56
  39    88        FETCH_CONSTANT                                   ~58     'var_dump'
        89        FETCH_DIM_R                                      $59     ~58, !1
        90        FREE                                                     $59
        91      > JMP                                                      ->86
        92    >   FE_FREE                                                  $55
  76    93      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0