3v4l.org

run code in 300+ PHP versions simultaneously
<?php //extract data from the post extract($_POST); //set POST variables $url = 'http://domain.com/get-post.php'; $fields = array( 'lname' => urlencode($last_name), 'fname' => urlencode($first_name), 'title' => urlencode($title), 'company' => urlencode($institution), 'age' => urlencode($age), 'email' => urlencode($email), 'phone' => urlencode($phone) ); //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); //execute post $result = curl_exec($ch); //close connection curl_close($ch);

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.5.10.0120.00520.16
8.5.00.0150.00620.34
8.4.150.0020.00014.05
8.4.140.0150.01217.80
8.4.130.0050.00418.63
8.4.120.0060.00320.31
8.4.110.0070.01218.89
8.4.100.0100.01118.17
8.4.90.0090.01120.50
8.4.80.0130.00719.05
8.4.70.0110.00818.95
8.4.60.0110.01020.31
8.4.50.0040.00420.53
8.4.40.0030.01619.48
8.4.30.0130.00617.57
8.4.20.0130.00717.84
8.4.10.0140.00717.84
8.3.280.0110.01118.63
8.3.270.0100.01016.69
8.3.260.0070.00116.75
8.3.250.0160.00316.70
8.3.240.0110.00816.73
8.3.230.0120.00916.89
8.3.220.0100.00920.63
8.3.210.0070.00716.74
8.3.200.0040.00416.70
8.3.190.0030.00617.21
8.3.180.0120.00819.02
8.3.170.0150.00317.38
8.3.160.0150.00416.83
8.3.150.0050.00316.73
8.3.140.0040.00419.10
8.3.130.0050.00316.74
8.3.120.0160.00319.09
8.3.110.0130.00620.94
8.3.100.0060.00324.06
8.3.90.0040.01226.77
8.3.80.0090.00018.43
8.3.70.0090.00618.30
8.3.60.0090.00918.43
8.3.50.0110.01121.20
8.3.40.0110.00418.81
8.3.30.0080.00819.23
8.3.20.0040.00420.34
8.3.10.0150.00023.65
8.3.00.0070.00023.48
8.2.290.0150.00417.09
8.2.280.0160.00320.21
8.2.270.0090.00916.84
8.2.260.0050.00316.89
8.2.250.0040.00418.45
8.2.240.0090.00917.05
8.2.230.0030.00522.58
8.2.220.0080.00837.54
8.2.210.0030.00526.77
8.2.200.0060.00316.63
8.2.190.0070.00718.42
8.2.180.0190.00316.63
8.2.170.0040.01122.96
8.2.160.0140.00022.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0060.00317.62
8.2.110.0090.00022.08
8.2.100.0090.00317.91
8.2.90.0050.00517.97
8.2.80.0030.00617.97
8.2.70.0000.00817.75
8.2.60.0030.00617.93
8.2.50.0030.00518.10
8.2.40.0080.00020.50
8.2.30.0000.00818.09
8.2.20.0030.00517.75
8.2.10.0050.00218.15
8.2.00.0040.00418.11
8.1.330.0110.00216.58
8.1.320.0160.00423.66
8.1.310.0060.00917.03
8.1.300.0090.00016.44
8.1.290.0100.00018.88
8.1.280.0140.00325.92
8.1.270.0040.00420.31
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0080.00422.58
8.1.220.0080.00317.74
8.1.210.0030.00518.78
8.1.200.0030.00717.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0030.00518.70
8.1.160.0000.00822.14
8.1.150.0000.00718.96
8.1.140.0020.00517.39
8.1.130.0030.00517.71
8.1.120.0000.00717.49
8.1.110.0040.00417.40
8.1.100.0000.00717.39
8.1.90.0030.00617.36
8.1.80.0040.00417.52
8.1.70.0080.00017.49
8.1.60.0000.00717.63
8.1.50.0000.00817.53
8.1.40.0040.00417.37
8.1.30.0040.00417.41
8.1.20.0050.00317.57
8.1.10.0040.00417.53
8.1.00.0050.00217.57
8.0.300.0040.00422.07
8.0.290.0000.00816.88
8.0.280.0000.00718.54
8.0.270.0030.00317.34
8.0.260.0030.00317.27
8.0.250.0050.00317.01
8.0.240.0000.00716.91
8.0.230.0030.00316.92
8.0.220.0000.00716.86
8.0.210.0040.00417.01
8.0.200.0000.00716.98
8.0.190.0050.00317.03
8.0.180.0040.00416.97
8.0.170.0030.00516.91
8.0.160.0040.00416.89
8.0.150.0000.01016.95
8.0.140.0040.00316.94
8.0.130.0030.00513.44
8.0.120.0040.00416.98
8.0.110.0040.00417.00
8.0.100.0070.00016.88
8.0.90.0000.00717.04
8.0.80.0090.00617.00
8.0.70.0070.00016.98
8.0.60.0000.00717.03
8.0.50.0040.00416.77
8.0.30.0140.00517.32
8.0.20.0090.00917.40
8.0.10.0000.00716.96
8.0.00.0130.00716.94
7.4.330.0030.00315.08
7.4.320.0000.00616.62
7.4.300.0000.00716.46
7.4.290.0040.00416.56
7.4.280.0040.00416.62
7.4.270.0040.00416.64
7.4.260.0090.00316.50
7.4.250.0040.00416.57
7.4.240.0030.00316.58
7.4.230.0030.00316.52
7.4.220.0130.00616.59
7.4.210.0090.00616.65
7.4.200.0050.00216.44
7.4.160.0130.00316.54
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0120.00816.56
7.4.120.0140.01016.60
7.4.110.0070.01116.34
7.4.100.0090.00916.35
7.4.90.0140.00816.46
7.4.80.0110.00719.39
7.4.70.0100.00716.58
7.4.60.0030.01216.43
7.4.50.0020.00216.58
7.4.40.0180.00016.55
7.4.30.0070.01616.56
7.4.00.0100.00715.14
7.3.330.0050.00013.20
7.3.320.0000.00613.26
7.3.310.0000.01016.29
7.3.300.0070.00016.28
7.3.290.0040.01016.33
7.3.280.0080.01016.37
7.3.270.0100.00717.40
7.3.260.0130.00916.62
7.3.250.0110.00716.57
7.3.240.0120.00616.48
7.3.230.0100.01316.39
7.3.210.0040.01416.50
7.3.200.0100.00716.39
7.3.190.0120.00616.40
7.3.180.0140.00216.35
7.3.170.0030.01416.32
7.3.160.0120.00416.44
7.2.330.0030.01516.72
7.2.320.0110.00816.80
7.2.310.0110.00716.71
7.2.300.0130.00416.55
7.2.290.0120.00316.61
7.2.60.0060.00916.93
7.2.00.0090.00419.46
7.1.200.0050.01615.39
7.1.100.0070.00317.94
7.1.70.0030.00616.95
7.1.60.0120.01219.42
7.1.50.0130.01317.10
7.1.00.0170.06022.40
7.0.200.0100.00316.91
7.0.60.0000.04319.88
7.0.50.0000.04317.91
7.0.40.0070.05320.21
7.0.30.0500.06320.02
7.0.20.0230.08320.09
7.0.10.0030.07720.18
7.0.00.0130.07320.45
5.6.280.0070.05321.00
5.6.210.0170.07720.61
5.6.200.0030.08718.22
5.6.190.0030.09020.57
5.6.180.0430.08020.67
5.6.170.0270.05020.52
5.6.160.0000.07320.39
5.6.150.0070.08318.13
5.6.140.0070.08318.18
5.6.130.0200.05018.19
5.6.120.0070.06320.99
5.6.110.0000.05721.00
5.6.100.0070.08720.98
5.6.90.0130.07721.10
5.6.80.0100.07320.51
5.5.350.4230.04320.47
5.5.340.0100.04718.01
5.5.330.0100.08320.37
5.5.320.0070.07320.27
5.5.310.0270.06320.28
5.5.300.0100.03317.94
5.5.290.0100.07718.00
5.5.280.0200.05020.78
5.5.270.0030.08320.98
5.5.260.0100.04020.68
5.5.250.0070.08720.80
5.5.240.0270.06020.16
5.4.450.3930.04319.21
5.4.440.3400.03319.45
5.4.430.3300.04019.48
5.4.420.3970.03719.45
5.4.410.4400.04019.41
5.4.400.3800.03319.25
5.4.390.3570.04019.13
5.4.380.3630.03018.82
5.4.370.3570.04018.88
5.4.360.3330.03718.93
5.4.350.3100.04018.93
5.4.340.3730.03719.08
5.4.320.3270.04019.08
5.4.310.3130.03719.06
5.4.300.3400.04019.25
5.4.290.3800.03719.05
5.4.280.3930.04019.09
5.4.270.3100.04019.23
5.4.260.3300.04018.92
5.4.250.3800.04718.78
5.4.240.3470.04019.23
5.4.230.3230.03719.08
5.4.220.3470.03719.05
5.4.210.3370.03319.13
5.4.200.3270.04018.92
5.4.190.3470.03018.92
5.4.180.3330.03718.91
5.4.170.3500.03719.21
5.4.160.3670.04319.05
5.4.150.3630.03719.14
5.4.140.3830.04016.19
5.4.130.3630.03316.28
5.4.120.4170.03316.28
5.4.110.3630.04016.06
5.4.100.4530.03716.22
5.4.90.5030.02716.45
5.4.80.3800.03316.42
5.4.70.3470.04016.44
5.4.60.3370.03316.04
5.4.50.4100.03716.20
5.4.40.3930.03316.28
5.4.30.4130.04016.20
5.4.20.3630.03316.33
5.4.10.4100.03316.33
5.4.00.4130.03715.71
5.3.290.3700.04014.62
5.3.280.3470.03314.45
5.3.270.3770.04014.56
5.3.260.3530.04314.46
5.3.250.4370.04014.45
5.3.240.3330.04014.45
5.3.230.3570.03314.48
5.3.220.3630.03014.53
5.3.210.3430.03714.41
5.3.200.4100.04314.43
5.3.190.5100.02014.63
5.3.180.3930.04014.52
5.3.170.3800.04314.50
5.3.160.3300.03314.55
5.3.150.4400.04314.60
5.3.140.4200.03014.40
5.3.130.4230.04014.65
5.3.120.3470.03314.41
5.3.110.3670.04314.51
5.3.100.3870.03714.03
5.3.90.0400.06013.88
5.3.80.0030.07013.94
5.3.70.0100.07013.98
5.3.60.1970.05013.95
5.3.50.4300.04013.87
5.3.40.4330.03013.91
5.3.30.4170.03313.88
5.3.20.4130.04013.66
5.3.10.3830.03013.71
5.3.00.3570.03313.56
5.2.170.3070.03311.02
5.2.160.4130.03011.05
5.2.150.3730.03011.02
5.2.140.3630.02311.00
5.2.130.3700.03011.05
5.2.120.3630.03011.17
5.2.110.3030.03310.95
5.2.100.3500.02711.18
5.2.90.3670.02311.16
5.2.80.2870.03710.96
5.2.70.3500.02711.04
5.2.60.3070.02711.11
5.2.50.4070.03310.89
5.2.40.1770.02311.16
5.2.30.0000.04011.14
5.2.20.0000.03011.06
5.2.10.0030.06710.73
5.2.00.2430.02310.68
5.1.60.3000.02310.05
5.1.50.3370.03010.09
5.1.40.2970.03010.08
5.1.30.2500.02310.38
5.1.20.2630.02710.45
5.1.10.3170.02010.09
5.1.00.3470.02010.06
5.0.50.1670.0278.61
5.0.40.1300.0238.33
5.0.30.1630.0338.14
5.0.20.1900.0208.13
5.0.10.1630.0238.20
5.0.00.1730.0308.25
4.4.90.1300.0206.30
4.4.80.1430.0136.30
4.4.70.0070.0206.30
4.4.60.0000.0406.30
4.4.50.0070.0136.30
4.4.40.1630.0276.30
4.4.30.1570.0136.30
4.4.20.1270.0206.30
4.4.10.1730.0136.30
4.4.00.1330.0276.30
4.3.110.1600.0176.30
4.3.100.1530.0176.30
4.3.90.1330.0176.30
4.3.80.1330.0276.30
4.3.70.1700.0136.30
4.3.60.1730.0136.30
4.3.50.1570.0176.30
4.3.40.1330.0236.30
4.3.30.0700.0176.30
4.3.20.0900.0176.30
4.3.10.0970.0236.30
4.3.00.0970.0106.30

preferences:
191.68 ms | 403 KiB | 5 Q