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){ 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.60.0140.00716.63
8.3.50.0130.00521.13
8.3.40.0070.01018.96
8.3.30.0070.01418.84
8.3.20.0050.00320.38
8.3.10.0090.00021.80
8.3.00.0110.00721.94
8.2.180.0150.00316.75
8.2.170.0130.00618.89
8.2.160.0120.00622.96
8.2.150.0000.00825.66
8.2.140.0030.00624.66
8.2.130.0030.00620.97
8.2.120.0080.00026.35
8.2.110.0090.00021.05
8.2.100.0000.01118.04
8.2.90.0000.00919.34
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0040.00420.46
8.2.30.0030.00319.48
8.2.20.0040.00417.89
8.2.10.0080.00018.06
8.2.00.0000.00818.16
8.1.280.0070.00725.92
8.1.270.0080.00022.25
8.1.260.0000.00828.09
8.1.250.0000.00728.09
8.1.240.0030.00722.46
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0060.00618.10
8.1.170.0040.00418.64
8.1.160.0030.00320.79
8.1.150.0000.00818.83
8.1.140.0040.00419.64
8.1.130.0000.00817.34
8.1.120.0040.00417.52
8.1.110.0040.00417.51
8.1.100.0000.00717.38
8.1.90.0030.00517.51
8.1.80.0000.00717.47
8.1.70.0030.00317.49
8.1.60.0000.00717.67
8.1.50.0080.00017.54
8.1.40.0000.00817.59
8.1.30.0030.00617.69
8.1.20.0000.00917.64
8.1.10.0050.00317.63
8.1.00.0000.00817.51
8.0.300.0000.00918.77
8.0.290.0040.00416.88
8.0.280.0000.00718.46
8.0.270.0000.00717.32
8.0.260.0000.00716.93
8.0.250.0060.00017.05
8.0.240.0040.00416.95
8.0.230.0030.00317.06
8.0.220.0000.00716.98
8.0.210.0060.00316.91
8.0.200.0000.00717.07
8.0.190.0030.00316.96
8.0.180.0080.00017.04
8.0.170.0000.00717.01
8.0.160.0050.00316.87
8.0.150.0030.00516.95
8.0.140.0070.00016.93
8.0.130.0030.00313.36
8.0.120.0000.00816.89
8.0.110.0040.00416.80
8.0.100.0040.00416.83
8.0.90.0000.00716.83
8.0.80.0110.01116.90
8.0.70.0050.00216.95
8.0.60.0020.00516.81
8.0.50.0050.00216.92
8.0.30.0080.01117.17
8.0.20.0140.00717.40
8.0.10.0080.00017.14
8.0.00.0110.00816.60
7.4.330.0020.00316.83
7.4.320.0030.00316.52
7.4.300.0030.00616.61
7.4.290.0070.00016.44
7.4.280.0000.00716.61
7.4.270.0070.00016.61
7.4.260.0030.00316.62
7.4.250.0000.00816.47
7.4.240.0030.00316.58
7.4.230.0050.00216.59
7.4.220.0000.01516.51
7.4.210.0190.00016.69
7.4.200.0040.00216.59
7.4.160.0070.01016.36
7.4.150.0120.00617.40
7.4.140.0140.01217.86
7.4.130.0090.00816.63
7.4.120.0080.00916.65
7.4.110.0150.00916.63
7.4.100.0070.01016.59
7.4.90.0130.00316.46
7.4.80.0150.00919.39
7.4.70.0160.00016.64
7.4.60.0040.01216.48
7.4.50.0030.00916.71
7.4.40.0030.01516.75
7.4.30.0140.00616.48
7.4.10.0070.01315.14
7.4.00.0050.01115.17
7.3.330.0030.00313.20
7.3.320.0000.00513.28
7.3.310.0070.00016.25
7.3.300.0070.00016.32
7.3.290.0060.01116.43
7.3.280.0120.00716.40
7.3.270.0130.01217.40
7.3.260.0100.00716.48
7.3.250.0110.00916.48
7.3.240.0100.00716.60
7.3.230.0050.01316.39
7.3.210.0090.00916.55
7.3.200.0130.00919.39
7.3.190.0030.01216.44
7.3.180.0160.00716.64
7.3.170.0090.00916.55
7.3.160.0120.01116.40
7.3.130.0100.00714.93
7.3.120.0110.00714.89
7.3.110.0070.01214.75
7.3.100.0030.00814.80
7.3.90.0070.00314.93
7.3.80.0040.01214.82
7.3.70.0060.00514.94
7.3.60.0090.00514.97
7.3.50.0060.01014.67
7.3.40.0060.00614.75
7.3.30.0100.00314.89
7.3.20.0030.00716.65
7.3.10.0070.00716.49
7.3.00.0100.00216.79
7.2.330.0080.00916.69
7.2.320.0090.01616.83
7.2.310.0110.00616.48
7.2.300.0100.00716.78
7.2.290.0070.01016.53
7.2.260.0030.01515.03
7.2.250.0000.01915.11
7.2.240.0020.01515.20
7.2.230.0060.00914.95
7.2.220.0050.00815.09
7.2.210.0030.00914.96
7.2.200.0070.00715.07
7.2.190.0100.00614.85
7.2.180.0050.01015.11
7.2.170.0080.00515.14
7.2.160.0050.01015.01
7.2.150.0070.01016.87
7.2.140.0070.00616.73
7.2.130.0050.01016.80
7.2.120.0050.01216.81
7.2.110.0080.00716.80
7.2.100.0050.00716.96
7.2.90.0100.00517.06
7.2.80.0050.00717.01
7.2.70.0110.00216.94
7.2.60.0090.00616.90
7.2.50.0020.01216.88
7.2.40.0040.00616.98
7.2.30.0050.00716.74
7.2.20.0080.00517.11
7.2.10.0020.00916.77
7.2.00.0070.00916.96
7.1.330.0050.01215.89
7.1.320.0030.00815.58
7.1.310.0060.00515.47
7.1.300.0050.00815.61
7.1.290.0040.00515.62
7.1.280.0030.00815.88
7.1.270.0060.00515.72
7.1.260.0080.00615.71
7.1.250.0050.01115.53
7.1.240.0070.00715.95
7.1.230.0130.00315.76
7.1.220.0000.01015.90
7.1.210.0100.00315.86
7.1.200.0070.00715.79
7.1.190.0070.00715.77
7.1.180.0130.00015.82
7.1.170.0000.01316.00
7.1.160.0070.00715.85
7.1.150.0070.00715.63
7.1.140.0030.01315.58
7.1.130.0060.00815.74
7.1.120.0070.00715.55
7.1.110.0040.01115.92
7.1.100.0060.00615.81
7.1.90.0000.01115.76
7.1.80.0030.00915.89
7.1.70.0040.00516.54
7.1.60.0080.00817.57
7.1.50.0140.00716.39
7.1.40.0000.01315.82
7.1.30.0030.01415.86
7.1.20.0060.01115.67
7.1.10.0060.00615.90
7.1.00.0050.04019.05
7.0.330.0000.01715.45
7.0.320.0000.01015.37
7.0.310.0040.01215.33
7.0.300.0030.01215.44
7.0.290.0050.00315.53
7.0.280.0040.00715.26
7.0.270.0060.00915.46
7.0.260.0070.00415.25
7.0.250.0000.01115.16
7.0.240.0100.00315.57
7.0.230.0000.01215.48
7.0.220.0100.00615.41
7.0.210.0030.00715.64
7.0.200.0030.00816.07
7.0.190.0000.01515.45
7.0.180.0030.01215.42
7.0.170.0090.00915.45
7.0.160.0130.00315.45
7.0.150.0030.01415.66
7.0.140.0100.00615.21
7.0.130.0110.00315.37
7.0.120.0030.00715.41
7.0.110.0090.00615.46
7.0.100.0030.00715.61
7.0.90.0030.01415.23
7.0.80.0100.00715.48
7.0.70.0080.00315.28
7.0.60.0120.04018.54
7.0.50.0110.02316.69
7.0.40.0080.04216.95
7.0.30.0120.02216.79
7.0.20.0200.03216.89
7.0.10.0040.03516.74
7.0.00.0100.02016.59
5.6.400.0030.00614.66
5.6.390.0100.00714.27
5.6.380.0030.01314.05
5.6.370.0030.01714.49
5.6.360.0040.00414.44
5.6.350.0000.00914.31
5.6.340.0030.01014.64
5.6.330.0040.01114.64
5.6.320.0060.00614.18
5.6.310.0030.01014.62
5.6.300.0060.00614.30
5.6.290.0000.01514.43
5.6.280.0020.02317.52
5.6.270.0070.00714.12
5.6.260.0100.00014.46
5.6.250.0090.00614.22
5.6.240.0070.00714.30
5.6.230.0070.01014.35
5.6.220.0030.00614.23
5.6.210.0050.04517.54
5.6.200.0100.04216.34
5.6.190.0030.04817.38
5.6.180.0150.04717.45
5.6.170.0200.04317.70
5.6.160.0120.03817.47
5.6.150.0100.03816.32
5.6.140.0070.03016.31
5.6.130.0020.02616.38
5.6.120.0120.04517.63
5.6.110.0030.02617.65
5.6.100.0030.02317.75
5.6.90.0080.04517.67
5.6.80.0050.04617.30
5.6.70.0030.00614.39
5.6.60.0100.00314.06
5.6.50.0100.00314.44
5.6.40.0040.00714.34
5.6.30.0070.00714.34
5.6.20.0060.00614.23
5.6.10.0030.00914.37
5.6.00.0030.01014.42
5.5.380.0090.00614.06
5.5.370.0070.00414.60
5.5.360.0050.00514.08
5.5.350.2090.02917.45
5.5.340.0030.02716.16
5.5.330.0080.02717.32
5.5.320.0300.03517.31
5.5.310.0100.04917.50
5.5.300.0040.04716.21
5.5.290.0030.02816.04
5.5.280.0070.04817.58
5.5.270.0080.02517.60
5.5.260.0120.03417.54
5.5.250.0060.03317.41
5.5.240.0150.03717.30
5.5.230.0100.00014.10
5.5.220.0080.00414.45
5.5.210.0040.00414.13
5.5.200.0030.00714.22
5.5.190.0000.01714.40
5.5.180.0030.01214.28
5.5.170.0000.00814.15
5.5.160.0030.00914.24
5.5.150.0070.00614.30
5.5.140.0060.00314.61
5.5.130.0090.00614.33
5.5.120.0060.00314.43
5.5.110.0070.00313.98
5.5.100.0040.00814.38
5.5.90.0090.00314.20
5.5.80.0040.01114.42
5.5.70.0070.00714.28
5.5.60.0070.00414.17
5.5.50.0070.01014.17
5.5.40.0090.00614.14
5.5.30.0080.00413.96
5.5.20.0090.00614.34
5.5.10.0070.00714.50
5.5.00.0090.00014.24

preferences:
56.56 ms | 401 KiB | 5 Q