3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.freesmsgateway.com/api_send'; $post_contacts = array('3408325798'); $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.60.0090.00918.55
8.3.50.0130.00621.99
8.3.40.0120.00318.86
8.3.30.0110.00419.09
8.3.20.0080.00020.39
8.3.10.0000.00822.04
8.3.00.0040.00422.43
8.2.180.0040.01916.75
8.2.170.0140.00022.96
8.2.160.0110.00419.16
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00419.48
8.2.110.0030.00722.13
8.2.100.0080.00419.58
8.2.90.0040.00419.35
8.2.80.0030.00618.05
8.2.70.0040.00417.75
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0050.00218.16
8.2.30.0000.00818.13
8.2.20.0080.00017.81
8.2.10.0000.00717.77
8.2.00.0060.00317.94
8.1.280.0040.01425.92
8.1.270.0040.00421.82
8.1.260.0070.00026.35
8.1.250.0120.00628.09
8.1.240.0040.00423.85
8.1.230.0040.00819.01
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.01017.23
8.1.190.0090.00017.53
8.1.180.0040.00418.66
8.1.170.0040.00418.57
8.1.160.0000.00722.20
8.1.150.0030.00518.69
8.1.140.0060.00317.47
8.1.130.0020.00517.80
8.1.120.0040.00317.38
8.1.110.0000.00817.33
8.1.100.0040.00417.39
8.1.90.0030.00517.55
8.1.80.0030.00317.44
8.1.70.0000.00717.46
8.1.60.0000.00917.64
8.1.50.0040.00417.43
8.1.40.0040.00417.49
8.1.30.0000.00817.70
8.1.20.0030.00617.54
8.1.10.0040.00417.48
8.1.00.0040.00417.52
8.0.300.0000.00718.77
8.0.290.0040.00417.15
8.0.280.0030.00318.47
8.0.270.0040.00417.21
8.0.260.0030.00316.90
8.0.250.0030.00317.05
8.0.240.0040.00416.95
8.0.230.0040.00417.09
8.0.220.0030.00416.98
8.0.210.0030.00317.00
8.0.200.0030.00317.08
8.0.190.0070.00017.00
8.0.180.0000.00717.01
8.0.170.0000.00816.97
8.0.160.0000.00817.02
8.0.150.0000.00816.96
8.0.140.0000.00716.87
8.0.130.0000.00513.41
8.0.120.0050.00316.97
8.0.110.0040.00417.00
8.0.100.0040.00416.97
8.0.90.0040.00416.80
8.0.80.0070.00716.86
8.0.70.0000.00716.78
8.0.60.0000.00816.87
8.0.50.0050.00216.86
8.0.30.0090.01017.29
8.0.20.0120.00517.40
8.0.10.0000.00716.95
8.0.00.0130.00516.85
7.4.330.0020.00215.14
7.4.320.0030.00316.54
7.4.300.0060.00016.62
7.4.290.0000.00716.55
7.4.280.0030.00616.55
7.4.270.0030.00316.56
7.4.260.0050.00316.49
7.4.250.0000.00716.36
7.4.240.0020.00616.58
7.4.230.0030.00616.34
7.4.220.0060.01316.39
7.4.210.0090.01216.61
7.4.200.0030.00316.29
7.4.190.0000.00716.66
7.4.160.0060.00916.28
7.4.150.0180.00317.40
7.4.140.0090.01117.86
7.4.130.0110.00516.50
7.4.120.0120.00716.67
7.4.110.0090.01216.54
7.4.100.0090.00816.46
7.4.90.0140.00416.57
7.4.80.0100.00719.39
7.4.70.0070.01016.52
7.4.60.0140.00416.62
7.4.50.0000.00816.50
7.4.40.0000.01622.77
7.4.30.0080.00816.56
7.4.00.0060.00715.17
7.3.330.0000.00513.28
7.3.320.0030.00313.08
7.3.310.0040.00416.19
7.3.300.0000.00716.39
7.3.290.0060.01416.38
7.3.280.0070.01016.34
7.3.270.0140.00917.40
7.3.260.0090.00916.45
7.3.250.0050.01216.53
7.3.240.0130.01016.44
7.3.230.0120.00616.58
7.3.210.0160.00016.37
7.3.200.0130.00319.39
7.3.190.0060.01216.51
7.3.180.0080.00816.60
7.3.170.0060.00916.38
7.3.160.0110.00816.70
7.3.120.0090.00815.08
7.3.110.0030.01315.02
7.3.100.0040.00814.93
7.3.90.0090.00315.04
7.3.80.0070.00714.89
7.3.70.0040.01114.66
7.3.60.0030.00815.05
7.3.50.0070.01014.99
7.3.40.0120.00614.96
7.3.30.0060.00914.98
7.3.20.0060.00316.48
7.3.10.0000.01316.69
7.3.00.0040.00916.66
7.2.330.0040.01416.65
7.2.320.0060.01016.53
7.2.310.0100.01316.70
7.2.300.0150.00316.64
7.2.290.0130.00616.53
7.2.250.0090.00915.15
7.2.240.0030.01015.23
7.2.230.0040.01414.94
7.2.220.0070.00715.09
7.2.210.0000.01014.83
7.2.200.0070.01115.12
7.2.190.0100.00415.18
7.2.180.0030.00915.11
7.2.170.0090.00615.05
7.2.130.0100.00316.94
7.2.120.0040.00817.08
7.2.110.0000.01216.99
7.2.100.0070.00017.02
7.2.90.0060.00916.68
7.2.80.0070.00716.96
7.2.70.0000.00816.98
7.2.60.0080.00817.00
7.2.50.0000.01517.05
7.2.40.0040.00417.05
7.2.30.0030.01016.96
7.2.20.0000.01116.96
7.2.10.0030.00616.61
7.2.00.0070.00618.25
7.1.330.0040.01115.54
7.1.320.0050.00516.02
7.1.310.0040.01116.05
7.1.300.0000.01515.70
7.1.290.0030.01215.62
7.1.280.0080.00315.56
7.1.270.0070.01015.75
7.1.260.0060.00815.81
7.1.250.0070.00415.86
7.1.200.0060.00315.82
7.1.100.0060.00618.15
7.1.70.0070.00417.19
7.1.60.0080.01519.82
7.1.50.0070.01016.74
7.1.00.0070.07322.45
7.0.200.0050.00216.88
7.0.140.0070.06722.22
7.0.90.0570.08019.92
7.0.80.0630.08019.93
7.0.70.0400.04719.97
7.0.60.0630.07319.89
7.0.50.0470.05020.31
7.0.40.0030.07020.18
7.0.30.0100.06720.05
7.0.20.0070.09019.96
7.0.10.0170.05020.14
7.0.00.0030.06720.09
5.6.280.0030.07320.79
5.6.240.0130.07720.58
5.6.230.0230.06720.59
5.6.220.0030.07720.74
5.6.210.0100.07020.63
5.6.200.0030.05320.95
5.6.190.0130.06321.14
5.6.180.0070.08021.03
5.6.170.0100.04321.04
5.6.160.0000.08721.10
5.6.150.0130.07721.06
5.6.140.0130.08021.04
5.6.130.0170.07020.93
5.6.120.0100.08021.08
5.6.110.0100.07021.07
5.6.100.0100.05721.12
5.6.90.0100.06721.00
5.6.80.0100.06020.35
5.6.70.0070.07320.44
5.6.60.0130.04020.26
5.6.50.0030.08320.46
5.6.40.0030.08020.32
5.6.30.0170.06020.54
5.6.20.0100.04720.38
5.6.10.0100.03720.38
5.6.00.0100.07720.39
5.5.380.0330.03320.45
5.5.370.0070.04720.36
5.5.360.0070.07720.31
5.5.350.0030.08720.38
5.5.340.0070.05720.94
5.5.330.0100.08020.92
5.5.320.0170.06020.77
5.5.310.0030.08320.83
5.5.300.0070.07320.89
5.5.290.0100.08720.80
5.5.280.0000.06720.73
5.5.270.0100.07020.82
5.5.260.0100.08320.77
5.5.250.0100.07720.64
5.5.240.0070.05320.04
5.5.230.0170.06720.27
5.5.220.0070.08020.32
5.5.210.0100.07320.15
5.5.200.0100.07720.25
5.5.190.0070.08020.24
5.5.180.0070.07320.14
5.5.160.0100.07320.00
5.5.150.0200.06720.21
5.5.140.0100.06320.14
5.5.130.0100.07320.25
5.5.120.0000.05720.18
5.5.110.0100.07320.28
5.5.100.0000.05020.09
5.5.90.0100.06320.05
5.5.80.0130.05320.16
5.5.70.0070.06020.16
5.5.60.0170.06020.16
5.5.50.0170.05020.16
5.5.40.0100.07719.94
5.5.30.0100.07320.08
5.5.20.0070.06720.10
5.5.10.0100.05720.14
5.5.00.0200.07019.96
5.4.450.0030.08719.23
5.4.440.0100.06019.27
5.4.430.0070.06319.22
5.4.420.0030.05319.22
5.4.410.0070.07719.37
5.4.400.0100.05319.12
5.4.390.0130.06718.96
5.4.380.0070.07019.02
5.4.370.0300.05318.96
5.4.360.0130.07318.79
5.4.350.0200.02319.14
5.4.340.0070.05318.98
5.4.320.0030.05318.91
5.4.310.0130.07718.79
5.4.300.0070.07319.07
5.4.290.0100.05018.97
5.4.280.0070.06718.94
5.4.270.0100.07318.89
5.4.260.0070.07719.04
5.4.250.0070.04719.02
5.4.240.0100.05718.89
5.4.230.0100.03719.11
5.4.220.0100.05019.07
5.4.210.0100.06718.93
5.4.200.0130.06719.09
5.4.190.0070.05019.01
5.4.180.0070.07718.97
5.4.170.0000.08019.09
5.4.160.0100.05319.02
5.4.150.0030.08019.21
5.4.140.0070.07716.31
5.4.130.0070.06016.24
5.4.120.0030.07316.23
5.4.110.0100.06716.43
5.4.100.0100.07016.43
5.4.90.0070.07316.34
5.4.80.0030.08016.39
5.4.70.0030.05016.21
5.4.60.0100.06316.21
5.4.50.0030.07716.35
5.4.40.0130.05316.41
5.4.30.0030.05016.34
5.4.20.0100.05016.46
5.4.10.0070.07716.42
5.4.00.0030.07015.69
5.3.290.0000.06314.66
5.3.280.0100.07014.56
5.3.270.0070.04714.47
5.3.260.0030.08014.48
5.3.250.0100.04314.61
5.3.240.0070.07314.59
5.3.230.0130.07314.59
5.3.220.0170.05714.44
5.3.210.0070.07714.57
5.3.200.0100.07314.54
5.3.190.0070.07314.54
5.3.180.0100.07314.38
5.3.170.0100.04714.56
5.3.160.0070.07314.51
5.3.150.0070.05014.57
5.3.140.0070.07714.39
5.3.130.0100.08014.47
5.3.120.0070.05714.50
5.3.110.0070.07714.55
5.3.100.0070.07714.03
5.3.90.0070.05713.98
5.3.80.0130.06313.89
5.3.70.0070.07014.01
5.3.60.0070.07314.00
5.3.50.0070.07313.73
5.3.40.0130.07313.81
5.3.30.0100.06713.88
5.3.20.0130.08013.46
5.3.10.0000.07313.44
5.3.00.0030.04713.61
5.2.170.0100.04310.96
5.2.160.0070.06011.15
5.2.150.0000.05311.11
5.2.140.0030.06311.10
5.2.130.0130.05310.95
5.2.120.0100.05711.11
5.2.110.0100.04011.03
5.2.100.0030.06011.10
5.2.90.0100.06011.10
5.2.80.0000.04311.09
5.2.70.0000.05311.02
5.2.60.0070.06011.09
5.2.50.0000.05011.10
5.2.40.0000.06310.86
5.2.30.0170.05310.96
5.2.20.0000.04710.96
5.2.10.0030.04710.80
5.2.00.0030.06710.63
5.1.60.0070.05310.05
5.1.50.0100.04310.03
5.1.40.0100.0509.86
5.1.30.0070.05310.25
5.1.20.0000.06010.41
5.1.10.0030.05710.13
5.1.00.0070.04010.06
5.0.50.0030.0478.83
5.0.40.0000.0338.83
5.0.30.0030.0438.83
5.0.20.0000.0408.83
5.0.10.0030.0338.83
5.0.00.0070.0638.83
4.4.90.0070.0308.83
4.4.80.0070.0308.83
4.4.70.0000.0208.83
4.4.60.0030.0178.83
4.4.50.0070.0308.83
4.4.40.0000.0578.83
4.4.30.0070.0238.83
4.4.20.0000.0338.83
4.4.10.0000.0238.83
4.4.00.0030.0578.83
4.3.110.0000.0238.83
4.3.100.0000.0378.83
4.3.90.0000.0378.83
4.3.80.0070.0478.83
4.3.70.0030.0338.83
4.3.60.0000.0308.83
4.3.50.0000.0378.83
4.3.40.0000.0578.83
4.3.30.0030.0338.83
4.3.20.0000.0408.83
4.3.10.0000.0408.83
4.3.00.0070.0178.83

preferences:
55.68 ms | 400 KiB | 5 Q