3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDateTime = new DateTime('2016-10-17'); $currentDate = new DateTime('2017-2-5'); //$startDateTime->modify('+1 day'); $currentWeekNumber = $currentDate->format('W') + (($currentDate->format('o') - $startDateTime->format('o')) * 52); //Subtract the start week from the current week (and add 1, since we start at Week 1) to find the current study week echo $currentWeekNumber - $startDateTime->format('W') + 1;

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.0090.01218.39
8.3.60.0090.00918.43
8.3.50.0150.00322.16
8.3.40.0120.00318.88
8.3.30.0070.00718.98
8.3.20.0130.00021.91
8.3.10.0000.00820.82
8.3.00.0050.00322.15
8.2.190.0120.00316.88
8.2.180.0150.00618.24
8.2.170.0080.01122.96
8.2.160.0030.01022.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00418.03
8.2.120.0040.00426.35
8.2.110.0000.01022.33
8.2.100.0110.00017.97
8.2.90.0040.00419.31
8.2.80.0000.00817.97
8.2.70.0040.00417.72
8.2.60.0000.00818.04
8.2.50.0000.00818.10
8.2.40.0040.00420.42
8.2.30.0000.00819.26
8.2.20.0040.00418.12
8.2.10.0040.00418.03
8.2.00.0000.00717.91
8.1.280.0170.00325.92
8.1.270.0040.00424.01
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.83
8.1.230.0090.00320.85
8.1.220.0030.00517.91
8.1.210.0000.00819.93
8.1.200.0060.00317.47
8.1.190.0030.00517.35
8.1.180.0020.00518.10
8.1.170.0070.00018.71
8.1.160.0040.00418.88
8.1.150.0070.00022.09
8.1.140.0030.00619.65
8.1.130.0030.00318.91
8.1.120.0030.00517.58
8.1.110.0040.00417.52
8.1.100.0080.00017.62
8.1.90.0000.00717.46
8.1.80.0040.00417.61
8.1.70.0070.00017.45
8.1.60.0040.00417.64
8.1.50.0050.00317.60
8.1.40.0070.00017.59
8.1.30.0060.00317.64
8.1.20.0060.00317.59
8.1.10.0000.00717.60
8.1.00.0000.00817.66
8.0.300.0050.00220.07
8.0.290.0000.00816.88
8.0.280.0000.00718.52
8.0.270.0030.00317.34
8.0.260.0000.00917.24
8.0.250.0000.00717.28
8.0.240.0030.00317.09
8.0.230.0000.00717.00
8.0.220.0060.00016.96
8.0.210.0000.00617.05
8.0.200.0030.00317.14
8.0.190.0050.00317.14
8.0.180.0080.00017.17
8.0.170.0000.00717.12
8.0.160.0070.00016.98
8.0.150.0040.00417.03
8.0.140.0000.00816.98
8.0.130.0030.00313.39
8.0.120.0040.00417.10
8.0.110.0000.00717.02
8.0.100.0080.00017.00
8.0.90.0040.00417.03
8.0.80.0070.01317.06
8.0.70.0040.00417.00
8.0.60.0070.00017.03
8.0.50.0080.00017.03
8.0.30.0150.00317.27
8.0.20.0090.01217.40
8.0.10.0000.00717.27
8.0.00.0090.00917.04
7.4.330.0050.00015.55
7.4.320.0000.00616.70
7.4.300.0030.00316.60
7.4.290.0030.00616.62
7.4.280.0000.00816.70
7.4.270.0030.00316.66
7.4.260.0040.00416.58
7.4.250.0070.00016.50
7.4.240.0050.00316.54
7.4.230.0080.00016.77
7.4.220.0030.01316.68
7.4.210.0100.01016.70
7.4.200.0000.00816.70
7.4.160.0080.00816.67
7.4.150.0130.01017.40
7.4.140.0100.00717.86
7.4.130.0070.01316.68
7.4.120.0100.01116.55
7.4.110.0030.01516.55
7.4.100.0070.01016.52
7.4.90.0170.00016.60
7.4.80.0150.00619.39
7.4.70.0070.01016.57
7.4.60.0110.00616.62
7.4.50.0070.01116.50
7.4.40.0080.01216.79
7.4.30.0120.00916.55
7.4.10.0030.01415.21
7.4.00.0040.01114.94
7.3.330.0000.00513.12
7.3.320.0030.00313.27
7.3.310.0040.00416.51
7.3.300.0030.00316.39
7.3.290.0080.00816.43
7.3.280.0060.01316.38
7.3.270.0060.01117.40
7.3.260.0110.00616.53
7.3.250.0100.00716.47
7.3.240.0130.00516.46
7.3.230.0130.00316.64
7.3.210.0080.00816.68
7.3.200.0140.00316.62
7.3.190.0070.00716.34
7.3.180.0070.01016.71
7.3.170.0060.01116.68
7.3.160.0120.00316.46
7.3.130.0000.02014.93
7.3.120.0080.01114.85
7.3.110.0070.01314.96
7.3.100.0030.01514.56
7.3.90.0140.00014.65
7.3.80.0060.00314.71
7.3.70.0100.00314.71
7.3.60.0090.00714.74
7.3.50.0000.01314.52
7.3.40.0000.01014.78
7.3.30.0080.00414.79
7.3.20.0030.01016.77
7.3.10.0080.00416.48
7.3.00.0070.00716.61
7.2.330.0060.01016.77
7.2.320.0090.01216.84
7.2.310.0060.00916.95
7.2.300.0120.00916.62
7.2.290.0070.01116.50
7.2.260.0060.01214.99
7.2.250.0040.01514.94
7.2.240.0060.01015.00
7.2.230.0060.01314.87
7.2.220.0060.01115.09
7.2.210.0090.00315.02
7.2.200.0000.01614.82
7.2.190.0060.00614.98
7.2.180.0000.01015.23
7.2.170.0050.00915.08
7.2.160.0030.00914.87
7.2.150.0030.01016.69
7.2.140.0070.00716.69
7.2.130.0090.00616.55
7.2.120.0060.00616.82
7.2.110.0030.00616.96
7.2.100.0060.00316.70
7.2.90.0030.01016.99
7.2.80.0060.01017.07
7.2.70.0110.00616.84
7.2.60.0070.01117.01
7.2.50.0000.01917.03
7.2.40.0100.00716.87
7.2.30.0080.00816.87
7.2.20.0070.00716.83
7.2.10.0070.00716.95
7.2.00.0100.00616.70
7.1.330.0060.00615.60
7.1.320.0100.00315.82
7.1.310.0050.00515.83
7.1.300.0030.00915.70
7.1.290.0070.00315.59
7.1.280.0000.01715.64
7.1.270.0040.00415.94
7.1.260.0060.00315.56
7.1.250.0140.00015.55
7.1.240.0040.01115.89
7.1.230.0060.00315.81
7.1.220.0060.00915.67
7.1.210.0040.01115.56
7.1.200.0050.00715.71
7.1.190.0000.01315.77
7.1.180.0040.01115.73
7.1.170.0060.00915.87
7.1.160.0100.00315.57
7.1.150.0000.00815.87
7.1.140.0000.01015.57
7.1.130.0030.01015.77
7.1.120.0090.00615.49
7.1.110.0080.00415.45
7.1.100.0070.00715.74
7.1.90.0070.00715.86
7.1.80.0100.00615.58
7.1.70.0050.00716.56
7.1.60.0120.00716.44
7.1.50.0110.00415.65
7.1.40.0090.00615.59
7.1.30.0120.00315.71
7.1.20.0110.00315.78
7.1.10.0050.03418.98
7.1.00.0070.03219.01
7.0.330.0070.00715.52
7.0.320.0030.00915.39
7.0.310.0070.00315.19
7.0.300.0040.00415.30
7.0.290.0070.01015.28
7.0.280.0080.00415.52
7.0.270.0070.01015.41
7.0.260.0080.00415.33
7.0.250.0030.00615.24
7.0.240.0060.01015.42
7.0.230.0090.00615.57
7.0.220.0090.00615.46
7.0.210.0070.01115.32
7.0.200.0030.00915.74
7.0.190.0090.00315.21
7.0.180.0070.00715.44
7.0.170.0110.00315.53
7.0.160.0080.00615.27
7.0.150.0090.03018.58
7.0.140.0080.03018.62
7.0.130.0100.02818.57
7.0.120.0050.03818.53
7.0.110.0100.02718.55
7.0.100.0070.03218.44
7.0.90.0050.03518.65
7.0.80.0080.03018.49
7.0.70.0060.03318.60
7.0.60.0120.03718.56
7.0.50.0040.03418.71
7.0.40.0080.03017.79
7.0.30.0090.03217.59
7.0.20.0050.03217.68
7.0.10.0070.03017.67
7.0.00.0020.03617.69
5.6.400.0030.00614.11
5.6.390.0000.01314.61
5.6.380.0070.00714.03
5.6.370.0030.00914.56
5.6.360.0130.00014.19
5.6.350.0040.01214.36
5.6.340.0090.00614.53
5.6.330.0120.00614.85
5.6.320.0100.00014.39
5.6.310.0080.00314.03
5.6.300.0070.00713.95
5.6.290.0100.00714.32
5.6.280.0030.01214.50
5.6.270.0080.00814.03
5.6.260.0060.00614.55
5.6.250.0030.01014.36
5.6.240.0090.00614.37
5.6.230.0150.00014.37
5.6.220.0030.01214.15
5.6.210.0040.01114.50
5.6.200.0070.00714.33
5.6.190.0000.01014.56
5.6.180.0040.01214.43
5.6.170.0060.01014.25
5.6.160.0040.00914.32
5.6.150.0000.01414.36
5.6.140.0050.00814.38
5.6.130.0040.00714.54
5.6.120.0030.01014.41
5.6.110.0030.01114.30
5.6.100.0120.00314.25
5.6.90.0080.00313.97
5.6.80.0120.00314.16
5.6.70.0030.00814.15
5.6.60.0060.00914.36
5.6.50.0030.01014.13
5.6.40.0070.01014.35
5.6.30.0030.01014.14
5.6.20.0040.00714.13
5.6.10.0070.01014.07
5.6.00.0100.00314.21

preferences:
63.7 ms | 401 KiB | 5 Q