3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; var_dump($my_array); // Set POST variables foreach ($my_array as $key => $value){ echo "$key ------ $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;*/ }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0150.00016.50
8.3.50.0090.01121.17
8.3.40.0060.01018.74
8.3.30.0110.01118.71
8.3.20.0040.00420.16
8.3.10.0100.01021.85
8.3.00.0070.01121.96
8.2.180.0130.01016.50
8.2.170.0100.01322.96
8.2.160.0070.01420.45
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0050.00321.18
8.2.120.0050.00326.35
8.2.110.0100.00020.68
8.2.100.0090.00318.05
8.2.90.0040.00419.10
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0050.00322.32
8.2.30.0040.00419.51
8.2.20.0030.00717.80
8.2.10.0040.00418.05
8.2.00.0000.00818.19
8.1.280.0070.01525.92
8.1.270.0040.00422.09
8.1.260.0090.00928.09
8.1.250.0110.00828.09
8.1.240.0070.00322.45
8.1.230.0000.01119.16
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0040.00417.23
8.1.180.0190.00318.10
8.1.170.0050.00318.51
8.1.160.0040.00420.84
8.1.150.0040.00418.91
8.1.140.0050.00319.54
8.1.130.0040.00417.63
8.1.120.0020.00517.38
8.1.110.0000.00817.31
8.1.100.0040.00417.50
8.1.90.0030.00517.48
8.1.80.0020.00517.48
8.1.70.0000.00717.49
8.1.60.0060.00317.61
8.1.50.0030.00617.52
8.1.40.0040.00417.42
8.1.30.0030.00617.68
8.1.20.0000.00817.58
8.1.10.0050.00317.63
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0000.00718.39
8.0.270.0070.00017.20
8.0.260.0070.00017.29
8.0.250.0000.00717.07
8.0.240.0040.00417.05
8.0.230.0030.00316.92
8.0.220.0000.00817.00
8.0.210.0040.00416.94
8.0.200.0000.00717.07
8.0.190.0040.00417.05
8.0.180.0030.00517.00
8.0.170.0000.00916.87
8.0.160.0040.00417.02
8.0.150.0040.00416.91
8.0.140.0070.00016.80
8.0.130.0000.00613.41
8.0.120.0040.00416.93
8.0.110.0040.00416.99
8.0.100.0000.00716.85
8.0.90.0000.00717.04
8.0.80.0090.00617.00
8.0.70.0020.00516.95
8.0.60.0000.00717.02
8.0.50.0030.00516.84
8.0.30.0110.00817.12
8.0.20.0100.01217.40
8.0.10.0030.00617.09
8.0.00.0110.00916.95
7.4.330.0030.00316.71
7.4.320.0030.00316.62
7.4.300.0030.00316.63
7.4.290.0030.00316.63
7.4.280.0050.00216.42
7.4.270.0070.00016.66
7.4.260.0070.00016.63
7.4.250.0040.00416.46
7.4.240.0020.00516.61
7.4.230.0030.00516.54
7.4.220.0070.01016.53
7.4.210.0090.00616.64
7.4.200.0020.00516.43
7.4.160.0200.00316.53
7.4.150.0130.00717.40
7.4.140.0170.00717.86
7.4.130.0130.00916.67
7.4.120.0140.01016.46
7.4.110.0160.01016.56
7.4.100.0080.01116.70
7.4.90.0110.01116.57
7.4.80.0170.00319.39
7.4.70.0070.01116.60
7.4.60.0040.01516.58
7.4.50.0030.01016.42
7.4.40.0070.01116.41
7.4.30.0100.01016.52
7.4.00.0070.01115.13
7.3.330.0050.00013.39
7.3.320.0030.00313.17
7.3.310.0030.00316.24
7.3.300.0040.00416.43
7.3.290.0090.00816.45
7.3.280.0090.01016.48
7.3.270.0070.01417.40
7.3.260.0090.01316.49
7.3.250.0110.00916.53
7.3.240.0120.00816.53
7.3.230.0090.00916.63
7.3.210.0110.00716.46
7.3.200.0080.01219.39
7.3.190.0070.01416.54
7.3.180.0100.00716.46
7.3.170.0080.01116.37
7.3.160.0090.01316.30
7.3.10.0030.01416.73
7.3.00.0060.00616.81
7.2.330.0100.01616.86
7.2.320.0090.01016.80
7.2.310.0130.00716.61
7.2.300.0100.01016.38
7.2.290.0110.00816.39
7.2.130.0090.00916.75
7.2.120.0040.00816.88
7.2.110.0070.00716.92
7.2.100.0060.00316.91
7.2.90.0100.00016.77
7.2.80.0070.01016.84
7.2.70.0030.00616.66
7.2.60.0070.00716.64
7.2.50.0080.00417.12
7.2.40.0030.01316.81
7.2.30.0060.00317.08
7.2.20.0060.00917.05
7.2.10.0060.00616.64
7.2.00.0030.01017.96
7.1.250.0030.01015.77
7.1.100.0090.00918.07
7.1.70.0040.00417.34
7.1.60.0030.02119.40
7.1.50.0140.01417.08
7.1.00.0030.08022.31
7.0.200.0030.00716.63
7.0.60.0000.08721.62
7.0.50.0030.04317.91
7.0.40.0070.08719.96
7.0.30.0270.07020.20
7.0.20.0270.08320.02
7.0.10.0000.06720.02
7.0.00.0100.04720.17
5.6.280.0030.04320.79
5.6.210.0070.08320.73
5.6.200.0030.04318.22
5.6.190.0070.05720.43
5.6.180.0370.06720.62
5.6.170.0300.08320.52
5.6.160.0100.06720.49
5.6.150.0100.07718.09
5.6.140.0070.03718.18
5.6.130.0030.07018.13
5.6.120.0070.07321.15
5.6.110.0030.07720.98
5.6.100.0030.04320.98
5.6.90.0100.08321.13
5.6.80.0030.08320.54
5.5.350.4230.04020.39
5.5.340.0100.04318.04
5.5.330.0070.06320.40
5.5.320.0230.04320.30
5.5.310.0300.07020.24
5.5.300.0030.04017.98
5.5.290.0070.06018.01
5.5.280.0100.07320.68
5.5.270.0200.06320.77
5.5.260.0070.06020.87
5.5.250.0130.08020.62
5.5.240.0300.07020.07

preferences:
51.55 ms | 401 KiB | 5 Q