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

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0140.00816.38
7.3.00.0100.01016.02
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.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
5.4.450.0800.04319.27
5.4.440.0700.06719.54
5.4.430.0770.05719.64
5.4.420.0630.05719.57
5.4.410.0670.05719.36
5.4.400.0630.05319.29
5.4.390.0670.05719.13
5.4.380.0800.05018.94
5.4.370.0630.05319.00
5.4.360.0700.06018.98
5.4.350.0700.06718.95
5.4.340.0630.05719.13
5.4.320.0930.05719.11
5.4.310.0700.04718.99
5.4.300.0600.05319.29
5.4.290.0800.04019.10
5.4.280.0670.05319.23
5.4.270.0770.04319.12
5.4.260.0600.05018.98
5.4.250.0200.06019.27
5.4.240.0670.05319.13
5.4.230.0570.05319.12
5.4.220.0570.05319.22
5.4.210.0600.05719.27
5.4.200.0570.05719.23
5.4.190.0670.04719.29
5.4.180.0670.05319.18
5.4.170.0670.05019.04
5.4.160.0730.05019.11
5.4.150.0630.05719.08
5.4.140.0830.04016.51
5.4.130.0670.05016.41
5.4.120.0100.05016.50
5.4.110.0770.04016.51
5.3.290.0600.06014.56
5.3.280.0730.05714.50
5.3.270.0900.04714.60
5.3.260.0570.06014.51
5.3.250.0770.05314.73
5.3.240.0730.04314.57
5.3.230.0470.04314.49
5.3.220.0070.05314.34
5.3.210.0700.05014.52