3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '2015-03-16'; // monday echo date("Y-m-d", strtotime('monday this week', strtotime($date))), "\n"; echo date("Y-m-d", strtotime('sunday this week', strtotime($date))), "\n"; $date = '2015-03-22'; // sunday echo date("Y-m-d", strtotime('monday this week', strtotime($date))), "\n"; echo date("Y-m-d", strtotime('sunday this week', strtotime($date))), "\n";

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.0140.00718.56
8.3.50.0070.01322.11
8.3.40.0120.00618.92
8.3.30.0110.00318.80
8.3.20.0070.00020.41
8.3.10.0040.00421.76
8.3.00.0040.00419.14
8.2.180.0120.00325.92
8.2.170.0140.00322.96
8.2.160.0110.00422.21
8.2.150.0040.00425.66
8.2.140.0120.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.66
8.2.110.0030.00619.52
8.2.100.0090.00318.09
8.2.90.0050.00319.32
8.2.80.0050.00317.97
8.2.70.0000.00917.88
8.2.60.0030.00718.16
8.2.50.0080.00018.07
8.2.40.0030.00618.34
8.2.30.0030.00618.23
8.2.20.0000.00817.81
8.2.10.0000.00718.12
8.2.00.0040.00417.77
8.1.280.0100.00725.92
8.1.270.0050.00323.99
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0070.00321.23
8.1.230.0000.01120.91
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0040.00417.47
8.1.190.0040.00417.48
8.1.180.0050.00318.10
8.1.170.0040.00418.71
8.1.160.0070.00021.94
8.1.150.0050.00218.90
8.1.140.0070.00017.54
8.1.130.0070.00017.84
8.1.120.0000.00817.61
8.1.110.0080.00017.52
8.1.100.0030.00517.64
8.1.90.0000.00717.56
8.1.80.0040.00417.56
8.1.70.0030.00317.67
8.1.60.0000.00817.71
8.1.50.0030.00517.66
8.1.40.0000.00717.66
8.1.30.0000.00817.69
8.1.20.0040.00417.61
8.1.10.0000.00717.71
8.1.00.0000.00817.71
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0000.00718.57
8.0.270.0040.00417.07
8.0.260.0000.00720.07
8.0.250.0000.00617.20
8.0.240.0040.00417.10
8.0.230.0070.00017.17
8.0.220.0040.00417.12
8.0.210.0000.00717.13
8.0.200.0070.00017.14
8.0.190.0060.00317.07
8.0.180.0050.00316.97
8.0.170.0040.00417.07
8.0.160.0040.00416.97
8.0.150.0030.00516.93
8.0.140.0050.00216.97
8.0.130.0030.00313.52
8.0.120.0030.00715.26
8.0.110.0080.00115.23
8.0.100.0080.00115.81
8.0.90.0040.00515.88
8.0.80.0050.00515.78
8.0.70.0050.00515.79
8.0.60.0070.00115.79
8.0.50.0050.00415.86
8.0.30.0090.00716.26
8.0.20.0070.00816.35
8.0.10.0060.00315.97
8.0.00.0060.00816.17
7.4.330.0200.00116.09
7.4.320.0030.00316.71
7.4.300.0030.00316.73
7.4.290.0030.00316.64
7.4.280.0040.00416.62
7.4.270.0030.00316.54
7.4.260.0060.00616.76
7.4.250.0010.00714.96
7.4.240.0070.00215.49
7.4.230.0030.00415.99
7.4.220.0060.00315.53
7.4.210.0110.00115.61
7.4.200.0050.00315.46
7.4.190.0020.00815.12
7.4.180.0050.00515.01
7.4.160.0030.00815.57
7.4.150.0060.00715.75
7.4.140.0050.00816.38
7.4.130.0100.00515.71
7.4.120.0080.00515.86
7.4.110.0080.00515.45
7.4.100.0070.00715.53
7.4.90.0070.00615.56
7.4.80.0070.00616.37
7.4.70.0100.00415.57
7.4.60.0070.00515.52
7.4.50.0040.00515.56
7.4.40.0070.00615.45
7.4.30.0050.00615.59
7.4.20.0070.00415.44
7.4.10.0050.00615.39
7.4.00.0070.00615.36
7.3.330.0050.00013.22
7.3.320.0050.00313.13
7.3.310.0020.00614.71
7.3.300.0020.00615.19
7.3.290.0080.00515.73
7.3.280.0040.00915.74
7.3.270.0020.01015.59
7.3.260.0090.00315.21
7.3.250.0100.00515.55
7.3.240.0050.00615.35
7.3.230.0100.00215.33
7.3.220.0060.00414.70
7.3.210.0080.00515.30
7.3.200.0070.00716.27
7.3.190.0040.00715.31
7.3.180.0050.00815.21
7.3.170.0080.00615.38
7.3.160.0060.00615.32
7.3.150.0040.00815.37
7.3.140.0060.00615.29
7.3.130.0070.00715.19
7.3.120.0060.00815.17
7.3.110.0070.00715.17
7.3.100.0080.00615.12
7.3.90.0060.00715.17
7.3.80.0070.00515.23
7.3.70.0080.00715.11
7.3.60.0080.00615.14
7.3.50.0080.00515.23
7.3.40.0100.00415.19
7.3.30.0060.00615.23
7.3.20.0080.00716.25
7.3.10.0090.00516.17
7.3.00.0100.00516.25
7.2.340.0070.00414.97
7.2.330.0050.00715.48
7.2.320.0050.00815.56
7.2.310.0050.00815.59
7.2.300.0080.00515.45
7.2.290.0080.00515.42
7.2.280.0070.00515.38
7.2.270.0080.00515.41
7.2.260.0090.00415.41
7.2.250.0070.00815.45
7.2.240.0060.00915.37
7.2.230.0090.00515.36
7.2.220.0060.00615.39
7.2.210.0080.00715.32
7.2.200.0060.00815.35
7.2.190.0080.00515.35
7.2.180.0090.00415.36
7.2.170.0100.00415.32
7.2.160.0070.00715.46
7.2.150.0100.00516.36
7.2.140.0080.00516.41
7.2.130.0070.00716.51
7.2.120.0080.00816.48
7.2.110.0090.00616.39
7.2.100.0310.00816.06
7.2.90.0430.00716.13
7.2.80.0360.00616.15
7.2.70.0370.00616.06
7.2.60.0390.00616.34
7.2.50.0510.00616.19
7.2.40.0470.00416.14
7.2.30.0430.00716.18
7.2.20.0350.00916.24
7.2.10.0430.00716.15
7.2.00.0420.00716.25
7.1.330.0180.00515.53
7.1.320.0100.00615.50
7.1.310.0090.00515.59
7.1.300.0090.00615.48
7.1.290.0080.00515.50
7.1.280.0080.00615.50
7.1.270.0070.00815.54
7.1.260.0100.00615.43
7.1.250.0070.00815.33
7.1.240.0100.00715.42
7.1.230.0070.00815.34
7.1.220.0370.00715.09
7.1.210.0400.00515.17
7.1.200.0420.00615.20
7.1.190.0430.00615.12
7.1.180.0390.00715.09
7.1.170.0470.00615.05
7.1.160.0380.00715.05
7.1.150.0470.00515.05
7.1.140.0370.00615.03
7.1.130.0430.00715.00
7.1.120.0480.00515.05
7.1.110.0420.00515.04
7.1.100.0380.00414.96
7.1.90.0600.00315.00
7.1.80.0400.00815.05
7.1.70.0290.00815.33
7.1.60.0390.00718.82
7.1.50.0770.00618.43
7.1.40.0330.00618.78
7.1.30.0350.00618.70
7.1.20.0420.00818.64
7.1.10.0290.00515.07
7.1.00.0210.01916.28
7.0.330.0090.00514.91
7.0.320.0090.00415.03
7.0.310.0510.00414.76
7.0.300.0520.00814.66
7.0.290.0480.00414.66
7.0.280.0490.00814.72
7.0.270.0430.00414.71
7.0.260.0440.00614.77
7.0.250.0480.00514.68
7.0.240.0380.00614.91
7.0.230.0530.00514.85
7.0.220.0510.00514.86
7.0.210.0340.00714.90
7.0.200.0290.00515.25
7.0.190.0280.00714.87
7.0.180.0390.00614.86
7.0.170.0330.00414.79
7.0.160.0310.00614.77
7.0.150.0290.00614.74
7.0.140.0250.01616.09
7.0.130.0220.00614.80
7.0.120.0240.00814.71
7.0.110.0250.00414.79
7.0.100.0220.01816.04
7.0.90.0290.00514.71
7.0.80.0290.01115.63
7.0.70.0230.01215.62
7.0.60.0180.01815.65
7.0.50.0270.01815.70
7.0.40.0190.01915.47
7.0.30.0230.01915.46
7.0.20.0240.01715.35
7.0.10.0140.02315.39
7.0.00.0170.01515.40
5.6.400.0080.00714.60
5.6.390.0050.01014.78
5.6.380.0090.00614.63
5.6.370.0070.01014.51
5.6.360.0080.00814.65
5.6.350.0090.00714.69
5.6.340.0060.01014.77
5.6.330.0070.00714.67
5.6.320.0100.00614.65
5.6.310.0090.00814.57
5.6.300.0110.00714.66
5.6.290.0120.00614.68
5.6.280.0090.00614.67
5.6.270.0090.00514.72
5.6.260.0100.00514.69
5.6.250.0080.00814.54
5.6.240.0090.00714.60
5.6.230.0090.02115.63
5.6.220.0080.01315.68
5.6.210.0110.01515.65
5.6.200.0100.01915.78
5.6.190.0100.01515.78
5.6.180.0100.02015.74
5.6.170.0070.02015.71
5.6.160.0100.01615.71
5.6.150.0090.02115.63
5.6.140.0080.02015.69
5.6.130.0110.01515.74
5.6.120.0120.01215.78
5.6.110.0090.02015.61
5.6.100.0090.01315.63
5.6.90.0100.01815.65
5.6.80.0090.01815.52
5.6.70.0080.01915.54
5.6.60.0070.02015.50
5.6.50.0090.01715.52
5.6.40.0090.01015.57
5.6.30.0060.01515.54
5.6.20.0050.01615.46
5.6.10.0100.00915.59
5.6.00.0070.01315.51
5.5.380.0100.00613.93
5.5.370.0080.01815.17
5.5.360.0100.01515.04
5.5.350.0070.01615.20
5.5.340.0060.02015.29
5.5.330.0090.02115.24
5.5.320.0060.02215.24
5.5.310.0080.02415.24
5.5.300.0120.01615.13
5.5.290.0120.01715.26
5.5.280.0150.01815.24
5.5.270.0090.02115.29
5.5.260.0070.01715.25
5.5.250.0110.01915.21
5.5.240.0080.01715.10
5.5.230.0120.01815.10
5.5.220.0090.02115.07
5.5.210.0100.01815.20
5.5.200.0080.01415.14
5.5.190.0120.01014.96
5.5.180.0120.01015.01
5.5.170.0110.00514.52
5.5.160.0080.01615.02
5.5.150.0120.01414.99
5.5.140.0070.01514.96
5.5.130.0090.01314.97
5.5.120.0110.01615.05
5.5.110.0130.01014.96
5.5.100.0070.01515.07
5.5.90.0100.01015.00
5.5.80.0060.01315.12
5.5.70.0080.01315.10
5.5.60.0100.01015.00
5.5.50.0080.01515.06
5.5.40.0060.01415.09
5.5.30.0070.01315.15
5.5.20.0080.01315.07
5.5.10.0090.01115.07
5.5.00.0080.01114.95
5.4.450.0100.01913.70
5.4.440.0050.02113.67
5.4.430.0060.02113.73
5.4.420.0080.01513.73
5.4.410.0090.01813.64
5.4.400.0070.01513.48
5.4.390.0070.02013.46
5.4.380.0070.02113.64
5.4.370.0040.01713.54
5.4.360.0080.01213.54
5.4.350.0080.01213.52
5.4.340.0090.01013.48
5.4.330.0080.00512.20
5.4.320.0090.01013.48
5.4.310.0080.01113.55
5.4.300.0060.01313.62
5.4.290.0080.01113.52
5.4.280.0080.01313.48
5.4.270.0060.01513.62
5.4.260.0080.01313.50
5.4.250.0080.01213.57
5.4.240.0070.01513.53
5.4.230.0070.01213.45
5.4.220.0080.01813.40
5.4.210.0070.01213.38
5.4.200.0080.01013.47
5.4.190.0060.01213.40
5.4.180.0090.01013.40
5.4.170.0070.01113.51
5.4.160.0090.01813.51
5.4.150.0110.00913.53
5.4.140.0060.01213.02
5.4.130.0120.00812.97
5.4.120.0070.01213.05
5.4.110.0080.01513.00
5.4.100.0090.00913.13
5.4.90.0060.01113.06
5.4.80.0070.01713.09
5.4.70.0050.01213.10
5.4.60.0090.00912.95
5.4.50.0080.01013.00
5.4.40.0080.01013.02
5.4.30.0060.01113.14
5.4.20.0040.01413.10
5.4.10.0070.01413.11
5.4.00.0070.01012.92

preferences:
63.65 ms | 401 KiB | 5 Q