3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = '{"status":{"timestamp":"2020-09-26T12:59:24.147Z","error_code":0,"error_message":null,"elapsed":13,"credit_count":1,"notice":null},"data":{"BTC":{"id":1,"name":"Bitcoin","symbol":"BTC","slug":"bitcoin","num_market_pairs":9251,"date_added":"2013-04-28T00:00:00.000Z","tags":["mineable","pow","sha-256","store-of-value","state-channels"],"max_supply":21000000,"circulating_supply":18500450,"total_supply":18500450,"is_active":1,"platform":null,"cmc_rank":1,"is_fiat":0,"last_updated":"2020-09-26T12:58:38.000Z","quote":{"USD":{"price":10707.7229962,"volume_24h":20866014910.9822,"percent_change_1h":-0.156013,"percent_change_24h":0.675761,"percent_change_7d":-2.97789,"market_cap":198097693905.04828,"last_updated":"2020-09-26T12:58:38.000Z"}}}}}'; $rate = json_decode($response,true); #print_r($rate); echo $rate['data']['BTC']['quote']['USD']['price'];

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.4.130.0100.00717.68
8.4.120.0050.00323.96
8.4.110.0130.00818.86
8.4.100.0120.00717.67
8.4.90.0120.00420.37
8.4.80.0130.00717.81
8.4.70.0150.00617.70
8.4.60.0110.00717.55
8.4.50.0080.00218.61
8.4.40.0130.00319.27
8.4.30.0130.00620.41
8.4.20.0100.01017.80
8.4.10.0030.00620.66
8.3.260.0120.00716.37
8.3.250.0090.00916.58
8.3.240.0110.00817.17
8.3.230.0090.01016.80
8.3.220.0020.00518.83
8.3.210.0110.00516.49
8.3.200.0140.00516.59
8.3.190.0070.01216.13
8.3.180.0030.00516.65
8.3.170.0110.00718.52
8.3.160.0070.01020.57
8.3.150.0110.00718.35
8.3.140.0120.00616.98
8.3.130.0040.00418.32
8.3.120.0030.00620.77
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0030.00616.50
8.3.70.0100.00716.58
8.3.60.0170.00316.63
8.3.50.0100.00824.51
8.3.40.0150.00320.34
8.3.30.0040.01118.65
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00920.66
8.2.280.0120.00718.55
8.2.270.0070.01117.14
8.2.260.0040.01518.51
8.2.250.0040.00418.77
8.2.240.0080.00019.14
8.2.230.0080.00822.58
8.2.220.0030.00537.54
8.2.210.0120.00626.77
8.2.200.0000.00916.59
8.2.190.0070.01016.58
8.2.180.0060.00925.92
8.2.170.0040.01118.91
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00026.35
8.2.110.0000.00920.41
8.2.100.0090.00317.66
8.2.90.0060.00317.97
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0080.00018.05
8.2.40.0060.00319.91
8.2.30.0040.00418.11
8.2.20.0050.00218.11
8.2.10.0000.00719.17
8.2.00.0000.00719.16
8.1.330.0100.00921.98
8.1.320.0110.00816.14
8.1.310.0120.00618.30
8.1.300.0030.00619.63
8.1.290.0030.00630.84
8.1.280.0140.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00428.09
8.1.250.0060.00628.09
8.1.240.0070.01022.57
8.1.230.0060.00622.82
8.1.220.0040.00417.76
8.1.210.0030.00518.77
8.1.200.0050.00317.22
8.1.190.0000.00917.22
8.1.180.0030.00618.10
8.1.170.0050.00218.93
8.1.160.0000.00818.73
8.1.150.0000.00718.73
8.1.140.0000.00718.70
8.1.130.0070.00019.99
8.1.120.0040.00417.39
8.1.110.0040.00417.25
8.1.100.0070.00017.40
8.1.90.0000.00817.30
8.1.80.0030.00717.41
8.1.70.0040.00417.42
8.1.60.0030.00617.55
8.1.50.0050.00317.36
8.1.40.0040.00417.52
8.1.30.0040.00417.55
8.1.20.0060.00217.53
8.1.10.0060.00217.58
8.1.00.0030.00617.39
8.0.300.0040.00419.95
8.0.290.0000.00716.63
8.0.280.0070.00018.40
8.0.270.0030.00318.00
8.0.260.0030.00318.41
8.0.250.0030.00316.92
8.0.240.0040.00416.83
8.0.230.0040.00416.86
8.0.220.0040.00416.70
8.0.210.0030.00316.70
8.0.200.0060.00016.77
8.0.190.0080.00016.90
8.0.180.0030.00316.89
8.0.170.0040.00416.84
8.0.160.0030.00516.73
8.0.150.0030.00516.77
8.0.140.0030.00516.78
8.0.130.0020.00614.92
8.0.120.0040.00416.83
8.0.110.0020.00616.69
8.0.100.0040.00316.68
8.0.90.0070.00016.80
8.0.80.0060.00716.75
8.0.70.0040.00416.80
8.0.60.0070.00016.82
8.0.50.0060.00216.81
8.0.30.0070.00516.91
8.0.20.0110.00716.90
8.0.10.0030.00416.88
8.0.00.0060.01016.83
7.4.330.0050.00015.55
7.4.320.0020.00516.50
7.4.300.0000.00616.53
7.4.290.0030.00316.53
7.4.280.0020.00616.52
7.4.270.0060.00216.38
7.4.260.0020.00414.92
7.4.250.0000.00716.36
7.4.240.0000.00716.49
7.4.230.0070.00016.44
7.4.220.0040.00416.58
7.4.210.0050.00716.48
7.4.200.0050.00316.56
7.4.190.0040.00516.48
7.4.180.0080.00016.39
7.4.160.0000.00716.50
7.4.150.0030.00316.38
7.4.140.0030.00316.35
7.4.130.0100.00616.52
7.4.120.0050.00816.52
7.4.110.0070.00616.35
7.4.100.0110.00116.45
7.4.90.0090.00316.39
7.4.80.0040.00916.50
7.4.70.0030.00916.38
7.4.60.0040.00916.36
7.4.50.0080.00416.29
7.4.40.0090.00416.31
7.4.30.0080.00416.51
7.4.20.0090.00516.56
7.4.10.0070.00516.29
7.4.00.0050.00816.53
7.3.330.0100.00316.03
7.3.320.0120.00114.55
7.3.310.0070.00716.13
7.3.300.0130.00316.15
7.3.290.0060.01216.22
7.3.280.0170.00316.37
7.3.270.0140.00516.21
7.3.260.0170.00216.33
7.3.250.0130.00916.02
7.3.240.0160.00316.21
7.3.230.0090.01116.18
7.3.220.0170.00116.16
7.3.210.0100.00816.21
7.3.200.0160.00316.13
7.3.190.0120.00616.34
7.3.180.0140.00516.25
7.3.170.0140.00416.07
7.3.160.0140.00416.22
7.3.150.0120.00716.15
7.3.140.0160.00316.31
7.3.130.0130.00416.16
7.3.120.0150.00416.23
7.3.110.0170.00316.14
7.3.100.0120.00616.17
7.3.90.0090.00916.38
7.3.80.0130.00516.18
7.3.70.0120.00616.29
7.3.60.0100.00716.20
7.3.50.0140.00416.23
7.3.40.0120.00716.32
7.3.30.0180.00216.40
7.3.20.0090.00916.21
7.3.10.0120.00716.22
7.3.00.0240.00816.15
7.2.340.0190.00016.17
7.2.330.0140.00716.39
7.2.320.0150.00316.47
7.2.310.0130.00616.51
7.2.300.0160.00216.45
7.2.290.0120.00916.51
7.2.280.0100.00816.25
7.2.270.0140.00416.38
7.2.260.0150.00216.53
7.2.250.0110.00716.38
7.2.240.0100.00916.36
7.2.230.0120.00816.50
7.2.220.0140.00416.39
7.2.210.0090.00816.28
7.2.200.0080.01216.41
7.2.190.0080.01116.57
7.2.180.0110.00816.42
7.2.170.0160.00316.47
7.2.160.0160.00316.40
7.2.150.0120.00616.46
7.2.140.0110.00816.56
7.2.130.0110.00816.63
7.2.120.0090.00916.57
7.2.110.0070.01116.55
7.2.100.0080.01116.61
7.2.90.0150.00416.33
7.2.80.0090.00916.55
7.2.70.0140.00516.48
7.2.60.0100.00916.57
7.2.50.0170.00316.55
7.2.40.0110.00916.66
7.2.30.0170.00416.52
7.2.20.0100.00916.35
7.2.10.0100.01016.64
7.2.00.0120.00616.45

preferences:
30.04 ms | 403 KiB | 5 Q