3v4l.org

run code in 300+ PHP versions simultaneously
<?php function request() { $float = 95.00; $string = sprintf("%.3f", $float); // $string = "0.123"; $url = "https://test.oppwa.com/v1/checkouts"; $data = "authentication.userId=8a82941750fc373d0151111603002ec3" . "&authentication.password=d9aMtAqW" . "&authentication.entityId=8a82941750fc373d0151111603002ebf" . "&amount=".$string. "&currency=EUR" . "&paymentType=PA"; echo $data; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $responseData = curl_exec($ch); if(curl_errno($ch)) { return curl_error($ch); } curl_close($ch); return $responseData; } $responseData = request(); echo $responseData;

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.0070.01416.60
8.3.50.0080.01022.11
8.3.40.0150.00018.77
8.3.30.0070.00718.67
8.3.20.0000.00720.29
8.3.10.0080.00021.90
8.3.00.0080.00019.50
8.2.180.0210.00016.75
8.2.170.0090.00622.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00317.63
8.2.120.0040.00426.35
8.2.110.0040.01420.38
8.2.100.0090.00318.05
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0080.00017.48
8.2.60.0030.00517.93
8.2.50.0030.00518.07
8.2.40.0060.00319.53
8.2.30.0070.00020.66
8.2.20.0040.00417.70
8.2.10.0000.00818.21
8.2.00.0000.00718.19
8.1.280.0150.00025.92
8.1.270.0070.00323.86
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0000.00923.82
8.1.230.0110.00017.66
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0030.00717.23
8.1.180.0000.00818.10
8.1.170.0000.00918.66
8.1.160.0040.00421.97
8.1.150.0050.00218.81
8.1.140.0000.00819.60
8.1.130.0040.00417.51
8.1.120.0000.00717.49
8.1.110.0070.00017.36
8.1.100.0050.00317.37
8.1.90.0080.00017.55
8.1.80.0000.00717.50
8.1.70.0070.00017.38
8.1.60.0060.00317.50
8.1.50.0030.00517.52
8.1.40.0000.01017.44
8.1.30.0040.00417.62
8.1.20.0060.00317.56
8.1.10.0000.00817.56
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0050.00318.52
8.0.270.0030.00317.29
8.0.260.0000.00716.82
8.0.250.0000.00817.09
8.0.240.0060.00317.05
8.0.230.0000.00817.07
8.0.220.0030.00316.92
8.0.210.0050.00316.95
8.0.200.0000.00617.05
8.0.190.0040.00717.05
8.0.180.0000.00717.02
8.0.170.0100.00017.05
8.0.160.0000.00717.09
8.0.150.0050.00317.03
8.0.140.0070.00016.96
8.0.130.0000.00613.49
8.0.120.0030.00616.93
8.0.110.0000.00716.98
8.0.100.0040.00417.09
8.0.90.0040.00416.90
8.0.80.0070.01417.00
8.0.70.0080.00016.99
8.0.60.0060.00316.98
8.0.50.0070.00016.97
8.0.30.0160.00517.12
8.0.20.0170.00917.40
8.0.10.0080.00016.91
8.0.00.0070.01016.87
7.4.330.0050.00016.77
7.4.320.0030.00316.45
7.4.300.0030.00316.53
7.4.290.0080.00016.54
7.4.280.0000.00816.48
7.4.270.0030.00316.62
7.4.260.0030.00316.51
7.4.250.0000.00716.47
7.4.240.0020.00516.60
7.4.230.0030.00316.74
7.4.220.0090.00916.64
7.4.210.0100.00316.68
7.4.200.0000.00716.44
7.4.160.0080.00816.54
7.4.150.0120.00617.40
7.4.140.0140.01017.86
7.4.130.0100.01216.53
7.4.120.0060.01116.61
7.4.110.0170.00416.67
7.4.100.0160.00316.49
7.4.90.0110.01116.47
7.4.80.0070.01019.39
7.4.70.0130.00316.64
7.4.60.0110.00716.29
7.4.50.0050.00516.70
7.4.40.0140.00916.53
7.4.30.0160.00616.49
7.4.00.0080.00414.91
7.3.330.0050.00013.26
7.3.320.0000.00813.36
7.3.310.0000.00716.29
7.3.300.0050.00216.25
7.3.290.0100.00516.32
7.3.280.0100.00616.37
7.3.270.0040.01317.40
7.3.260.0060.01016.50
7.3.250.0110.00616.42
7.3.240.0100.00816.43
7.3.230.0140.00316.54
7.3.210.0140.00316.63
7.3.200.0060.00916.44
7.3.190.0080.01216.57
7.3.180.0100.01316.66
7.3.170.0100.00716.51
7.3.160.0110.01116.53
7.2.330.0130.01216.76
7.2.320.0100.01316.54
7.2.310.0080.00816.66
7.2.300.0120.00616.34
7.2.290.0060.01016.74
7.2.60.0030.01316.75
7.2.00.0060.00919.29
7.1.200.0030.00915.55
7.1.100.0030.00917.77
7.1.70.0000.00817.24
7.1.60.0100.01419.36
7.1.50.0090.00617.00
7.1.00.0070.07322.31
7.0.200.0000.00816.89
7.0.60.0130.05319.94
7.0.50.0070.07317.89
7.0.40.0130.07720.02
7.0.30.0230.03320.07
7.0.20.0270.05020.07
7.0.10.0100.05720.23
7.0.00.0030.07020.25
5.6.280.0000.03721.14
5.6.210.0100.08020.70
5.6.200.0100.07718.29
5.6.190.0070.05720.63
5.6.180.0530.06320.41
5.6.170.0300.05720.54
5.6.160.0070.06020.46
5.6.150.0000.04318.29
5.6.140.0030.05318.24
5.6.130.0170.07318.16
5.6.120.0100.06721.13
5.6.110.0170.07321.04
5.6.100.0070.06720.99
5.6.90.0130.08320.99
5.6.80.0100.07720.42
5.5.350.3670.04720.38
5.5.340.0030.04317.96
5.5.330.0030.08720.29
5.5.320.0070.04720.20
5.5.310.0130.04320.34
5.5.300.0100.07718.08
5.5.290.0070.07718.07
5.5.280.0130.06720.81
5.5.270.0100.07020.88
5.5.260.0000.06020.69
5.5.250.0030.07020.67
5.5.240.0200.07020.05

preferences:
53.07 ms | 401 KiB | 5 Q