3v4l.org

run code in 300+ PHP versions simultaneously
<?php $getBitstampPrice = getPrice('https://www.bitstamp.net/api/v2/ticker/btcusd/'); $btcValues[2] = $getBitstampPrice['last']; //get from blockchain $getBlockchainPrice = getPrice('https://blockchain.info/ticker'); $btcValues[3] = $getBlockchainPrice['USD']['last']; //get from cytptonator $getCtyptonatorPrice = getPrice('https://api.cryptonator.com/api/ticker/btc-usd'); $btcValues[4] = $getCtyptonatorPrice['ticker']['price']; $total=0; for ($i=0; $i < count($btcValues[$i]); $i++) { $total +=$btcValues[$i]; } $average = $total/count($btcValues[$i]); return $average;

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.0110.00716.38
8.3.50.0040.01118.00
8.3.40.0110.00718.87
8.3.30.0110.00418.71
8.3.20.0070.00021.85
8.3.10.0040.00423.45
8.3.00.0090.00023.65
8.2.180.0040.01116.98
8.2.170.0080.00822.96
8.2.160.0090.00620.10
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.89
8.2.120.0110.00426.35
8.2.110.0030.00720.52
8.2.100.0050.00617.72
8.2.90.0030.00619.64
8.2.80.0000.00819.36
8.2.70.0060.00317.63
8.2.60.0040.00417.88
8.2.50.0040.00418.07
8.2.40.0050.00318.04
8.2.30.0040.00418.00
8.2.20.0000.00717.90
8.2.10.0050.00318.08
8.2.00.0040.00417.89
8.1.280.0070.00725.92
8.1.270.0080.00022.19
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.45
8.1.230.0080.00422.74
8.1.220.0080.00017.74
8.1.210.0000.00818.96
8.1.200.0100.00017.22
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0040.00418.50
8.1.160.0030.00518.74
8.1.150.0040.00420.22
8.1.140.0040.00417.57
8.1.130.0070.00019.03
8.1.120.0000.00817.40
8.1.110.0000.00717.31
8.1.100.0050.00317.38
8.1.90.0080.00017.32
8.1.80.0030.00517.22
8.1.70.0000.00717.28
8.1.60.0060.00317.37
8.1.50.0060.00317.38
8.1.40.0000.00717.40
8.1.30.0000.00917.63
8.1.20.0000.00817.61
8.1.10.0050.00217.52
8.1.00.0030.00517.34
8.0.300.0000.00819.91
8.0.290.0000.00716.75
8.0.280.0070.00018.41
8.0.270.0070.00017.09
8.0.260.0030.00316.88
8.0.250.0070.00016.99
8.0.240.0040.00416.93
8.0.230.0000.00716.98
8.0.220.0040.00416.89
8.0.210.0070.00016.77
8.0.200.0000.00717.02
8.0.190.0030.00516.90
8.0.180.0080.00016.91
8.0.170.0040.00416.96
8.0.160.0040.00417.00
8.0.150.0030.00316.89
8.0.140.0050.00316.77
8.0.130.0000.00713.30
8.0.120.0000.00716.84
8.0.110.0000.00716.95
8.0.100.0030.00616.79
8.0.90.0040.00416.79
8.0.80.0070.01016.94
8.0.70.0080.00016.78
8.0.60.0040.00416.98
8.0.50.0040.00416.74
8.0.30.0100.01017.03
8.0.20.0070.01317.40
8.0.10.0000.00816.93
8.0.00.0090.00916.61
7.4.330.0030.00315.55
7.4.320.0030.00316.40
7.4.300.0030.00316.61
7.4.290.0030.00316.40
7.4.280.0030.00616.45
7.4.270.0070.00016.48
7.4.260.0030.00316.40
7.4.250.0030.00316.53
7.4.240.0040.00416.58
7.4.230.0000.00716.36
7.4.220.0040.00416.40
7.4.210.0050.01216.60
7.4.200.0080.00016.26
7.4.160.0120.00816.54
7.4.140.0140.00517.86
7.4.130.0100.00716.56
7.4.120.0080.01316.45
7.4.110.0100.01416.46
7.4.100.0100.01016.77
7.4.90.0150.00316.27
7.4.80.0080.01119.39
7.4.70.0080.00816.40
7.4.60.0140.00316.42
7.4.50.0030.01216.37
7.4.40.0100.00616.40
7.4.00.0000.01114.83
7.3.330.0030.00313.05
7.3.320.0030.00313.06
7.3.310.0030.00316.35
7.3.300.0070.00016.29
7.3.290.0100.00316.34
7.3.280.0100.00616.36
7.3.260.0150.00816.41
7.3.250.0110.00816.41
7.3.240.0100.01216.32
7.3.230.0100.00716.60
7.3.210.0130.00316.38
7.3.200.0100.00716.24
7.3.190.0050.01016.50
7.3.180.0030.01316.54
7.3.170.0130.00316.24
7.3.160.0120.01216.40
7.3.120.0070.01017.15
7.3.110.0070.01017.15
7.3.100.0130.00317.15
7.3.90.0030.01017.15
7.3.80.0030.00717.15
7.3.70.0030.00617.15
7.3.60.0070.00717.15
7.3.50.0110.00417.15
7.3.40.0100.00617.15
7.3.30.0030.01017.15
7.3.20.0130.00317.15
7.3.10.0080.00317.15
7.3.00.0030.01217.15
7.2.330.0000.01716.41
7.2.320.0100.01316.27
7.2.310.0130.00516.25
7.2.300.0040.01516.22
7.2.290.0090.00916.52
7.2.240.0140.00317.15
7.2.230.0090.00017.15
7.2.220.0070.00717.15
7.2.210.0100.00717.15
7.2.200.0040.01217.15
7.2.190.0090.00617.15
7.2.180.0100.00717.15
7.2.170.0030.01317.15
7.2.160.0120.00317.15
7.2.150.0040.01517.15
7.2.140.0070.01117.15
7.2.130.0120.00417.15
7.2.120.0100.00717.15
7.2.110.0070.00317.15
7.2.100.0080.00617.15
7.2.90.0060.01217.15
7.2.80.0070.00717.15
7.2.70.0070.00717.15
7.2.60.0090.00417.03
7.2.50.0060.00317.15
7.2.40.0120.00317.15
7.2.30.0130.00617.45
7.2.20.0070.00917.49
7.2.10.0100.01017.51
7.2.00.0070.01117.53
7.1.330.0140.00017.15
7.1.320.0070.01017.15
7.1.310.0040.00817.15
7.1.300.0030.00917.15
7.1.290.0030.01017.15
7.1.280.0040.01117.15
7.1.270.0060.00817.15
7.1.260.0070.01017.15
7.1.250.0070.00717.15
7.1.200.0100.00315.41
7.1.150.0110.00916.62
7.1.140.0150.01116.44
7.1.130.0100.01516.41
7.1.120.0110.00916.63
7.1.110.0090.00916.30
7.1.100.0130.01116.11
7.1.90.0110.01416.32
7.1.80.0090.00816.14
7.1.70.0130.00815.31
7.1.60.0500.01533.14
7.1.50.0290.01032.58
7.1.40.0250.01532.55
7.1.30.0320.01632.39
7.1.20.0320.01632.61
7.1.10.0100.00814.46
7.1.00.0160.01114.83

preferences:
56.22 ms | 401 KiB | 5 Q