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.5.00.0100.01220.26
8.4.150.0030.00014.05
8.4.140.0140.00717.73
8.4.130.0110.01020.50
8.4.120.0140.00717.74
8.4.110.0190.00718.40
8.4.100.0180.00817.73
8.4.90.0180.00618.46
8.4.80.0150.00617.90
8.4.70.0170.00719.26
8.4.60.0170.00818.61
8.4.50.0180.00518.00
8.4.40.0180.00717.79
8.4.30.0200.00418.66
8.4.20.0170.00818.28
8.4.10.0150.00418.21
8.3.280.0130.00618.51
8.3.270.0090.01016.59
8.3.260.0050.00416.61
8.3.250.0130.00718.56
8.3.240.0120.00516.73
8.3.230.0160.00617.24
8.3.220.0160.00617.29
8.3.210.0170.00616.54
8.3.200.0140.00516.72
8.3.190.0160.00617.40
8.3.180.0150.00516.47
8.3.170.0170.00716.70
8.3.160.0180.00617.26
8.3.150.0190.00517.22
8.3.140.0170.00316.53
8.3.130.0170.00116.52
8.3.120.0140.00417.31
8.3.110.0140.00417.95
8.3.100.0150.00419.09
8.3.90.0160.00419.82
8.3.80.0160.00417.19
8.3.70.0160.00617.11
8.3.60.0180.00516.58
8.3.50.0120.00917.72
8.3.40.0160.00517.81
8.3.30.0140.00618.47
8.3.20.0140.00418.90
8.3.10.0130.00419.32
8.3.00.0110.00519.48
8.2.290.0150.00516.58
8.2.280.0140.00617.91
8.2.270.0150.00516.58
8.2.260.0140.00416.64
8.2.250.0160.00217.20
8.2.240.0130.00417.33
8.2.230.0140.00318.39
8.2.220.0150.00424.12
8.2.210.0170.00319.87
8.2.200.0140.00716.38
8.2.190.0170.00516.70
8.2.180.0130.00716.64
8.2.170.0160.00519.20
8.2.160.0150.00418.34
8.2.150.0130.00420.19
8.2.140.0120.00619.79
8.2.130.0140.00518.46
8.2.120.0170.00420.29
8.2.110.0140.00519.10
8.2.100.0140.00517.49
8.2.90.0130.00518.20
8.2.80.0110.00618.59
8.2.70.0130.00417.48
8.2.60.0140.00417.65
8.2.50.0140.00317.61
8.2.40.0120.00417.68
8.2.30.0130.00417.62
8.2.20.0140.00718.11
8.2.10.0170.00617.48
8.2.00.0200.00617.61
8.1.330.0210.00816.11
8.1.320.0200.00816.33
8.1.310.0180.00616.34
8.1.300.0190.00316.16
8.1.290.0130.00717.69
8.1.280.0200.00619.32
8.1.270.0200.00318.81
8.1.260.0200.00420.15
8.1.250.0200.00420.77
8.1.240.0200.00319.51
8.1.230.0190.00619.13
8.1.220.0210.00417.33
8.1.210.0160.00618.31
8.1.200.0140.00417.08
8.1.190.0160.00517.06
8.1.180.0170.00617.92
8.1.170.0170.00518.18
8.1.160.0160.00417.59
8.1.150.0160.00518.20
8.1.140.0180.00417.10
8.1.130.0180.00417.76
8.1.120.0160.00717.84
8.1.110.0150.00717.15
8.1.100.0150.00417.17
8.1.90.0200.00317.20
8.1.80.0170.00617.03
8.1.70.0160.00717.13
8.1.60.0200.00417.27
8.1.50.0190.00517.12
8.1.40.0150.00817.20
8.1.30.0190.00717.47
8.1.20.0140.00918.06
8.1.10.0140.00417.37
8.1.00.0110.00517.86
8.0.300.0120.00717.63
8.0.290.0180.00516.52
8.0.280.0190.00417.10
8.0.270.0190.00316.63
8.0.260.0170.00516.67
8.0.250.0180.00416.59
8.0.240.0140.00816.70
8.0.230.0160.00716.67
8.0.220.0180.00616.64
8.0.210.0200.00416.53
8.0.200.0180.00516.73
8.0.190.0170.00616.67
8.0.180.0190.00316.67
8.0.170.0180.00516.66
8.0.160.0180.00616.74
8.0.150.0180.00516.49
8.0.140.0160.00617.18
8.0.130.0160.00516.06
8.0.120.0140.00516.61
8.0.110.0100.00516.69
8.0.100.0110.00517.17
8.0.90.0120.00316.59
8.0.80.0130.00716.66
8.0.70.0110.00516.53
8.0.60.0110.00416.61
8.0.50.0110.00416.41
8.0.30.0120.00816.90
8.0.20.0120.00817.47
8.0.10.0130.00416.52
8.0.00.0140.00716.59
7.4.330.0120.00415.88
7.4.320.0110.00516.20
7.4.300.0130.00216.24
7.4.290.0110.00516.19
7.4.280.0110.00416.28
7.4.270.0130.00316.27
7.4.260.0130.00316.19
7.4.250.0110.00416.22
7.4.240.0140.00416.24
7.4.230.0120.00416.29
7.4.220.0100.00516.24
7.4.210.0110.00816.36
7.4.200.0150.00216.17
7.4.190.0160.00416.09
7.4.180.0160.00516.10
7.4.160.0130.00716.41
7.4.150.0160.00415.88
7.4.140.0140.00517.21
7.4.130.0130.00516.23
7.4.120.0110.01016.36
7.4.110.0160.00616.12
7.4.100.0150.00616.32
7.4.90.0150.00516.18
7.4.80.0130.00617.25
7.4.70.0150.00616.04
7.4.60.0160.00416.73
7.4.50.0110.00716.08
7.4.40.0120.00616.12
7.4.30.0160.00315.97
7.4.20.0160.00216.13
7.4.10.0140.00515.91
7.4.00.0090.00716.15
7.3.330.0110.00414.83
7.3.320.0110.00414.87
7.3.310.0140.00316.08
7.3.300.0130.00216.09
7.3.290.0130.00516.18
7.3.280.0120.00616.25
7.3.270.0140.00515.81
7.3.260.0160.00616.28
7.3.250.0130.00616.15
7.3.240.0130.00816.13
7.3.230.0150.00516.12
7.3.220.0160.00416.11
7.3.210.0140.00516.06
7.3.200.0140.00515.98
7.3.190.0110.00716.06
7.3.180.0120.00616.09
7.3.170.0150.00316.37
7.3.160.0180.00516.50
7.3.150.0160.00415.87
7.3.140.0160.00315.84
7.3.130.0150.00515.94
7.3.120.0120.00616.35
7.3.110.0130.00516.22
7.3.100.0130.00516.20
7.3.90.0120.00516.44
7.3.80.0120.00516.28
7.3.70.0110.00516.31
7.3.60.0130.00516.12
7.3.50.0140.00316.43
7.3.40.0140.00516.31
7.3.30.0110.00616.38
7.3.20.0170.00417.65
7.3.10.0180.00417.45
7.3.00.0150.00517.54
7.2.340.0130.00515.87
7.2.330.0090.00916.08
7.2.320.0140.00715.96
7.2.310.0150.00415.84
7.2.300.0110.00716.05
7.2.290.0110.00716.04
7.2.280.0160.00416.87
7.2.270.0150.00415.90
7.2.260.0130.00516.01
7.2.250.0150.00315.82
7.2.240.0150.00416.23
7.2.230.0120.00416.29
7.2.220.0100.00716.33
7.2.210.0140.00516.24
7.2.200.0110.00716.39
7.2.190.0130.00516.36
7.2.180.0130.00516.27
7.2.170.0110.00616.50
7.2.160.0130.00416.34
7.2.150.0140.00717.79
7.2.140.0100.00817.66
7.2.130.0160.00417.82
7.2.120.0140.00617.82
7.2.110.0130.00417.66
7.2.100.0160.00517.63
7.2.90.0130.00717.59
7.2.80.0120.00617.80
7.2.70.0140.00417.75
7.2.60.0140.00417.43
7.2.50.0120.00417.67
7.2.40.0170.00317.74
7.2.30.0140.00517.64
7.2.20.0120.00617.72
7.2.10.0110.00817.84
7.2.00.0130.00717.78
7.1.330.0140.00216.92
7.1.320.0130.00716.93
7.1.310.0110.00516.97
7.1.300.0120.00516.86
7.1.290.0100.00616.90
7.1.280.0110.00616.93
7.1.270.0100.00516.96
7.1.260.0130.00616.93
7.1.250.0120.00416.84
7.1.240.0160.00416.72
7.1.230.0140.00416.68
7.1.220.0150.00616.86
7.1.210.0160.00316.82
7.1.200.0130.00416.46
7.1.190.0160.00316.71
7.1.180.0150.00416.91
7.1.170.0170.00316.68
7.1.160.0120.00516.66
7.1.150.0130.00716.79
7.1.140.0150.00616.55
7.1.130.0130.00816.54
7.1.120.0120.00616.76
7.1.110.0120.00516.64
7.1.100.0150.00616.65
7.1.90.0130.00716.54
7.1.80.0120.00516.78
7.1.70.0160.00616.15
7.1.60.0270.00622.38
7.1.50.0220.00522.17
7.1.40.0190.00722.13
7.1.30.0190.00822.03
7.1.20.0210.00821.97
7.1.10.0140.00516.06
7.1.00.0140.00816.09
7.0.330.0130.00416.68
7.0.320.0130.00416.55
7.0.310.0110.00516.52
7.0.300.0120.00416.45
7.0.290.0140.00316.44
7.0.280.0140.00316.49
7.0.270.0130.00616.34
7.0.260.0120.00416.41
7.0.250.0140.00416.63
7.0.240.0110.00516.77
7.0.230.0160.00316.86
7.0.220.0140.00416.87
7.0.210.0230.00516.60
7.0.200.0160.00316.53
7.0.190.0130.00516.77
7.0.180.0140.00416.55
7.0.170.0150.00416.73
7.0.160.0130.00416.52
7.0.150.0150.00416.67
7.0.140.0140.00416.53
7.0.130.0150.00216.64
7.0.120.0170.00316.68
7.0.110.0150.00316.74
7.0.100.0140.00316.63
7.0.90.0140.00316.47
7.0.80.0130.00416.43
7.0.70.0120.00516.33
7.0.60.0140.00316.47
7.0.50.0140.00316.28
7.0.40.0150.00316.48
7.0.30.0140.00216.49
7.0.20.0110.00716.17
7.0.10.0180.00516.35
7.0.00.0160.00416.15
5.6.400.0150.00315.41
5.6.390.0140.00415.39
5.6.380.0130.00415.46
5.6.370.0130.00315.35
5.6.360.0140.00315.34
5.6.350.0120.00415.47
5.6.340.0130.00215.56
5.6.330.0120.00515.34
5.6.320.0140.00215.30
5.6.310.0140.00415.34
5.6.300.0130.00415.22
5.6.290.0160.00215.39
5.6.280.0130.00515.50
5.6.270.0120.00615.48
5.6.260.0130.00415.29
5.6.250.0140.00315.18
5.6.240.0120.00615.45
5.6.230.0130.00415.39
5.6.220.0130.00415.37
5.6.210.0120.00615.48
5.6.200.0140.00315.33
5.6.190.0150.00215.46
5.6.180.0130.00315.51
5.6.170.0140.00215.58
5.6.160.0130.00515.43
5.6.150.0120.00515.61
5.6.140.0130.00615.48
5.6.130.0130.00515.45
5.6.120.0140.00415.45
5.6.110.0140.00415.17
5.6.100.0140.00415.39
5.6.90.0120.00315.38
5.6.80.0120.00615.33
5.6.70.0130.00415.39
5.6.60.0110.00515.46
5.6.50.0090.00615.21
5.6.40.0120.00515.46
5.6.30.0130.00415.31
5.6.20.0120.00515.17
5.6.10.0110.00615.33
5.6.00.0130.00415.14

preferences:
36.04 ms | 403 KiB | 5 Q