3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstOfMonth = strtotime(date("Y-m-01", "2017-07-17")); //Apply above formula. echo intval(date("W", $date)) - intval(date("W", $firstOfMonth)) + 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.0120.00316.88
8.3.60.0170.00016.38
8.3.50.0120.00916.57
8.3.40.0180.00018.84
8.3.30.0100.01019.02
8.3.20.0060.00320.29
8.3.10.0000.00821.68
8.3.00.0070.00419.50
8.2.180.0060.00918.54
8.2.170.0070.00722.96
8.2.160.0030.01020.38
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00021.13
8.2.120.0070.00026.35
8.2.110.0070.00321.00
8.2.100.0080.00417.91
8.2.90.0040.00419.07
8.2.80.0060.00317.97
8.2.70.0040.00817.38
8.2.60.0080.00018.04
8.2.50.0040.00418.10
8.2.40.0050.00220.46
8.2.30.0040.00420.88
8.2.20.0020.00517.86
8.2.10.0040.00417.99
8.2.00.0000.00817.92
8.1.280.0100.00725.92
8.1.270.0070.00022.09
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.02
8.1.230.0080.00322.16
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0040.00418.93
8.1.160.0000.00718.91
8.1.150.0040.00420.59
8.1.140.0040.00719.48
8.1.130.0000.00718.67
8.1.120.0070.00017.32
8.1.110.0050.00217.24
8.1.100.0000.00817.20
8.1.90.0000.00817.30
8.1.80.0000.00717.21
8.1.70.0000.00717.34
8.1.60.0030.00617.45
8.1.50.0000.00817.34
8.1.40.0060.00317.43
8.1.30.0030.00617.45
8.1.20.0040.00417.47
8.1.10.0040.00417.44
8.1.00.0070.00017.35
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0030.00317.13
8.0.260.0060.00016.94
8.0.250.0030.00316.88
8.0.240.0060.00317.02
8.0.230.0030.00316.98
8.0.220.0070.00016.92
8.0.210.0070.00016.84
8.0.200.0030.00316.99
8.0.190.0050.00316.90
8.0.180.0000.00716.83
8.0.170.0000.00716.97
8.0.160.0000.00716.84
8.0.150.0040.00416.86
8.0.140.0000.00916.90
8.0.130.0030.00313.35
8.0.120.0040.00416.74
8.0.110.0000.00816.86
8.0.100.0000.00716.72
8.0.90.0000.00716.72
8.0.80.0140.00716.78
8.0.70.0000.00816.69
8.0.60.0000.00716.91
8.0.50.0070.00016.81
8.0.30.0130.00616.96
8.0.20.0110.00817.40
8.0.10.0000.00716.87
8.0.00.0110.00716.75
7.4.330.0030.00315.55
7.4.320.0000.00616.60
7.4.300.0000.00616.64
7.4.290.0030.00516.72
7.4.280.0080.00416.73
7.4.270.0000.00616.73
7.4.260.0040.00416.63
7.4.250.0080.00016.57
7.4.240.0040.00416.64
7.4.230.0040.00416.65
7.4.220.0040.01616.76
7.4.210.0130.00616.83
7.4.200.0070.00016.77
7.4.160.0110.00716.61
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0130.01016.87
7.4.120.0090.01216.72
7.4.110.0080.00816.46
7.4.100.0070.01416.54
7.4.90.0080.00816.73
7.4.80.0080.00919.39
7.4.70.0030.01316.63
7.4.60.0090.00616.79
7.4.50.0070.01116.57
7.4.40.0030.01316.52
7.4.30.0120.00616.68
7.4.00.0090.00615.05
7.3.330.0000.00513.14
7.3.320.0000.00513.29
7.3.310.0040.00416.25
7.3.300.0040.00416.39
7.3.290.0090.00616.40
7.3.280.0110.00916.39
7.3.270.0130.00417.40
7.3.260.0060.01116.55
7.3.250.0100.01016.56
7.3.240.0130.00516.48
7.3.230.0090.00916.56
7.3.210.0140.00316.57
7.3.200.0120.00916.56
7.3.190.0090.00816.58
7.3.180.0030.01416.62
7.3.170.0090.00616.54
7.3.160.0060.00916.46
7.3.10.0110.01016.49
7.3.00.0170.00616.49
7.2.330.0060.01116.64
7.2.320.0060.01916.74
7.2.310.0060.01016.67
7.2.300.0120.00916.86
7.2.290.0140.00316.70
7.2.130.0080.01716.50
7.2.120.0130.01316.43
7.2.110.0160.00616.42
7.2.100.0110.01116.64
7.2.90.0210.01215.88
7.2.80.0170.01215.59
7.2.70.0540.00715.87
7.2.60.0400.01116.03
7.2.50.0200.00115.70
7.2.40.0110.00615.68
7.2.30.0100.00915.78
7.2.20.0310.00415.84
7.2.10.0250.01015.99
7.2.00.0070.01015.99
7.1.250.0100.01015.51
7.1.210.0740.00713.92
7.1.200.0060.01114.11
7.1.190.0150.00413.89
7.1.180.0830.00314.26
7.1.170.0540.00714.13
7.1.160.0160.00014.12
7.1.150.0070.01114.00
7.1.140.0090.00914.18
7.1.130.0090.00313.81
7.1.120.0660.00313.89
7.1.110.0110.00513.87
7.1.100.0260.01113.79
7.1.90.1980.00313.94
7.1.80.2460.00914.11
7.1.70.0160.00314.00
7.1.60.0340.00732.07
7.1.50.1510.01632.04
7.1.40.0730.01732.18
7.1.30.0710.01931.90
7.1.20.1220.00031.82
7.1.10.0630.01814.19
7.1.00.0650.00314.02
7.0.310.0490.00613.51
7.0.300.0100.01013.50
7.0.290.0400.01513.76
7.0.280.0130.00613.37
7.0.270.0300.00013.83
7.0.260.0220.01113.75
7.0.250.0140.01013.71
7.0.240.0590.01313.71
7.0.230.2560.00713.78
7.0.220.2030.01013.39
7.0.210.0640.00313.66
7.0.200.1030.01013.42
7.0.190.0970.01013.77
7.0.180.0730.00713.77
7.0.170.1020.00413.60
7.0.160.1060.00713.57
7.0.150.0690.00913.72
7.0.140.0570.00713.43
7.0.130.0630.00613.86
7.0.120.0810.00613.87
7.0.110.0590.01313.70
7.0.100.0800.00313.78
7.0.90.2830.01013.52
7.0.80.0490.00413.70
7.0.70.0610.01313.73
7.0.60.0500.00913.68
7.0.50.0710.00413.94
7.0.40.0630.00013.72
7.0.30.0560.00613.75
7.0.20.0540.00713.88
7.0.10.0520.00913.71
7.0.00.0570.01013.63

preferences:
44.21 ms | 401 KiB | 5 Q