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[0]['id']= "248509"; $my_array[0]['number1']= "9255574774"; $my_array[0]['number2']= ""; $my_array[0]['first_name']= "JENNIFER"; $my_array[0]['last_name']= "PROVENZANO"; $my_array[0]['state']= "NV"; $my_array[0]['city']= "HENDERSON"; $my_array[0]['zip']= "89014"; $my_array[1]['id']= "248513"; $my_array[1]['number1']= "9255574774"; $my_array[1]['number2']= ""; $my_array[1]['first_name']= "marsha"; $my_array[1]['last_name']= "banks"; $my_array[1]['state']= "TX"; $my_array[1]['city']= "Dallas"; $my_array[1]['zip']= "75216"; $my_array[2]['id']= "248527"; $my_array[2]['number1']= "9255574774"; $my_array[2]['number2']= ""; $my_array[2]['first_name']= "Mary"; $my_array[2]['last_name']= "Lugo"; $my_array[2]['state']= "AZ"; $my_array[2]['city']= "Yuma"; $my_array[2]['zip']= "85364"; // Set POST variables foreach ($my_array as $key => $value){ echo $value['id']; /* $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.40.0140.00418.98
8.3.30.0110.00718.83
8.3.20.0070.01120.20
8.3.10.0100.01021.96
8.3.00.0060.00321.90
8.2.170.0130.00722.96
8.2.160.0030.01020.30
8.2.150.0030.00624.18
8.2.140.0090.00924.66
8.2.130.0040.00421.03
8.2.120.0000.00726.35
8.2.110.0000.00922.25
8.2.100.0080.00317.91
8.2.90.0040.00417.75
8.2.80.0030.00618.77
8.2.70.0080.00017.63
8.2.60.0000.00917.75
8.2.50.0030.00617.61
8.2.40.0000.00817.63
8.2.30.0030.00619.43
8.2.20.0000.00917.65
8.2.10.0000.00718.15
8.2.00.0080.00018.19
8.1.270.0140.00422.05
8.1.260.0060.00328.09
8.1.250.0060.00828.09
8.1.240.0040.00922.14
8.1.230.0060.00622.82
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0030.00618.61
8.1.160.0070.00020.75
8.1.150.0000.00718.83
8.1.140.0080.00019.55
8.1.130.0030.00317.61
8.1.120.0070.00017.55
8.1.110.0000.00717.48
8.1.100.0000.00717.49
8.1.90.0020.00517.41
8.1.80.0070.00017.38
8.1.70.0040.00417.38
8.1.60.0000.00917.63
8.1.50.0030.00517.54
8.1.40.0030.00517.46
8.1.30.0050.00317.54
8.1.20.0040.00417.57
8.1.10.0000.00817.61
8.1.00.0070.00017.55
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0000.00718.48
8.0.270.0070.00017.29
8.0.260.0030.00317.34
8.0.250.0030.00317.07
8.0.240.0000.00717.00
8.0.230.0000.00716.92
8.0.220.0030.00316.92
8.0.210.0000.00816.96
8.0.200.0030.00316.97
8.0.190.0040.00416.88
8.0.180.0070.00016.84
8.0.170.0000.00716.85
8.0.160.0030.00516.95
8.0.150.0090.00316.89
8.0.140.0040.00416.81
8.0.130.0060.00013.31
8.0.120.0040.00416.95
8.0.110.0040.00416.89
8.0.100.0030.00516.81
8.0.90.0000.00716.79
8.0.80.0110.00316.86
8.0.70.0000.00716.93
8.0.60.0000.00716.81
8.0.50.0000.00716.93
8.0.30.0060.00916.95
8.0.20.0070.01317.40
8.0.10.0040.00417.04
8.0.00.0080.01216.91
7.4.330.0020.00216.79
7.4.320.0000.00616.39
7.4.300.0000.00716.45
7.4.290.0030.00316.44
7.4.280.0000.00716.38
7.4.270.0030.00316.56
7.4.260.0000.00816.66
7.4.250.0000.00716.47
7.4.240.0000.00716.63
7.4.230.0040.00416.63
7.4.220.0040.01116.64
7.4.210.0030.01616.64
7.4.200.0040.00416.66
7.4.160.0100.00716.41
7.4.150.0110.00717.40
7.4.140.0130.00917.86
7.4.130.0100.00716.45
7.4.120.0110.01016.55
7.4.110.0110.01116.50
7.4.100.0110.00616.55
7.4.90.0140.00416.54
7.4.80.0150.00919.39
7.4.70.0090.01216.63
7.4.60.0110.00516.59
7.4.50.0100.00316.24
7.4.40.0110.00516.58
7.4.30.0170.00016.68
7.4.00.0100.00314.79
7.3.330.0000.00513.27
7.3.320.0000.00513.27
7.3.310.0000.00716.21
7.3.300.0030.00316.39
7.3.290.0080.01016.37
7.3.280.0060.01216.41
7.3.270.0120.00617.40
7.3.260.0090.01616.38
7.3.250.0070.01116.36
7.3.240.0110.00616.43
7.3.230.0170.00616.39
7.3.210.0090.00916.52
7.3.200.0100.01319.39
7.3.190.0170.00316.61
7.3.180.0130.01016.60
7.3.170.0070.01116.41
7.3.160.0090.01216.60
7.2.330.0130.00616.72
7.2.320.0120.00616.72
7.2.310.0060.01116.75
7.2.300.0080.01516.48
7.2.290.0030.01416.65
7.2.00.0060.00919.58
7.1.100.0120.00317.77
7.1.70.0120.00416.81
7.1.60.0130.01019.40
7.1.50.0120.01217.02
7.1.00.0100.07022.40
7.0.200.0000.00816.47
7.0.60.0100.07321.64
7.0.50.0130.07317.86
7.0.40.0100.08020.09
7.0.30.0170.04020.18
7.0.20.0300.08720.04
7.0.10.0000.09320.16
7.0.00.0030.04320.01
5.6.280.0070.05721.01
5.6.210.0070.08320.62
5.6.200.0000.06018.18
5.6.190.0030.08320.63
5.6.180.0370.08020.39
5.6.170.0500.04320.54
5.6.160.0070.08020.54
5.6.150.0100.07718.19
5.6.140.0130.07718.20
5.6.130.0000.04718.11
5.6.120.0030.08321.10
5.6.110.0030.04720.99
5.6.100.0000.05020.99
5.6.90.0100.04020.89
5.6.80.0100.06020.51
5.5.350.4230.04320.42
5.5.340.0130.07317.88
5.5.330.0100.03720.20
5.5.320.0570.07020.28
5.5.310.0230.03320.29
5.5.300.0070.06717.92
5.5.290.0100.08018.02
5.5.280.0170.05720.75
5.5.270.0100.04720.77
5.5.260.0130.07720.88
5.5.250.0170.07320.59
5.5.240.0170.08020.18

preferences:
53.27 ms | 400 KiB | 5 Q