3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '{ "instrument":"EUR_USD", "granularity":"D", "candles":[ { "complete":true, "volume":32813, "time":"2017-01-02T22:00:00.000000000Z", "ask":{ "o":"1.04711", "h":"1.04908", "l":"1.03413", "c":"1.04061" } }, { "complete":true, "volume":34501, "time":"2017-01-03T22:00:00.000000000Z", "ask":{ "o":"1.04076", "h":"1.05009", "l":"1.03907", "c":"1.04908" } }, { "complete":true, "volume":52627, "time":"2017-01-04T22:00:00.000000000Z", "ask":{ "o":"1.04911", "h":"1.06161", "l":"1.04816", "c":"1.06083" }}]}'; $arr = json_decode($data,true); $c = array_map( function ($in){ return $in['ask']['c']; }, $arr['candles']); sort($c); echo 'Min is: '.current($c)."\n"; echo 'Max is: '.end($c);

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.10.0090.00918.36
8.5.00.0100.01020.09
8.4.150.0020.00014.05
8.4.140.0130.00917.48
8.4.130.0080.01317.58
8.4.120.0130.00720.55
8.4.110.0080.01222.32
8.4.100.0140.00618.92
8.4.90.0110.00720.65
8.4.80.0050.00319.49
8.4.70.0060.00417.71
8.4.60.0140.00618.85
8.4.50.0110.00920.35
8.4.40.0030.01619.36
8.4.30.0100.01017.44
8.4.20.0120.00918.93
8.4.10.0080.00817.76
8.3.280.0120.00818.17
8.3.270.0160.00316.52
8.3.260.0060.01216.45
8.3.250.0110.00518.85
8.3.240.0130.00516.76
8.3.230.0050.00416.67
8.3.220.0050.00517.05
8.3.210.0020.00618.58
8.3.200.0040.00416.41
8.3.190.0100.00817.16
8.3.180.0100.01116.41
8.3.170.0090.00917.18
8.3.160.0120.00618.08
8.3.150.0090.00918.67
8.3.140.0060.00316.48
8.3.130.0030.00718.41
8.3.120.0040.01119.00
8.3.110.0080.00820.94
8.3.100.0050.00316.75
8.3.90.0120.00626.77
8.3.80.0090.00019.36
8.3.70.0150.00018.18
8.3.60.0070.00718.43
8.3.50.0080.00518.15
8.3.40.0070.00718.68
8.3.30.0120.00318.73
8.3.20.0050.00319.10
8.3.10.0140.00023.52
8.3.00.0040.00422.52
8.2.290.0040.00520.78
8.2.280.0130.00618.28
8.2.270.0060.00317.38
8.2.260.0110.00319.03
8.2.250.0050.00316.80
8.2.240.0040.00417.17
8.2.230.0060.00322.58
8.2.220.0080.00016.76
8.2.210.0070.00726.77
8.2.200.0060.00318.88
8.2.190.0120.00318.41
8.2.180.0060.00918.29
8.2.170.0120.00322.96
8.2.160.0080.00621.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.26
8.2.110.0060.00319.18
8.2.100.0120.00019.63
8.2.90.0000.00817.75
8.2.80.0080.00018.73
8.2.70.0040.00417.63
8.2.60.0000.00917.75
8.2.50.0080.00017.63
8.2.40.0060.00317.75
8.2.30.0040.00420.54
8.2.20.0000.00918.15
8.2.10.0040.00417.99
8.2.00.0040.00419.54
8.1.330.0130.00722.19
8.1.320.0100.00915.90
8.1.310.0110.00716.55
8.1.300.0030.00620.37
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0040.01122.19
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.83
8.1.230.0070.00419.12
8.1.220.0060.00317.76
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0050.00317.36
8.1.180.0030.00618.10
8.1.170.0030.00618.54
8.1.160.0050.00318.91
8.1.150.0060.00318.88
8.1.140.0040.00420.80
8.1.130.0030.00619.07
8.1.120.0000.00717.44
8.1.110.0000.00817.53
8.1.100.0050.00317.36
8.1.90.0050.00217.36
8.1.80.0040.00417.49
8.1.70.0040.00417.51
8.1.60.0050.00317.60
8.1.50.0040.00417.54
8.1.40.0000.00817.52
8.1.30.0040.00417.64
8.1.20.0000.00717.68
8.1.10.0000.00817.52
8.1.00.0050.00317.50
8.0.300.0000.00918.84
8.0.290.0040.00416.75
8.0.280.0030.00318.53
8.0.270.0000.00717.33
8.0.260.0030.00319.09
8.0.250.0060.00016.97
8.0.240.0040.00416.94
8.0.230.0030.00316.91
8.0.220.0030.00316.85
8.0.210.0040.00416.79
8.0.200.0000.00816.96
8.0.190.0090.00016.86
8.0.180.0000.00816.90
8.0.170.0050.00316.91
8.0.160.0000.00716.93
8.0.150.0030.00516.81
8.0.140.0040.00416.83
8.0.130.0050.00013.30
8.0.120.0000.00816.75
8.0.110.0040.00416.90
8.0.100.0000.00716.91
8.0.90.0000.00716.81
8.0.80.0130.00816.89
8.0.70.0000.00816.82
8.0.60.0040.00416.77
8.0.50.0030.00516.86
8.0.30.0090.00917.05
8.0.20.0100.00717.40
8.0.10.0070.00017.07
8.0.00.0120.00916.64
7.4.330.0050.00015.55
7.4.320.0030.00316.56
7.4.300.0060.00016.50
7.4.290.0000.00916.46
7.4.280.0050.00316.54
7.4.270.0070.00016.61
7.4.260.0070.00016.45
7.4.250.0040.00416.61
7.4.240.0030.00316.59
7.4.230.0070.00016.33
7.4.220.0030.00516.63
7.4.210.0080.00716.54
7.4.200.0030.00316.54
7.4.160.0070.00916.50
7.4.140.0130.00817.86
7.4.130.0120.00616.61
7.4.120.0090.01016.55
7.4.110.0110.00616.58
7.4.100.0090.00916.68
7.4.90.0120.00916.63
7.4.80.0120.00319.39
7.4.70.0070.01416.37
7.4.60.0090.01216.37
7.4.50.0080.00816.55
7.4.40.0110.00616.52
7.4.00.0060.01214.84
7.3.330.0000.00513.22
7.3.320.0030.00313.12
7.3.310.0070.00016.34
7.3.300.0000.01016.16
7.3.290.0040.00416.14
7.3.280.0090.00816.25
7.3.260.0130.00616.46
7.3.240.0110.00916.33
7.3.230.0150.00316.32
7.3.210.0030.01516.52
7.3.200.0120.00416.19
7.3.190.0100.00716.20
7.3.180.0120.00316.36
7.3.170.0080.00816.43
7.3.160.0030.01316.30
7.2.330.0090.00916.77
7.2.320.0110.00616.69
7.2.310.0100.00716.49
7.2.300.0070.01516.78
7.2.290.0090.00916.81
7.2.80.1400.00614.56
7.2.70.1750.00714.70
7.2.60.1780.00314.91
7.2.50.1920.00614.80
7.2.40.2230.00014.77
7.2.30.1650.01014.64
7.2.20.2330.01014.64
7.2.10.1460.01314.57
7.2.00.1400.01314.69
7.1.200.1650.01313.66
7.1.190.1530.00613.67
7.1.180.1460.01313.54
7.1.170.2300.01013.81
7.1.160.2190.01013.59
7.1.150.1480.00713.64
7.1.140.1300.01013.91
7.1.130.1350.00613.37
7.1.120.1290.00713.83
7.1.110.1370.00313.61
7.1.100.1730.01013.70
7.1.90.2510.00013.47
7.1.80.2420.01313.41
7.1.70.2370.00713.59
7.1.60.2370.01031.56
7.1.50.2640.00331.64
7.1.40.2850.01631.66
7.1.30.2970.01331.63
7.1.20.2960.00931.70
7.1.10.2190.01013.67
7.1.00.2340.01013.73

preferences:
33.54 ms | 403 KiB | 5 Q