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"; // 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;*/ }

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.0100.01016.88
8.3.50.0120.00622.06
8.3.40.0070.01718.93
8.3.30.0140.00018.62
8.3.20.0050.00220.13
8.3.10.0070.01121.65
8.3.00.0050.00321.69
8.2.180.0070.01118.66
8.2.170.0100.01022.96
8.2.160.0110.00420.39
8.2.150.0110.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00319.25
8.2.120.0040.00426.35
8.2.110.0030.00721.97
8.2.100.0090.00319.77
8.2.90.0030.00519.22
8.2.80.0040.00417.97
8.2.70.0060.00317.73
8.2.60.0080.00018.05
8.2.50.0080.00018.07
8.2.40.0030.00622.31
8.2.30.0060.00319.46
8.2.20.0090.00017.73
8.2.10.0000.00818.02
8.2.00.0000.00718.12
8.1.280.0040.01125.92
8.1.270.0110.00721.95
8.1.260.0080.00028.09
8.1.250.0130.00628.09
8.1.240.0030.00723.96
8.1.230.0120.00020.89
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0090.00018.56
8.1.160.0000.00720.79
8.1.150.0040.00418.91
8.1.140.0030.00519.60
8.1.130.0000.00717.72
8.1.120.0000.00717.53
8.1.110.0040.00417.53
8.1.100.0040.00417.51
8.1.90.0040.00417.43
8.1.80.0040.00417.55
8.1.70.0030.00317.48
8.1.60.0060.00317.66
8.1.50.0030.00617.50
8.1.40.0000.00817.46
8.1.30.0040.00417.52
8.1.20.0040.00417.57
8.1.10.0070.00017.58
8.1.00.0040.00417.52
8.0.300.0070.00020.07
8.0.290.0050.00316.61
8.0.280.0030.00318.37
8.0.270.0030.00317.28
8.0.260.0000.00717.18
8.0.250.0040.00416.96
8.0.240.0040.00417.05
8.0.230.0000.00717.11
8.0.220.0030.00316.92
8.0.210.0000.00716.87
8.0.200.0030.00317.09
8.0.190.0030.00317.05
8.0.180.0070.00016.92
8.0.170.0060.00317.03
8.0.160.0050.00216.83
8.0.150.0000.01016.77
8.0.140.0040.00416.75
8.0.130.0000.00613.38
8.0.120.0040.00416.96
8.0.110.0050.00216.96
8.0.100.0050.00316.84
8.0.90.0000.00717.04
8.0.80.0040.01116.93
8.0.70.0040.00416.97
8.0.60.0000.00716.99
8.0.50.0040.00416.84
8.0.30.0110.00617.06
8.0.20.0120.00617.40
8.0.10.0040.00416.93
8.0.00.0100.01016.72
7.4.330.0000.00616.70
7.4.320.0030.00316.52
7.4.300.0080.00016.50
7.4.290.0000.00716.66
7.4.280.0030.00316.52
7.4.270.0000.00716.55
7.4.260.0000.00816.50
7.4.250.0070.00016.56
7.4.240.0020.00516.54
7.4.230.0040.00416.70
7.4.220.0060.00916.54
7.4.210.0060.00916.63
7.4.200.0070.00016.44
7.4.160.0060.01216.32
7.4.150.0150.00617.40
7.4.140.0150.01117.86
7.4.130.0030.01516.51
7.4.120.0130.00516.53
7.4.110.0090.01216.35
7.4.100.0140.00416.75
7.4.90.0060.01216.57
7.4.80.0140.01019.39
7.4.70.0060.01216.43
7.4.60.0100.00716.51
7.4.50.0070.00416.68
7.4.40.0070.01016.46
7.4.30.0040.01216.58
7.4.00.0070.01015.02
7.3.330.0030.00313.31
7.3.320.0000.00613.34
7.3.310.0000.00816.53
7.3.300.0070.00016.40
7.3.290.0070.01116.42
7.3.280.0070.01216.45
7.3.270.0150.00317.40
7.3.260.0110.00516.41
7.3.250.0090.00916.56
7.3.240.0120.00516.52
7.3.230.0040.01716.44
7.3.210.0070.01016.46
7.3.200.0060.01119.39
7.3.190.0070.01016.64
7.3.180.0060.01216.52
7.3.170.0150.00616.51
7.3.160.0110.01116.44
7.3.120.0060.01214.77
7.3.110.0100.01014.93
7.3.100.0100.00714.85
7.3.90.0030.00614.96
7.3.80.0060.00914.95
7.3.70.0030.00915.00
7.3.60.0110.00714.71
7.3.50.0000.01214.58
7.3.40.0060.00314.57
7.3.30.0040.01214.76
7.3.20.0000.01116.79
7.3.10.0100.00616.53
7.3.00.0080.00916.38
7.2.330.0120.00616.75
7.2.320.0070.01116.67
7.2.310.0000.02016.44
7.2.300.0060.01216.61
7.2.290.0090.00916.69
7.2.250.0070.00715.27
7.2.240.0060.01015.02
7.2.230.0080.00815.35
7.2.220.0060.00314.74
7.2.210.0100.00715.19
7.2.200.0030.01215.29
7.2.190.0060.01015.20
7.2.180.0030.01214.97
7.2.170.0160.00015.16
7.2.130.0080.00816.68
7.2.120.0110.00716.72
7.2.110.0100.00716.57
7.2.100.0080.01216.47
7.2.90.0080.01216.65
7.2.80.0110.00316.27
7.2.70.0200.00016.45
7.2.60.0120.00716.77
7.2.50.0150.00416.37
7.2.40.0130.01016.29
7.2.30.0230.00716.69
7.2.20.0030.01016.51
7.2.10.0270.00316.53
7.2.00.0060.01317.97
7.1.330.0060.01016.07
7.1.320.0090.00015.95
7.1.310.0030.00615.77
7.1.300.0040.01115.78
7.1.290.0080.00815.81
7.1.280.0000.01715.74
7.1.270.0070.00415.88
7.1.260.0060.00915.77
7.1.250.0070.01015.48
7.1.200.0030.00915.96
7.1.100.0120.00318.35
7.1.70.0000.00717.18
7.1.60.0110.01419.40
7.1.50.0070.01516.95
7.1.00.0070.07322.37
7.0.200.0060.00316.71
7.0.60.0000.05021.74
7.0.50.0100.07717.80
7.0.40.0030.05320.41
7.0.30.0130.04720.16
7.0.20.0330.07320.13
7.0.10.0030.07320.17
7.0.00.0070.04020.08
5.6.280.0000.03320.87
5.6.210.0100.07720.70
5.6.200.0030.07318.19
5.6.190.0170.07320.64
5.6.180.0300.06320.45
5.6.170.0330.07720.66
5.6.160.0100.05020.49
5.6.150.0030.07718.08
5.6.140.0030.04018.22
5.6.130.0000.04318.15
5.6.120.0130.07321.00
5.6.110.0030.04721.13
5.6.100.0130.04320.89
5.6.90.0070.08321.13
5.6.80.0170.06020.43
5.5.350.4270.03720.37
5.5.340.0070.07017.94
5.5.330.0100.08020.32
5.5.320.0600.06320.36
5.5.310.0170.04020.35
5.5.300.0130.07317.98
5.5.290.0100.07717.94
5.5.280.0100.08020.97
5.5.270.0130.06720.74
5.5.260.0030.04720.69
5.5.250.0130.06720.59
5.5.240.0170.07020.05

preferences:
52.74 ms | 401 KiB | 5 Q