3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days = []; $searchData = ['dat' => '2015-11-15']; $offset = 3; $now = date_create(); if (date_create($searchData['dat'])->modify('- '. $offset .' days') < $now) { $offsetStart = date_create($searchData['dat'])->diff($now)->format('%a'); } else { $offsetStart = -1 * $offset; } $offsetEnd = 2 * $offset + $offsetStart; for ($i = $offsetStart; $i <= $offsetEnd; $i++) { $days[] = $i; } print_r($days);

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.0150.00316.74
8.3.50.0070.00718.18
8.3.40.0100.01019.10
8.3.30.0070.00718.92
8.3.20.0040.00420.24
8.3.10.0040.00423.57
8.3.00.0060.00319.51
8.2.180.0080.00818.27
8.2.170.0170.00422.96
8.2.160.0170.00319.58
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0070.00419.61
8.2.120.0000.00826.35
8.2.110.0070.00320.58
8.2.100.0070.00718.17
8.2.90.0040.00419.47
8.2.80.0050.00317.97
8.2.70.0000.00817.88
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0040.00419.34
8.2.30.0000.00720.80
8.2.20.0040.00418.04
8.2.10.0040.00418.19
8.2.00.0000.00818.20
8.1.280.0080.00825.92
8.1.270.0000.00923.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0080.00417.78
8.1.220.0000.00817.90
8.1.210.0090.00018.77
8.1.200.0030.00617.24
8.1.190.0070.00317.48
8.1.180.0080.00018.10
8.1.170.0000.00818.90
8.1.160.0050.00322.09
8.1.150.0070.00018.95
8.1.140.0000.00819.64
8.1.130.0040.00417.86
8.1.120.0040.00417.74
8.1.110.0000.00717.63
8.1.100.0000.00717.72
8.1.90.0070.00017.70
8.1.80.0050.00217.63
8.1.70.0050.00217.66
8.1.60.0000.00817.70
8.1.50.0030.00617.74
8.1.40.0000.00917.58
8.1.30.0080.00017.80
8.1.20.0040.00417.86
8.1.10.0040.00417.77
8.1.00.0120.00017.64
8.0.300.0030.00518.77
8.0.290.0040.00417.00
8.0.280.0040.00418.62
8.0.270.0000.00717.43
8.0.260.0030.00317.43
8.0.250.0070.00017.23
8.0.240.0080.00017.23
8.0.230.0000.00717.28
8.0.220.0000.00717.05
8.0.210.0030.00517.22
8.0.200.0030.00317.28
8.0.190.0040.00417.29
8.0.180.0040.00417.27
8.0.170.0000.00817.10
8.0.160.0000.00717.25
8.0.150.0040.00417.01
8.0.140.0080.00017.19
8.0.130.0030.00313.44
8.0.120.0040.00417.00
8.0.110.0080.00017.03
8.0.100.0040.00417.21
8.0.90.0040.00417.23
8.0.80.0040.01117.15
8.0.70.0030.00517.17
8.0.60.0000.00717.04
8.0.50.0050.00217.14
8.0.30.0100.01017.26
8.0.20.0090.01017.44
8.0.10.0040.00417.26
8.0.00.0120.00517.08
7.4.330.0000.00516.84
7.4.320.0070.00016.84
7.4.300.0000.00716.78
7.4.290.0070.00016.81
7.4.280.0040.00416.65
7.4.270.0040.00416.85
7.4.260.0070.00016.78
7.4.250.0040.00416.65
7.4.240.0000.00716.80
7.4.230.0030.00316.70
7.4.220.0100.00716.73
7.4.210.0050.01316.85
7.4.200.0000.00816.62
7.4.160.0050.01116.81
7.4.150.0150.00317.40
7.4.140.0090.01117.86
7.4.130.0090.01116.63
7.4.120.0030.01316.66
7.4.110.0130.00716.66
7.4.100.0150.00816.80
7.4.90.0150.00316.82
7.4.80.0070.01019.39
7.4.70.0120.00616.84
7.4.60.0120.00616.73
7.4.50.0040.01116.74
7.4.40.0050.01116.58
7.4.30.0130.00416.75
7.4.00.0090.00915.05
7.3.330.0020.00213.41
7.3.320.0030.00313.30
7.3.310.0050.00216.46
7.3.300.0030.00316.53
7.3.290.0000.00716.52
7.3.280.0120.00716.55
7.3.270.0110.01317.40
7.3.260.0100.00616.68
7.3.250.0100.00816.53
7.3.240.0070.00916.67
7.3.230.0090.00916.55
7.3.210.0100.01016.64
7.3.200.0090.01416.59
7.3.190.0120.00416.62
7.3.180.0000.01516.65
7.3.170.0070.01016.60
7.3.160.0040.01216.51
7.2.330.0110.00716.63
7.2.320.0120.00617.05
7.2.310.0080.01116.95
7.2.300.0150.00616.77
7.2.290.0120.00917.08
7.2.60.0040.00816.88
7.2.00.0000.01619.70
7.1.200.0030.00616.13
7.1.100.0050.00318.37
7.1.70.0100.00017.34
7.1.60.0060.01519.48
7.1.50.0040.01917.28
7.1.00.0030.07322.54
7.0.200.0360.00614.60
7.0.60.0170.07319.93
7.0.50.0030.04317.89
7.0.40.0230.07020.35
7.0.30.0270.06720.24
7.0.20.0230.08320.23
7.0.10.0100.08020.07
7.0.00.0200.06720.32
5.6.280.0030.07021.04
5.6.210.0030.04020.50
5.6.200.0030.08018.18
5.6.190.0070.05720.55
5.6.180.0270.07020.60
5.6.170.0330.04320.61
5.6.160.0100.05320.55
5.6.150.0000.05318.25
5.6.140.0130.03018.20
5.6.130.0100.08318.27
5.6.120.0070.08320.86
5.6.110.0030.07020.88
5.6.100.0130.07320.98
5.6.90.0070.08021.09
5.6.80.0170.07720.38
5.5.350.0070.07720.41
5.5.340.0130.03317.97
5.5.330.0030.06720.21
5.5.320.0300.05720.34
5.5.310.0330.06720.26
5.5.300.0070.03718.05
5.5.290.0070.03718.03
5.5.280.0170.07020.86
5.5.270.0070.04320.97
5.5.260.0130.08320.84
5.5.250.0130.07720.65
5.5.240.0200.03720.17

preferences:
56.52 ms | 400 KiB | 5 Q