3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.freesmsgateway.com/api_send'; $post_contacts = array('3408325797'); $json_contacts = json_encode($post_contacts); $fields = array( 'access_token'=>'cd2b648eebfa0f10b49e3be9fe43fc8f', 'message'=>urlencode('Buy one get one free'), 'send_to'=>'post_contacts', 'post_contacts'=>urlencode($json_contacts), ); $fields_string = ''; foreach($fields as $key=>$value) {$fields_string .= $key.'='.$value.'&';} rtrim($fields_string,'&'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST,count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS,$fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); $result = curl_exec($ch); curl_close($ch); print $result; ?>

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.0220.00318.79
8.3.30.0070.00718.99
8.3.20.0070.00020.51
8.3.10.0040.00421.78
8.3.00.0080.00019.68
8.2.170.0110.00422.96
8.2.160.0140.00720.60
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0130.00626.16
8.2.120.0030.00521.00
8.2.110.0110.00722.07
8.2.100.0110.00019.76
8.2.90.0050.00319.34
8.2.80.0000.00917.97
8.2.70.0030.00617.75
8.2.60.0060.00317.91
8.2.50.0000.00918.07
8.2.40.0050.00618.21
8.2.30.0040.00418.14
8.2.20.0020.00517.71
8.2.10.0030.00518.05
8.2.00.0000.00717.70
8.1.270.0080.00023.92
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.77
8.1.230.0040.00719.21
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00818.70
8.1.160.0040.00422.08
8.1.150.0050.00318.81
8.1.140.0040.00417.39
8.1.130.0000.00717.78
8.1.120.0000.00817.38
8.1.110.0030.00617.40
8.1.100.0040.00417.39
8.1.90.0030.00517.39
8.1.80.0000.00717.38
8.1.70.0050.00317.43
8.1.60.0080.00417.49
8.1.50.0000.00817.55
8.1.40.0080.00017.46
8.1.30.0060.00317.75
8.1.20.0030.00717.61
8.1.10.0040.00417.63
8.1.00.0030.00617.43
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.47
8.0.270.0000.00717.21
8.0.260.0030.00317.28
8.0.250.0030.00316.92
8.0.240.0050.00317.06
8.0.230.0000.00717.04
8.0.220.0030.00317.01
8.0.210.0030.00516.88
8.0.200.0000.00616.96
8.0.190.0000.00716.93
8.0.180.0030.00517.00
8.0.170.0060.00316.93
8.0.160.0040.00416.97
8.0.150.0000.00816.85
8.0.140.0030.00516.99
8.0.130.0030.00313.34
8.0.120.0040.00416.96
8.0.110.0000.00716.94
8.0.100.0000.00716.82
8.0.90.0000.00716.93
8.0.80.0120.00416.93
8.0.70.0040.00417.09
8.0.60.0030.00517.01
8.0.50.0000.00716.81
8.0.30.0120.01217.03
8.0.20.0120.00917.40
8.0.10.0040.00417.05
8.0.00.0100.00716.64
7.4.330.0050.00015.13
7.4.320.0030.00316.46
7.4.300.0000.00616.53
7.4.290.0040.00416.66
7.4.280.0040.00416.65
7.4.270.0040.00416.61
7.4.260.0100.00016.52
7.4.250.0020.00516.63
7.4.240.0060.00116.63
7.4.230.0000.00716.27
7.4.220.0120.00616.44
7.4.210.0100.00316.65
7.4.200.0050.00216.73
7.4.160.0110.00616.47
7.4.150.0150.00317.40
7.4.140.0090.01217.86
7.4.130.0110.00816.53
7.4.120.0100.00716.58
7.4.110.0110.00516.47
7.4.100.0090.00916.56
7.4.90.0140.00616.41
7.4.80.0130.00519.39
7.4.70.0090.00916.52
7.4.60.0120.00916.60
7.4.50.0060.00316.46
7.4.40.0050.01116.50
7.4.30.0110.01016.59
7.4.00.0000.01515.26
7.3.330.0020.00213.22
7.3.320.0030.00313.20
7.3.310.0040.00416.42
7.3.300.0000.00716.25
7.3.290.0100.00716.31
7.3.280.0090.00916.34
7.3.270.0110.00717.40
7.3.260.0130.00916.47
7.3.250.0050.01116.33
7.3.240.0150.00616.75
7.3.230.0070.01316.40
7.3.210.0000.01816.51
7.3.200.0070.01019.39
7.3.190.0090.00916.37
7.3.180.0100.01016.52
7.3.170.0160.00016.37
7.3.160.0120.00316.46
7.3.120.0100.00614.84
7.3.110.0100.00614.91
7.3.100.0070.01015.06
7.3.90.0090.00915.06
7.3.80.0030.01314.63
7.3.70.0100.00714.90
7.3.60.0040.00814.95
7.3.50.0000.01514.65
7.3.40.0100.00714.65
7.3.30.0060.00614.97
7.3.20.0090.00316.61
7.3.10.0040.00716.80
7.3.00.0090.00616.82
7.2.330.0140.01216.79
7.2.320.0060.01116.72
7.2.310.0120.01016.79
7.2.300.0100.00616.81
7.2.290.0060.01016.72
7.2.240.0070.00715.32
7.2.230.0130.00315.06
7.2.220.0080.00815.03
7.2.210.0040.01115.22
7.2.200.0090.00615.11
7.2.190.0100.00315.17
7.2.180.0070.00415.09
7.2.170.0060.00915.17
7.2.160.0040.01115.12
7.2.150.0000.01116.81
7.2.140.0000.01516.97
7.2.130.0030.01416.80
7.2.120.0030.00816.90
7.2.110.0030.00916.79
7.2.100.0030.00816.95
7.2.90.0090.00616.95
7.2.80.0040.01116.87
7.2.70.0120.00317.01
7.2.60.0100.00817.06
7.2.50.0030.01016.94
7.2.40.0100.00716.74
7.2.30.0090.00317.02
7.2.20.0030.01017.14
7.2.10.0100.00317.00
7.2.00.0030.01318.29
7.1.330.0100.00615.62
7.1.320.0070.00715.53
7.1.310.0090.00315.94
7.1.300.0000.01715.80
7.1.290.0060.00615.93
7.1.280.0060.00615.84
7.1.270.0100.00315.48
7.1.260.0070.00315.77
7.1.250.0070.00315.86
7.1.200.0030.01015.77
7.1.70.0070.00317.22
7.1.60.0070.01719.14
7.1.50.0070.01117.02
7.1.00.0070.07322.30
7.0.200.0000.00716.94
7.0.140.0070.07022.07
7.0.90.0470.09020.10
7.0.80.0470.05019.86
7.0.70.0570.08319.89
7.0.60.0570.08019.93
7.0.50.0570.07720.31
7.0.40.0170.07020.11
7.0.30.0100.07720.02
7.0.20.0170.05720.05
7.0.10.0130.07720.10
7.0.00.0100.07320.14
5.6.240.0200.07320.71
5.6.230.0070.08320.61
5.6.220.0070.08020.66
5.6.210.0070.04320.72
5.6.200.0170.08321.09
5.6.190.0000.07320.94
5.6.180.0000.05721.04
5.6.170.0200.06721.01
5.6.160.0030.06021.18
5.6.150.0100.04320.99
5.6.140.0100.08021.04
5.6.130.0100.06021.08
5.6.120.0070.05721.13
5.6.110.0170.07021.08
5.6.100.0070.04320.95
5.6.90.0200.05321.07
5.6.80.0100.04320.43
5.6.70.0070.04320.45
5.6.60.0100.04020.41
5.6.50.0170.07020.42
5.6.40.0070.05720.30
5.6.30.0100.07720.39
5.6.20.0130.04320.40
5.6.10.0170.07720.33
5.6.00.0000.04720.29
5.5.380.0070.07320.38
5.5.370.0100.07720.30
5.5.360.0130.05320.40
5.5.350.0070.05320.36
5.5.340.0100.08320.84
5.5.330.0030.05020.84
5.5.320.0070.08020.84
5.5.310.0130.06320.90
5.5.300.0030.06020.93
5.5.290.0100.07020.83
5.5.280.0100.08320.87
5.5.270.0100.08320.83
5.5.260.0200.07020.91
5.5.250.0100.07720.73
5.5.240.0170.04020.18
5.5.230.0000.07320.18
5.5.220.0070.07020.02
5.5.210.0100.08020.29
5.5.200.0170.07320.27
5.5.190.0070.06320.25
5.5.180.0030.04320.27
5.5.160.0000.05720.27
5.5.150.0070.05320.15
5.5.140.0070.04319.99
5.5.130.0170.07720.21
5.5.120.0000.05019.96
5.5.110.0230.06020.25
5.5.100.0070.08320.17
5.5.90.0100.08020.12
5.5.80.0000.06019.92
5.5.70.0100.08020.15
5.5.60.0100.07720.06
5.5.50.0070.05020.05
5.5.40.0100.05320.00
5.5.30.0030.06320.05
5.5.20.0130.08020.05
5.5.10.0070.08020.10
5.5.00.0130.03320.05
5.4.450.0030.07019.36
5.4.440.0070.07719.36
5.4.430.0100.05019.35
5.4.420.0100.05019.55
5.4.410.0030.07719.24
5.4.400.0030.08319.06
5.4.390.0100.07718.81
5.4.380.0100.05318.94
5.4.370.0030.07019.12
5.4.360.0070.05319.10
5.4.350.0130.04319.05
5.4.340.0030.06319.06
5.4.320.0070.07719.10
5.4.310.0030.04718.98
5.4.300.0100.07319.09
5.4.290.0100.07719.02
5.4.280.0130.07018.98
5.4.270.0100.05719.09
5.4.260.0070.07718.78
5.4.250.0030.06019.02
5.4.240.0030.07719.05
5.4.230.0170.06719.22
5.4.220.0170.04018.97
5.4.210.0100.07718.87
5.4.200.0100.07718.96
5.4.190.0030.04319.04
5.4.180.0100.07319.04
5.4.170.0100.04019.01
5.4.160.0000.05019.10
5.4.150.0070.05318.79
5.4.140.0030.05016.23
5.4.130.0100.03316.07
5.4.120.0000.08016.30
5.4.110.0100.07016.41
5.4.100.0030.07016.26
5.4.90.0030.05016.26
5.4.80.0030.04016.42
5.4.70.0100.07016.20
5.4.60.0070.07316.30
5.4.50.0000.07316.42
5.4.40.0070.05316.32
5.4.30.0070.07016.35
5.4.20.0100.05716.41
5.4.10.0030.04316.32
5.4.00.0130.04315.68
5.3.290.0070.07314.53
5.3.280.0100.05314.42
5.3.270.0030.05314.43
5.3.260.0070.07714.61
5.3.250.0070.05014.48
5.3.240.0030.04314.49
5.3.230.0070.07314.59
5.3.220.0070.05014.55
5.3.210.0100.07314.40
5.3.200.0100.07314.43
5.3.190.0070.05014.52
5.3.180.0070.03714.54
5.3.170.0030.04314.43
5.3.160.0000.04314.43
5.3.150.0170.02714.43
5.3.140.0070.05714.42
5.3.130.0100.06714.50
5.3.120.0170.06714.42
5.3.110.0030.04714.49
5.3.100.0100.04014.04
5.3.90.0030.06713.86
5.3.80.0030.05013.97
5.3.70.0070.05714.02
5.3.60.0070.07313.97
5.3.50.0070.05013.95
5.3.40.0070.07313.81
5.3.30.0100.07013.89
5.3.20.0170.06013.69
5.3.10.0070.05013.43
5.3.00.0000.04013.59
5.2.170.0030.06311.22
5.2.160.0030.06311.00
5.2.150.0070.06011.00
5.2.140.0070.05311.17
5.2.130.0070.05311.15
5.2.120.0030.04311.06
5.2.110.0070.05011.09
5.2.100.0030.04710.95
5.2.90.0100.05711.18
5.2.80.0030.05710.95
5.2.70.0070.05711.13
5.2.60.0000.07011.01
5.2.50.0070.04310.98
5.2.40.0100.04311.05
5.2.30.0130.03310.83
5.2.20.0070.06310.91
5.2.10.0130.05010.91
5.2.00.0030.04310.67
5.1.60.0000.0309.83
5.1.50.0000.05710.06
5.1.40.0070.05010.02
5.1.30.0130.05010.41
5.1.20.0000.06010.26
5.1.10.0100.05010.09
5.1.00.0100.03310.16
5.0.50.0070.0478.59
5.0.40.0030.0478.47
5.0.30.0030.0538.25
5.0.20.0070.0378.28
5.0.10.0000.0438.17
5.0.00.0170.0478.05
4.4.90.0000.0277.81
4.4.80.0000.0277.81
4.4.70.0030.0377.81
4.4.60.0000.0307.81
4.4.50.0030.0337.81
4.4.40.0000.0437.81
4.4.30.0070.0377.81
4.4.20.0030.0207.81
4.4.10.0030.0377.81
4.4.00.0100.0407.81
4.3.110.0030.0337.81
4.3.100.0000.0377.81
4.3.90.0070.0277.81
4.3.80.0000.0437.81
4.3.70.0030.0277.81
4.3.60.0030.0207.81
4.3.50.0000.0337.81
4.3.40.0000.0337.81
4.3.30.0000.0237.81
4.3.20.0000.0207.81
4.3.10.0000.0237.81
4.3.00.0030.0177.81

preferences:
40.53 ms | 400 KiB | 5 Q