3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "StatsHistoryTime": "2019-02-06 12:00:00", "name": "shelly", "hashrate": 2147483647 }, { "StatsHistoryTime": "2019-02-06 12:00:00", "name": "debra", "hashrate": 1240996571 }, { "StatsHistoryTime": "2019-02-06 12:00:00", "name": "sally", "hashrate": 2147483647 }, { "StatsHistoryTime": "2019-02-06 12:00:00", "name": "bill", "hashrate": 2147483647 }, { "StatsHistoryTime": "2019-02-06 12:30:00", "name": "shelly", "hashrate": 2147483647 }, { "StatsHistoryTime": "2019-02-06 12:30:00", "name": "debra", "hashrate": 1460613388 }, { "StatsHistoryTime": "2019-02-06 12:30:00", "name": "sally", "hashrate": 2147483647 }, { "StatsHistoryTime": "2019-02-06 12:30:00", "name": "bill", "hashrate": 2147483647 } ]'; $rows = json_decode($json, true); $chartdata = array(); foreach ($rows as $row) { $period = $row['StatsHistoryTime']; if (($k = array_search($period, array_column($chartdata, 'period'))) !== false) { $chartdata[$k][$row['name']] = $row['hashrate']; } else { $chartdata[] = array('period' => $period, $row['name'] => $row['hashrate']); } } echo json_encode($chartdata);

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.120.0120.00720.35
8.4.110.0070.01222.72
8.4.100.0100.01017.85
8.4.90.0100.01017.75
8.4.80.0100.00917.77
8.4.70.0130.00918.06
8.4.60.0120.01125.75
8.4.50.0130.00919.22
8.4.40.0130.00619.40
8.4.30.0100.01017.72
8.4.20.0000.00920.59
8.4.10.0050.00520.29
8.3.250.0130.00719.07
8.3.240.0120.00716.72
8.3.230.0080.01216.59
8.3.220.0060.00217.46
8.3.210.0090.00816.75
8.3.200.0050.00416.82
8.3.190.0130.00616.98
8.3.180.0050.00416.84
8.3.170.0190.00016.79
8.3.160.0060.01216.62
8.3.150.0100.01017.21
8.3.140.0080.00016.69
8.3.130.0040.00418.51
8.3.120.0030.00619.13
8.3.110.0130.00616.75
8.3.100.0140.00724.06
8.3.90.0070.00326.77
8.3.80.0030.00617.97
8.3.70.0070.01116.63
8.3.60.0140.00418.55
8.3.50.0060.01217.46
8.3.40.0080.00818.80
8.3.30.0150.00018.67
8.3.20.0040.00421.80
8.3.10.0080.00020.52
8.3.00.0030.00517.75
8.2.290.0110.00820.70
8.2.280.0100.00918.28
8.2.270.0110.00816.90
8.2.260.0130.00719.06
8.2.250.0030.00520.75
8.2.240.0030.00618.97
8.2.230.0070.00320.94
8.2.220.0000.00937.54
8.2.210.0070.00026.77
8.2.200.0060.00318.41
8.2.190.0070.01116.66
8.2.180.0150.00416.48
8.2.170.0110.00422.96
8.2.160.0040.01122.08
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.83
8.2.110.0070.00322.05
8.2.100.0040.00817.84
8.2.90.0050.00519.58
8.2.80.0050.00318.05
8.2.70.0040.00417.93
8.2.60.0030.00618.16
8.2.50.0000.00818.10
8.2.40.0050.00219.38
8.2.30.0060.00319.33
8.2.20.0070.00018.19
8.2.10.0050.00219.46
8.2.00.0000.00718.08
8.1.330.0090.01023.88
8.1.320.0120.00716.21
8.1.310.0120.00317.11
8.1.300.0090.00016.10
8.1.290.0140.00330.84
8.1.280.0110.00725.92
8.1.270.0050.00320.33
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00822.10
8.1.230.0070.00420.95
8.1.220.0080.00017.80
8.1.210.0100.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0070.00018.97
8.1.150.0080.00018.84
8.1.140.0070.00018.96
8.1.130.0030.00320.09
8.1.120.0030.00417.41
8.1.110.0000.00717.38
8.1.100.0040.00417.50
8.1.90.0030.00617.49
8.1.80.0040.00417.45
8.1.70.0040.00417.54
8.1.60.0000.00817.58
8.1.50.0040.00417.43
8.1.40.0030.00617.45
8.1.30.0030.00617.63
8.1.20.0040.00417.73
8.1.10.0080.00017.65
8.1.00.0000.00817.59
8.0.300.0000.00719.60
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0000.00716.75
8.0.260.0060.00018.44
8.0.250.0030.00316.89
8.0.240.0040.00417.00
8.0.230.0030.00317.01
8.0.220.0030.00316.95
8.0.210.0000.00816.84
8.0.200.0050.00216.86
8.0.190.0080.00016.95
8.0.180.0050.00316.94
8.0.170.0000.00816.93
8.0.160.0000.00817.01
8.0.150.0000.00716.88
8.0.140.0030.00316.90
8.0.130.0030.00313.35
8.0.120.0050.00316.80
8.0.110.0040.00416.72
8.0.100.0040.00416.96
8.0.90.0040.00416.82
8.0.80.0070.00816.90
8.0.70.0040.00416.96
8.0.60.0050.00316.99
8.0.50.0000.00816.97
8.0.30.0070.01217.13
8.0.20.0100.01316.92
8.0.10.0040.00417.03
8.0.00.0090.01316.81
7.4.330.0040.00015.55
7.4.320.0070.00016.52
7.4.300.0030.00316.64
7.4.290.0020.00516.57
7.4.280.0000.00716.43
7.4.270.0030.00316.64
7.4.260.0030.00616.43
7.4.250.0070.00016.64
7.4.240.0040.00416.64
7.4.230.0030.00316.70
7.4.220.0050.00316.64
7.4.210.0080.00616.62
7.4.200.0040.00416.45
7.4.160.0090.00616.50
7.4.140.0090.01217.86
7.4.130.0140.00416.48
7.4.120.0120.00716.57
7.4.110.0070.01016.57
7.4.100.0060.01616.56
7.4.90.0070.01016.56
7.4.80.0070.01019.39
7.4.70.0060.01116.56
7.4.60.0110.00716.50
7.4.50.0040.01216.39
7.4.40.0090.01216.57
7.4.00.0050.01015.09
7.3.330.0000.00513.10
7.3.320.0060.00013.11
7.3.310.0030.00316.36
7.3.300.0000.00616.40
7.3.290.0030.00316.34
7.3.280.0080.00916.34
7.3.260.0120.00716.43
7.3.240.0100.00716.46
7.3.230.0060.01016.74
7.3.210.0100.00716.32
7.3.200.0030.01316.47
7.3.190.0060.01016.58
7.3.180.0170.00616.44
7.3.170.0060.01016.54
7.3.160.0110.00416.54
7.3.120.0030.01015.10
7.3.110.0090.00615.03
7.3.100.0130.00314.70
7.3.90.0030.01315.13
7.3.80.0070.00714.96
7.3.70.0000.00814.81
7.3.60.0100.00314.90
7.3.50.0100.00314.94
7.3.40.0100.00314.95
7.3.30.0030.00614.68
7.3.20.0040.00816.63
7.3.10.0220.00415.73
7.3.00.0230.00615.72
7.2.330.0130.00916.79
7.2.320.0100.01316.80
7.2.310.0100.00516.54
7.2.300.0160.00316.79
7.2.290.0110.00516.50
7.2.250.0060.00615.25
7.2.240.0060.00615.28
7.2.230.0030.01214.95
7.2.220.0000.01015.03
7.2.210.0100.00315.34
7.2.200.0030.00515.07
7.2.190.0100.00315.23
7.2.180.0030.00914.80
7.2.170.0070.00715.02
7.2.130.0430.00315.10
7.2.120.0400.00315.02
7.2.110.0380.01315.16
7.2.100.0350.00615.15
7.2.90.0270.01014.78
7.2.80.0370.00715.05
7.2.70.0400.01015.29
7.2.60.0510.00315.10
7.2.50.0400.00615.19
7.2.40.0440.00015.05
7.2.30.0390.00015.20
7.2.20.0380.00015.23
7.2.10.0420.01315.07
7.2.00.0290.00615.05
7.1.330.0080.00316.01
7.1.320.0030.00815.77
7.1.310.0000.01216.01
7.1.300.0050.00315.84
7.1.290.0040.01115.91
7.1.280.0090.00316.02
7.1.270.0000.00815.88
7.1.260.0040.00416.00
7.1.250.0290.00714.03

preferences:
31.07 ms | 403 KiB | 5 Q