3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = '[{"code":"18707498","date":"2019-01-23T16:58:01","totalPriceInCents":14450,"orderTotalPriceInCents":14450,"status":"PGTO_NAO_CONFIRMADO","availableForExchange":false,"paymentType":"CREDIT_CARD","installmentValueInCents":7225,"installmentsNumber":2,"paymentSummaries":[{"paymentType":"CREDIT_CARD","installmentsNumber":2,"installmentValueInCents":7225,"valueInCents":14450}],"hasGiftCard":false},{"code":"019741817156","date":"2017-06-11T19:09:06","totalPriceInCents":19110,"orderTotalPriceInCents":19110,"status":"ENTREGA_EFETUADA","availableForExchange":false,"paymentType":"CREDIT_CARD","installmentValueInCents":9555,"installmentsNumber":2,"paymentSummaries":[{"paymentType":"CREDIT_CARD","installmentsNumber":2,"installmentValueInCents":9555,"valueInCents":19110}],"hasGiftCard":false}]'; $json = json_decode($data, true); $available = count(array_filter(array_column($json, 'availableForExchange'))); echo "$available available for exchange\n";

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.0120.00519.28
8.5.20.0100.00719.39
8.5.10.0090.00816.73
8.5.00.0100.01120.02
8.4.180.0100.01119.42
8.4.170.0150.00820.43
8.4.160.0120.00920.70
8.4.150.0080.00516.82
8.4.140.0120.01117.77
8.4.130.0050.00418.92
8.4.120.0140.00524.14
8.4.110.0060.00920.87
8.4.100.0150.00817.60
8.4.90.0060.00318.68
8.4.80.0050.00419.50
8.4.70.0080.00817.73
8.4.60.0110.01018.59
8.4.50.0110.01217.66
8.4.40.0100.00619.22
8.4.30.0060.01617.54
8.4.20.0130.00720.74
8.4.10.0030.00617.30
8.3.300.0160.00520.59
8.3.290.0070.00321.00
8.3.280.0140.00618.49
8.3.270.0110.00816.23
8.3.260.0110.00816.62
8.3.250.0120.00419.11
8.3.240.0060.00317.23
8.3.230.0110.00916.45
8.3.220.0100.00817.29
8.3.210.0040.00416.73
8.3.200.0050.00416.70
8.3.190.0140.00516.88
8.3.180.0060.00318.34
8.3.170.0140.00418.82
8.3.160.0040.01418.26
8.3.150.0070.01117.00
8.3.140.0060.00318.39
8.3.130.0080.00018.21
8.3.120.0100.00020.77
8.3.110.0040.00416.50
8.3.100.0040.01124.06
8.3.90.0080.00026.77
8.3.80.0070.00316.38
8.3.70.0060.00916.58
8.3.60.0110.01118.45
8.3.50.0090.00917.41
8.3.40.0120.00318.49
8.3.30.0110.00418.67
8.3.20.0080.00020.74
8.3.10.0040.00423.66
8.3.00.0040.00423.36
8.2.300.0050.00620.51
8.2.290.0040.00422.33
8.2.280.0020.00719.76
8.2.270.0140.00417.37
8.2.260.0040.00418.76
8.2.250.0120.00416.57
8.2.240.0080.00017.31
8.2.230.0100.00020.94
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0030.00616.50
8.2.190.0040.01116.63
8.2.180.0080.00825.92
8.2.170.0040.01118.93
8.2.160.0070.01022.96
8.2.150.0070.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00226.16
8.2.110.0090.00021.04
8.2.100.0090.00317.72
8.2.90.0000.00817.84
8.2.80.0030.00517.97
8.2.70.0030.00617.80
8.2.60.0000.00718.09
8.2.50.0000.00818.10
8.2.40.0070.00019.36
8.2.30.0040.00419.30
8.2.20.0000.00717.95
8.2.10.0040.00419.32
8.2.00.0040.00418.19
8.1.340.0130.00820.13
8.1.330.0090.01021.73
8.1.320.0110.00816.35
8.1.310.0040.00416.47
8.1.300.0090.00018.27
8.1.290.0030.00630.84
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00619.27
8.1.230.0030.00721.04
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0080.00018.72
8.1.160.0070.00018.90
8.1.150.0000.00818.80
8.1.140.0040.00418.89
8.1.130.0070.00020.15
8.1.120.0070.00017.36
8.1.110.0040.00417.45
8.1.100.0080.00017.42
8.1.90.0000.00917.46
8.1.80.0030.00617.50
8.1.70.0000.00717.42
8.1.60.0040.00417.54
8.1.50.0050.00217.57
8.1.40.0060.00317.42
8.1.30.0030.00617.64
8.1.20.0030.00517.68
8.1.10.0000.00717.42
8.1.00.0040.00417.34
8.0.300.0040.00419.70
8.0.290.0000.00716.63
8.0.280.0030.00318.50
8.0.270.0000.00717.21
8.0.260.0000.00618.39
8.0.250.0030.00516.94
8.0.240.0080.00016.99
8.0.230.0030.00316.85
8.0.220.0000.00716.94
8.0.210.0030.00316.96
8.0.200.0060.00017.00
8.0.190.0000.00716.97
8.0.180.0080.00016.83
8.0.170.0080.00016.82
8.0.160.0070.00016.88
8.0.150.0040.00416.93
8.0.140.0030.00516.75
8.0.130.0030.00313.32
8.0.120.0030.00616.94
8.0.110.0050.00216.82
8.0.100.0050.00316.96
8.0.90.0070.00016.79
8.0.80.0090.00916.87
8.0.70.0070.00016.84
8.0.60.0040.00416.97
8.0.50.0000.00716.76
8.0.30.0100.00817.07
8.0.20.0100.01017.40
8.0.10.0000.00717.13
8.0.00.0100.01216.86
7.4.330.0040.00015.55
7.4.320.0040.00416.62
7.4.300.0030.00316.54
7.4.290.0030.00316.50
7.4.280.0030.00716.54
7.4.270.0030.00316.63
7.4.260.0030.00316.58
7.4.250.0000.00716.48
7.4.240.0000.00716.52
7.4.230.0040.00416.72
7.4.220.0080.00016.67
7.4.210.0110.00616.54
7.4.200.0000.00716.59
7.4.160.0080.00916.58
7.4.140.0100.01017.86
7.4.130.0030.01316.57
7.4.120.0120.00816.58
7.4.110.0070.01016.66
7.4.100.0070.01316.35
7.4.90.0100.00716.35
7.4.80.0090.01219.39
7.4.70.0060.01216.55
7.4.60.0100.01216.48
7.4.50.0100.00616.30
7.4.40.0140.00316.54
7.4.00.0100.00615.00
7.3.330.0020.00213.02
7.3.320.0000.00813.02
7.3.310.0070.00016.39
7.3.300.0000.00616.27
7.3.290.0030.00316.32
7.3.280.0060.01116.30
7.3.260.0110.00616.43
7.3.240.0120.00716.51
7.3.230.0090.01216.61
7.3.210.0170.00816.17
7.3.200.0080.00816.50
7.3.190.0100.00616.30
7.3.180.0130.00316.27
7.3.170.0030.01816.48
7.3.160.0040.01216.55
7.3.10.0500.00314.70
7.3.00.0410.00614.64
7.2.330.0110.00716.57
7.2.320.0160.00816.33
7.2.310.0090.00916.69
7.2.300.0100.00516.68
7.2.290.0100.00716.66
7.2.130.0510.00015.01
7.2.120.0380.00315.17
7.2.110.0450.00614.93
7.2.100.0410.00314.94
7.2.90.0340.00315.13
7.2.80.0420.00314.90
7.2.70.0420.00614.85
7.2.60.0360.00615.05
7.2.50.0360.00315.01
7.2.40.0330.00315.25
7.2.30.0370.00414.88
7.2.20.0410.00014.80
7.2.10.0300.01015.13
7.2.00.0230.01015.24
7.1.250.0400.00013.97

preferences:
44.95 ms | 1363 KiB | 5 Q