3v4l.org

run code in 300+ PHP versions simultaneously
<?php $noaaRaw = '{ "predictions" : [ {"t":"2021-01-01 00:29", "v":"8.870", "type":"H"}, {"t":"2021-01-01 06:22", "v":"0.807", "type":"L"}, {"t":"2021-01-01 12:31", "v":"10.383", "type":"H"} ]}'; $noaaArray = json_decode($noaaRaw, true); foreach($noaaArray['predictions'] as $values) { $result[] = json_encode($values); } print_r($result);

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.70.0140.00016.58
8.3.60.0040.01116.50
8.3.50.0120.00918.29
8.3.40.0070.00718.79
8.3.30.0070.01018.67
8.3.20.0050.00224.18
8.3.10.0050.00224.66
8.3.00.0000.00726.16
8.2.190.0110.00418.40
8.2.180.0110.01125.92
8.2.170.0070.01118.79
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00026.35
8.2.110.0060.00320.39
8.2.100.0080.00417.97
8.2.90.0000.00819.36
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0040.00418.14
8.2.30.0050.00318.02
8.2.20.0040.00418.13
8.2.10.0040.00419.30
8.2.00.0030.00519.20
8.1.280.0150.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0080.00023.97
8.1.230.0000.01119.05
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0000.00817.00
8.1.180.0080.00018.10
8.1.170.0000.00718.77
8.1.160.0040.00418.95
8.1.150.0040.00418.86
8.1.140.0000.00818.96
8.1.130.0070.00020.03
8.1.120.0050.00317.50
8.1.110.0040.00417.36
8.1.100.0000.00817.46
8.1.90.0000.00717.37
8.1.80.0090.00017.41
8.1.70.0060.00317.54
8.1.60.0080.00017.55
8.1.50.0050.00317.49
8.1.40.0000.00917.53
8.1.30.0090.00017.64
8.1.20.0040.00417.72
8.1.10.0040.00417.44
8.1.00.0000.00817.46
8.0.300.0000.00718.77
8.0.290.0000.00916.75
8.0.280.0040.00418.39
8.0.270.0030.00518.06
8.0.260.0000.00718.41
8.0.250.0050.00216.97
8.0.240.0000.00616.93
8.0.230.0030.00316.86
8.0.220.0070.00016.86
8.0.210.0000.00716.89
8.0.200.0000.00817.00
8.0.190.0060.00317.03
8.0.180.0100.00016.88
8.0.170.0000.00916.81
8.0.160.0000.00716.84
8.0.150.0060.00316.91
8.0.140.0000.00716.88
8.0.130.0050.00013.39
8.0.120.0000.00916.76
8.0.110.0050.00216.84
8.0.100.0040.00416.95
8.0.90.0050.00216.86
8.0.80.0050.01316.84
8.0.70.0040.00416.73
8.0.60.0040.00416.80
8.0.50.0020.00516.77
8.0.30.0090.00616.94
8.0.20.0130.00416.99
8.0.10.0110.00417.09
8.0.00.0110.00417.07
7.4.330.0020.00215.55
7.4.320.0060.00016.53
7.4.300.0000.00616.41
7.4.290.0000.00716.46
7.4.280.0050.00316.65
7.4.270.0000.00716.64
7.4.260.0000.00513.29
7.4.250.0000.00716.43
7.4.240.0000.00716.50
7.4.230.0070.00016.61
7.4.220.0050.00216.62
7.4.210.0100.00816.62
7.4.200.0000.00716.62
7.4.160.0060.00916.69
7.4.150.0090.00616.61
7.4.140.0000.01416.50
7.4.130.0060.00916.43
7.4.120.0050.01116.41
7.4.110.0030.02116.49
7.4.100.0190.00316.48
7.4.90.0040.01116.42
7.4.80.0030.01316.48
7.4.70.0030.01016.30
7.4.60.0040.01116.50
7.4.50.0140.00316.50
7.4.40.0070.01016.54
7.4.30.0110.00616.32
7.4.20.0060.00816.37
7.4.10.0150.00016.45
7.4.00.0060.01216.46
7.3.330.0040.00416.24
7.3.320.0030.00313.11
7.3.310.0030.00316.40
7.3.300.0000.00716.31
7.3.290.0110.00516.21
7.3.270.0070.00816.14
7.3.260.0030.01016.23
7.3.250.0030.01716.30
7.3.240.0090.01216.30
7.3.230.0120.00916.20
7.3.220.0090.01216.16
7.3.210.0110.00316.23
7.3.200.0100.00316.14
7.3.190.0050.01016.19
7.3.180.0100.00616.23
7.3.170.0090.00616.28
7.3.160.0030.01016.19
7.3.150.0090.01216.23
7.3.140.0100.00316.13
7.3.130.0030.01216.22
7.3.120.0070.00716.23
7.3.110.0070.00716.11
7.3.100.0080.00516.08
7.3.90.0100.00316.34
7.3.80.0040.01016.20
7.3.70.0090.00616.31
7.3.60.0090.00616.43
7.3.50.0110.00316.48
7.3.40.0100.01016.33
7.3.30.0070.01416.43
7.3.20.0070.00716.42
7.3.10.0090.00616.27
7.3.00.0120.00316.29

preferences:
44.94 ms | 401 KiB | 5 Q