3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = \Eway\Rapid::createClient($apiKey, $apiPassword, $apiEndpoint); $transaction = [ 'Customer' => [ 'CardDetails' => [ 'Name' => 'John Smith', 'Number' => '4444333322221111', 'ExpiryMonth' => '12', 'ExpiryYear' => '25', 'CVN' => '123', ] ], 'Payment' => [ 'TotalAmount' => 1000, ], 'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE, ]; $response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction);

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.0150.00316.73
8.3.50.0070.00718.18
8.3.40.0110.00419.02
8.3.30.0120.00318.86
8.3.20.0000.00720.09
8.3.10.0040.00423.66
8.3.00.0000.01119.26
8.2.180.0180.00416.50
8.2.170.0090.00922.96
8.2.160.0060.00620.38
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00420.52
8.2.120.0080.00026.35
8.2.110.0000.01020.51
8.2.100.0090.00317.91
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0030.00617.80
8.2.50.0050.00318.07
8.2.40.0030.00621.02
8.2.30.0070.00020.61
8.2.20.0000.01017.68
8.2.10.0040.00417.87
8.2.00.0000.00717.96
8.1.280.0090.01325.92
8.1.270.0080.00023.96
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00723.91
8.1.230.0120.00020.90
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0080.00017.40
8.1.180.0070.00018.10
8.1.170.0030.00518.43
8.1.160.0070.00321.86
8.1.150.0000.00818.75
8.1.140.0060.00319.48
8.1.130.0030.00317.58
8.1.120.0000.00717.32
8.1.110.0040.00417.36
8.1.100.0070.00317.41
8.1.90.0050.00217.22
8.1.80.0030.00517.25
8.1.70.0030.00317.21
8.1.60.0060.00317.37
8.1.50.0040.00417.35
8.1.40.0070.00317.50
8.1.30.0040.00417.57
8.1.20.0060.00317.57
8.1.10.0000.00817.51
8.1.00.0000.00717.46
8.0.300.0100.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00717.26
8.0.260.0050.00317.21
8.0.250.0000.00717.00
8.0.240.0040.00416.98
8.0.230.0030.00316.84
8.0.220.0050.00316.79
8.0.210.0060.00316.83
8.0.200.0000.00716.94
8.0.190.0050.00516.91
8.0.180.0000.00816.94
8.0.170.0070.00016.90
8.0.160.0030.00316.91
8.0.150.0050.00516.80
8.0.140.0080.00416.78
8.0.130.0030.00313.31
8.0.120.0030.00616.85
8.0.110.0040.00416.85
8.0.100.0040.00416.83
8.0.90.0000.00716.88
8.0.80.0060.00916.81
8.0.70.0000.00716.66
8.0.60.0040.00416.74
8.0.50.0000.00716.93
8.0.30.0130.00817.17
8.0.20.0140.01017.40
8.0.10.0000.00716.82
8.0.00.0090.00916.68
7.4.330.0020.00216.77
7.4.320.0040.00416.38
7.4.300.0040.00416.45
7.4.290.0000.00616.59
7.4.280.0030.00616.45
7.4.270.0000.00716.58
7.4.260.0000.00513.23
7.4.250.0070.00016.52
7.4.240.0000.00716.40
7.4.230.0000.00716.64
7.4.220.0100.01016.38
7.4.210.0080.00616.41
7.4.200.0070.00016.34
7.4.160.0080.00816.55
7.4.150.0070.01017.40
7.4.140.0160.00517.86
7.4.130.0050.01416.54
7.4.120.0140.00416.48
7.4.110.0090.00916.52
7.4.100.0100.00716.40
7.4.90.0140.00216.50
7.4.80.0090.00919.39
7.4.70.0120.00916.45
7.4.60.0060.01216.49
7.4.50.0060.00616.35
7.4.40.0140.00316.75
7.4.30.0130.01016.55
7.4.00.0060.01014.81
7.3.330.0070.00013.16
7.3.320.0000.00613.13
7.3.310.0030.00516.32
7.3.300.0070.00016.30
7.3.290.0040.01016.28
7.3.280.0070.01016.25
7.3.270.0130.00317.40
7.3.260.0120.00616.28
7.3.250.0140.00616.33
7.3.240.0120.00516.24
7.3.230.0130.00616.45
7.3.210.0100.00716.32
7.3.200.0120.00916.48
7.3.190.0080.00916.30
7.3.180.0130.00616.25
7.3.170.0090.00916.27
7.3.160.0000.01716.47
7.3.120.0090.00614.87
7.3.110.0000.01514.84
7.3.100.0070.00714.47
7.3.90.0060.00614.50
7.3.80.0070.00714.76
7.3.70.0040.01414.87
7.3.60.0070.00714.49
7.3.50.0000.01114.66
7.3.40.0040.01114.89
7.3.30.0040.00414.54
7.3.20.0030.01016.28
7.3.10.0060.00616.64
7.3.00.0120.00016.45
7.2.330.0140.00316.44
7.2.320.0090.01216.56
7.2.310.0080.01116.55
7.2.300.0120.00616.45
7.2.290.0070.01016.34
7.2.250.0070.01015.00
7.2.240.0030.01615.07
7.2.230.0060.00914.64
7.2.220.0030.01314.80
7.2.210.0000.01514.73
7.2.200.0130.00314.64
7.2.190.0070.00714.91
7.2.180.0060.00814.97
7.2.170.0000.01214.85
7.2.60.0070.00716.84
7.2.00.0090.00319.06
7.1.330.0040.00915.39
7.1.320.0000.01615.69
7.1.310.0040.00815.55
7.1.300.0030.00915.70
7.1.290.0030.01315.62
7.1.280.0060.01015.71
7.1.270.0040.01115.76
7.1.260.0070.00415.68
7.1.200.0000.01315.65
7.1.100.0070.00717.73
7.1.70.0000.00916.95
7.1.60.0120.00919.36
7.1.50.0120.00916.86
7.1.00.0100.07022.33
7.0.200.0030.00716.69
7.0.60.0200.07019.89
7.0.50.0100.08017.66
7.0.40.0070.04720.27
7.0.30.0300.04020.04
7.0.20.0230.07020.13
7.0.10.0000.05020.00
7.0.00.0070.07720.08
5.6.280.0070.04321.00
5.6.210.0070.08020.75
5.6.200.0170.05718.19
5.6.190.0030.04320.49
5.6.180.0500.07320.78
5.6.170.0230.06320.42
5.6.160.0130.06020.38
5.6.150.0070.04018.20
5.6.140.0030.08318.14
5.6.130.0030.04018.18
5.6.120.0030.07721.01
5.6.110.0130.07721.11
5.6.100.0070.04020.88
5.6.90.0070.07720.94
5.6.80.0030.04020.54
5.5.350.0170.05720.41
5.5.340.0000.08017.89
5.5.330.0170.07720.19
5.5.320.0000.05020.24
5.5.310.0300.04720.34
5.5.300.0100.07718.02
5.5.290.0000.04317.98
5.5.280.0070.04020.73
5.5.270.0000.06320.76
5.5.260.0070.09020.89
5.5.250.0070.07020.59
5.5.240.0170.07720.36

preferences:
34.38 ms | 400 KiB | 5 Q