3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = ['id', 'creditcard', 'annualfee', 'regularapr', 'purchaseapr', 'balancetransferapr']; $data = [ 'id', 'creditcard', 'annualfee', 'regularapr', 'purchaseapr', 'balancetransferapr', '1', 'Discover it Cash Back', '$10', '11.99% - 22.99% variable', '0% for 14 months Valin Link', '0% for 14 months', '2', 'Chase Freedom Unlimited', '$20', '22.99 - 22.74% Variable', '0% Intro APR on Purchases for 15 months', 'N/A', ]; $chunks = array_chunk($data, count($keys)); // throw away first chunk as it holds filed names array_shift($chunks); $result = []; foreach ($chunks as $chunk) { $result[] = array_combine($keys, $chunk); } print_r($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.5.30.0080.01019.48
8.5.20.0110.00719.50
8.5.10.0130.00416.83
8.5.00.0160.01220.02
8.4.180.0130.01022.17
8.4.170.0120.01023.88
8.4.160.0140.00922.36
8.4.150.0080.00416.87
8.4.140.0100.01217.79
8.4.130.0050.00418.69
8.4.120.0120.01123.91
8.4.110.0070.00318.04
8.4.100.0060.00317.90
8.4.90.0100.01118.68
8.4.80.0070.00218.83
8.4.70.0120.00917.96
8.4.60.0110.00918.83
8.4.50.0060.00417.67
8.4.40.0120.00620.26
8.4.30.0100.00920.46
8.4.20.0160.00318.82
8.4.10.0090.00017.80
8.3.300.0100.01120.69
8.3.290.0130.01120.80
8.3.280.0160.00618.55
8.3.270.0160.00516.76
8.3.260.0130.00616.63
8.3.250.0110.00818.88
8.3.240.0090.01016.97
8.3.230.0110.00816.61
8.3.220.0040.00717.02
8.3.210.0020.00616.63
8.3.200.0090.01016.69
8.3.190.0090.01017.02
8.3.180.0090.00916.92
8.3.170.0040.00417.40
8.3.160.0090.00916.66
8.3.150.0090.00917.35
8.3.140.0080.00020.81
8.3.130.0060.00318.51
8.3.120.0070.01420.70
8.3.110.0090.00020.94
8.3.100.0080.00324.06
8.3.90.0060.00326.77
8.3.80.0040.00416.63
8.3.70.0040.01118.18
8.3.60.0210.00018.56
8.3.50.0070.00717.98
8.3.40.0070.00719.23
8.3.30.0120.00318.68
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0090.00026.16
8.2.300.0100.00823.83
8.2.290.0070.00222.40
8.2.280.0080.01118.49
8.2.270.0100.01016.36
8.2.260.0060.00817.16
8.2.250.0080.00818.14
8.2.240.0040.00418.71
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0040.00416.75
8.2.190.0070.01116.63
8.2.180.0100.01025.92
8.2.170.0040.01818.92
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.05
8.2.110.0120.00920.20
8.2.100.0070.00417.84
8.2.90.0000.00719.36
8.2.80.0000.00817.97
8.2.70.0040.00717.63
8.2.60.0000.01018.03
8.2.50.0050.00318.07
8.2.40.0000.00718.22
8.2.30.0040.00418.19
8.2.20.0060.00318.04
8.2.10.0070.00019.32
8.2.00.0040.00419.16
8.1.340.0150.00717.46
8.1.330.0130.00522.25
8.1.320.0080.00615.92
8.1.310.0170.00016.55
8.1.300.0040.01217.78
8.1.290.0090.00018.88
8.1.280.0130.00625.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0070.00728.09
8.1.240.0060.00320.78
8.1.230.0070.00318.99
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00517.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00018.95
8.1.160.0040.00318.89
8.1.150.0040.00418.94
8.1.140.0000.00718.85
8.1.130.0000.00720.05
8.1.120.0050.00217.37
8.1.110.0000.00917.40
8.1.100.0070.00417.45
8.1.90.0040.00417.35
8.1.80.0040.00417.36
8.1.70.0030.00517.50
8.1.60.0040.00417.45
8.1.50.0070.00017.43
8.1.40.0070.00317.50
8.1.30.0080.00017.65
8.1.20.0040.00417.64
8.1.10.0040.00717.44
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.49
8.0.270.0000.00717.97
8.0.260.0020.00518.62
8.0.250.0060.00016.98
8.0.240.0000.00816.86
8.0.230.0030.00316.84
8.0.220.0000.00716.88
8.0.210.0040.00416.78
8.0.200.0000.00716.96
8.0.190.0080.00016.98
8.0.180.0020.00516.82
8.0.170.0000.00816.75
8.0.160.0000.00816.79
8.0.150.0030.00516.92
8.0.140.0040.00416.88
8.0.130.0000.00613.36
8.0.120.0040.00416.86
8.0.110.0060.00316.97
8.0.100.0000.00716.86
8.0.90.0000.00816.86
8.0.80.0070.01216.96
8.0.70.0140.00716.92
8.0.60.0120.00916.79
8.0.50.0120.00916.78
8.0.30.0120.00916.87
8.0.20.0160.00616.99
8.0.10.0090.00616.96
8.0.00.0170.00317.03
7.4.330.0060.00015.55
7.4.320.0030.00316.54
7.4.300.0000.00616.66
7.4.290.0040.00416.57
7.4.280.0040.00716.59
7.4.270.0000.00816.51
7.4.260.0060.00013.29
7.4.250.0040.00416.48
7.4.240.0060.00216.59
7.4.230.0000.00716.61
7.4.220.0030.00316.49
7.4.210.0090.00816.64
7.4.200.0130.00616.61
7.4.190.0030.01616.62
7.4.180.0110.01116.54
7.4.160.0040.01116.50
7.4.150.0070.01116.62
7.4.140.0040.01016.39
7.4.130.0040.01216.57
7.4.120.0130.00316.64
7.4.110.0070.00716.51
7.4.100.0120.00316.64
7.4.90.0120.00816.54
7.4.80.0160.00316.36
7.4.70.0030.01616.34
7.4.60.0100.01016.40
7.4.50.0100.01016.36
7.4.40.0130.00716.58
7.4.30.0030.01716.57
7.4.20.0110.00916.48
7.4.10.0160.00316.43
7.4.00.0130.00616.35
7.3.330.0040.00416.32
7.3.320.0030.00313.16
7.3.310.0060.00016.07
7.3.300.0030.00316.30
7.3.290.0050.01116.29
7.3.280.0040.01116.36
7.3.270.0100.01016.30
7.3.260.0030.01016.29
7.3.250.0030.01016.27
7.3.240.0120.00316.28
7.3.230.0060.00916.21
7.3.220.0090.00616.14
7.3.210.0060.01316.23
7.3.200.0100.01016.22
7.3.190.0190.00016.19
7.3.180.0100.01016.13
7.3.170.0130.00316.13
7.3.160.0100.01016.25
7.3.150.0070.01016.19
7.3.140.0090.01616.19
7.3.130.0040.01116.16
7.3.120.0090.00516.34
7.3.110.0000.01416.14
7.3.100.0040.01116.09
7.3.90.0030.01016.49
7.3.80.0110.00316.17
7.3.70.0120.00316.36
7.3.60.0090.01416.43
7.3.50.0060.00916.31
7.3.40.0110.00416.36
7.3.30.0090.00616.38
7.3.20.0060.00916.45
7.3.10.0060.00916.28
7.3.00.0060.01016.30

preferences:
318.15 ms | 1534 KiB | 5 Q