3v4l.org

run code in 300+ PHP versions simultaneously
<?php $todayTime = strtotime('now'); $thisMondayTime = strtotime('- ' . (intval(date('N', $todayTime)) - 1) . ' days', $todayTime); echo date('m.d.y', strtotime('last Monday', strtotime('+ 28 days'))) . "\n"; echo date('m.d.y',strtotime('next Monday', strtotime('+ 28 days'))) . "\n"; echo date('m.d.y',strtotime('last Monday')) . "\n"; echo date('m.d.y',strtotime('last Monday', strtotime('last Monday'))) . "\n"; echo "\n"; echo date('m.d.y',strtotime('- ' . (intval(date('N')) - 1) . ' 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.40.0070.00718.84
8.3.30.0090.00619.01
8.3.20.0030.00518.76
8.3.10.0080.00020.95
8.3.00.0070.00319.68
8.2.170.0060.00922.96
8.2.160.0070.00720.25
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00721.13
8.2.110.0050.00520.70
8.2.100.0060.00618.03
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0030.00717.88
8.2.60.0040.00417.93
8.2.50.0110.00318.07
8.2.40.0080.00018.09
8.2.30.0000.00819.58
8.2.20.0030.00517.96
8.2.10.0040.00417.84
8.2.00.0060.00317.99
8.1.270.0050.00223.99
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.62
8.1.230.0040.00821.03
8.1.220.0040.00418.77
8.1.210.0000.00919.04
8.1.200.0030.00617.35
8.1.190.0040.00417.52
8.1.180.0030.00618.10
8.1.170.0080.00018.86
8.1.160.0070.00018.95
8.1.150.0040.00418.89
8.1.140.0000.00817.63
8.1.130.0000.00717.88
8.1.120.0070.00017.68
8.1.110.0050.00317.71
8.1.100.0000.00817.65
8.1.90.0000.00717.57
8.1.80.0000.00717.55
8.1.70.0030.00317.61
8.1.60.0000.00817.68
8.1.50.0070.00017.73
8.1.40.0030.00517.75
8.1.30.0040.00417.78
8.1.20.0040.00417.75
8.1.10.0000.00917.61
8.1.00.0040.00417.58
8.0.300.0040.00419.98
8.0.290.0090.00017.16
8.0.280.0040.00418.60
8.0.270.0030.00317.41
8.0.260.0070.00017.02
8.0.250.0050.00317.22
8.0.240.0070.00517.20
8.0.230.0070.00017.09
8.0.220.0070.00017.17
8.0.210.0070.00017.21
8.0.200.0030.00317.11
8.0.190.0040.00417.11
8.0.180.0000.00817.14
8.0.170.0040.00417.05
8.0.160.0050.00217.16
8.0.150.0000.00817.23
8.0.140.0000.00817.10
8.0.130.0000.00513.48
8.0.120.0050.00317.14
8.0.110.0030.00517.18
8.0.100.0070.00017.21
8.0.90.0040.00417.00
8.0.80.0030.01517.19
8.0.70.0050.00217.02
8.0.60.0000.00717.05
8.0.50.0040.00417.15
8.0.30.0130.00617.36
8.0.20.0100.01017.43
8.0.10.0000.00817.26
8.0.00.0150.00616.83
7.4.330.0000.00516.75
7.4.320.0000.00616.72
7.4.300.0000.00616.70
7.4.290.0030.00316.70
7.4.280.0000.00716.79
7.4.270.0000.00816.80
7.4.260.0030.00313.51
7.4.250.0080.00016.72
7.4.240.0070.00016.74
7.4.230.0000.00816.70
7.4.220.0110.00716.69
7.4.210.0120.00716.76
7.4.200.0050.00316.81
7.4.190.0050.00216.67
7.4.160.0060.01016.89
7.4.150.0160.00317.40
7.4.140.0100.00717.86
7.4.130.0090.00716.85
7.4.120.0100.00716.74
7.4.110.0030.01416.77
7.4.100.0100.00716.83
7.4.90.0090.00916.75
7.4.80.0090.01216.57
7.4.70.0070.01016.73
7.4.60.0150.02216.85
7.4.50.0060.00316.69
7.4.40.0030.01322.77
7.4.30.0080.00816.58
7.4.10.0050.01115.23
7.4.00.0070.01015.01
7.3.330.0030.00313.33
7.3.320.0050.00013.24
7.3.310.0030.00316.47
7.3.300.0000.00616.31
7.3.290.0100.01016.36
7.3.280.0120.00716.41
7.3.270.0120.00617.40
7.3.260.0090.00818.24
7.3.250.0060.01116.59
7.3.240.0070.01016.61
7.3.230.0120.00616.58
7.3.210.0130.00316.52
7.3.200.0150.00619.39
7.3.190.0140.00416.41
7.3.180.0100.00616.62
7.3.170.0050.01016.42
7.3.160.0100.01016.43
7.3.130.0050.01114.94
7.3.120.0050.01114.94
7.3.110.0090.00915.09
7.3.100.0050.01015.01
7.3.90.0060.00914.94
7.3.80.0070.00514.98
7.3.70.0040.00915.03
7.3.60.0100.00214.83
7.3.50.0090.00215.02
7.3.40.0080.00515.00
7.3.30.0040.01114.88
7.3.20.0050.00916.89
7.3.10.0060.00616.82
7.3.00.0030.00716.89
7.2.330.0100.01416.74
7.2.320.0100.00716.89
7.2.310.0140.00716.95
7.2.300.0060.01016.75
7.2.290.0090.00916.88
7.2.260.0040.01415.27
7.2.250.0070.01115.49
7.2.240.0040.01015.15
7.2.230.0100.00515.36
7.2.220.0080.00815.29
7.2.210.0070.00715.39
7.2.200.0060.00615.29
7.2.190.0040.00915.22
7.2.180.0040.01015.25
7.2.170.0040.01115.26
7.2.160.0090.00715.21
7.2.150.0050.00817.19
7.2.140.0080.00617.17
7.2.130.0030.00917.05
7.2.120.0080.00617.25
7.2.110.0020.01017.15
7.2.100.0060.00817.11
7.2.90.0030.00717.18
7.2.80.0040.00917.04
7.2.70.0050.01017.29
7.2.60.0060.01017.10
7.2.50.0100.00717.21
7.2.40.0060.00617.22
7.2.30.0070.00817.16
7.2.20.0030.01017.05
7.2.10.0070.00517.09
7.2.00.0060.00817.87
7.1.330.0070.00716.05
7.1.320.0060.00415.87
7.1.310.0020.01315.94
7.1.300.0030.01015.77
7.1.290.0020.01215.73
7.1.280.0090.00115.84
7.1.270.0050.00616.01
7.1.260.0050.00715.85
7.1.250.0040.00815.86
7.1.240.0030.00615.80
7.1.230.0000.01315.82
7.1.220.0020.01115.82
7.1.210.0040.00615.94
7.1.200.0030.00915.96
7.1.190.0060.00715.89
7.1.180.0070.00415.74
7.1.170.0050.00715.87
7.1.160.0060.00515.80
7.1.150.0050.00915.98
7.1.140.0030.01015.97
7.1.130.0050.00815.77
7.1.120.0090.00715.99
7.1.110.0050.01015.83
7.1.100.0060.00716.63
7.1.90.0110.00315.97
7.1.80.0020.01315.91
7.1.70.0040.00816.46
7.1.60.0070.01116.99
7.1.50.0060.00816.38
7.1.40.0040.01115.97
7.1.30.0050.00815.90
7.1.20.0050.01115.80
7.1.10.0070.00515.93
7.1.00.0040.01618.07
7.0.330.0090.00415.18
7.0.320.0100.00215.51
7.0.310.0030.01215.56
7.0.300.0080.00515.32
7.0.290.0030.00815.21
7.0.280.0040.01115.55
7.0.270.0020.00815.52
7.0.260.0060.00615.44
7.0.250.0070.00415.47
7.0.240.0050.00915.41
7.0.230.0040.00715.50
7.0.220.0070.00715.41
7.0.210.0080.00615.62
7.0.200.0030.00816.11
7.0.190.0020.01115.44
7.0.180.0020.01415.50
7.0.170.0030.00615.33
7.0.160.0060.00615.40
7.0.150.0050.00415.44
7.0.140.0060.02817.70
7.0.130.0040.00915.37
7.0.120.0060.00515.48
7.0.110.0070.00515.50
7.0.100.0100.02817.01
7.0.90.0040.02317.06
7.0.80.0200.02816.97
7.0.70.0180.02416.92
7.0.60.0170.02716.97
7.0.50.0170.03317.09
7.0.40.0040.03215.75
7.0.30.0080.03215.77
7.0.20.0110.01715.78
7.0.10.0050.03115.74
7.0.00.0050.03315.68
5.6.400.0060.00414.33
5.6.390.0030.00814.40
5.6.380.0050.00614.31
5.6.370.0080.00814.41
5.6.360.0080.00614.64
5.6.350.0100.00514.44
5.6.340.0050.00814.53
5.6.330.0050.00914.25
5.6.320.0070.01114.23
5.6.310.0070.00614.54
5.6.300.0030.00714.31
5.6.290.0040.01014.61
5.6.280.0040.03116.69
5.6.270.0040.01014.38
5.6.260.0050.00814.41
5.6.250.0090.02816.53
5.6.240.0040.03016.48
5.6.230.0090.02816.54
5.6.220.0060.03016.62
5.6.210.0060.03216.50
5.6.200.0060.02516.73
5.6.190.0040.01816.68
5.6.180.0050.02016.67
5.6.170.0040.02716.66
5.6.160.0080.02116.78
5.6.150.0070.03416.69
5.6.140.0090.01716.58
5.6.130.0030.02816.74
5.6.120.0070.03316.65
5.6.110.0070.03016.58
5.6.100.0060.03116.58
5.6.90.0030.03316.52
5.6.80.0050.02416.36
5.6.70.0070.03616.28
5.6.60.0060.02616.40
5.6.50.0090.01916.41
5.6.40.0050.03016.55
5.6.30.0080.03016.33
5.6.20.0050.03016.42
5.6.10.0080.01916.29
5.6.00.0070.03016.23
5.5.380.0050.02216.34
5.5.370.0030.02516.34
5.5.360.0030.01916.47
5.5.350.0060.03216.45
5.5.340.0060.03316.66
5.5.330.0060.03216.43
5.5.320.0040.03116.43
5.5.310.0100.02916.57
5.5.300.0060.03216.56
5.5.290.0050.02016.53
5.5.280.0080.03116.70
5.5.270.0060.02716.68
5.5.260.0090.03016.50
5.5.250.0070.03116.38
5.5.240.0070.03016.24
5.5.230.0040.03316.41
5.5.220.0050.02416.29
5.5.210.0050.03016.31
5.5.200.0050.02816.19
5.5.190.0060.03416.10
5.5.180.0110.02516.38
5.5.170.0030.00714.39
5.5.160.0030.02316.21
5.5.150.0060.02716.42
5.5.140.0070.02916.30
5.5.130.0060.03216.25
5.5.120.0080.01616.33
5.5.110.0050.03116.20
5.5.100.0030.02616.25
5.5.90.0080.02216.18
5.5.80.0080.02416.18
5.5.70.0070.02816.28
5.5.60.0020.03216.12
5.5.50.0110.02916.20
5.5.40.0070.02816.19
5.5.30.0080.02816.20
5.5.20.0070.03016.18
5.5.10.0110.02716.12
5.5.00.0070.03016.31
5.4.450.0050.03014.28
5.4.440.0040.03414.34
5.4.430.0070.01714.22
5.4.420.0060.02014.18
5.4.410.0030.03114.27
5.4.400.0060.02914.16
5.4.390.0100.02414.13
5.4.380.0060.02614.11
5.4.370.0050.02814.06
5.4.360.0070.02714.12
5.4.350.0040.02714.06
5.4.340.0060.02214.13
5.4.330.0040.00611.68
5.4.320.0040.02114.12
5.4.310.0040.03214.22
5.4.300.0060.02914.04
5.4.290.0070.01714.17
5.4.280.0040.01914.11
5.4.270.0050.02014.06
5.4.260.0100.02414.13
5.4.250.0110.01913.99
5.4.240.0020.02614.07
5.4.230.0070.02814.17
5.4.220.0040.02914.00
5.4.210.0010.02214.00
5.4.200.0060.02814.13
5.4.190.0040.02014.02
5.4.180.0030.03214.13
5.4.170.0070.02114.08
5.4.160.0080.02014.00
5.4.150.0070.02414.04
5.4.140.0020.02913.13
5.4.130.0050.01813.17
5.4.120.0030.01713.22
5.4.110.0040.02713.27
5.4.100.0080.02213.19
5.4.90.0020.02213.20
5.4.80.0060.02813.26
5.4.70.0030.01713.27
5.4.60.0080.02513.16
5.4.50.0010.02713.21
5.4.40.0020.02313.24
5.4.30.0050.02213.16
5.4.20.0000.01913.14
5.4.10.0060.02713.24
5.4.00.0060.01813.05
5.3.290.0050.03112.51
5.3.280.0040.03012.53
5.3.270.0030.03012.48
5.3.260.0020.02012.51
5.3.250.0030.02112.54
5.3.240.0030.02512.52
5.3.230.0060.02812.52
5.3.220.0040.01612.52
5.3.210.0020.02812.52
5.3.200.0040.02612.51
5.3.190.0030.03212.51
5.3.180.0070.02712.50
5.3.170.0070.02512.50
5.3.160.0090.02012.52
5.3.150.0130.01912.51
5.3.140.0070.02612.47
5.3.130.0050.02712.50
5.3.120.0070.02512.52
5.3.110.0100.02612.52
5.3.100.0030.02612.30
5.3.90.0040.02312.34
5.3.80.0070.02412.31
5.3.70.0030.01612.34
5.3.60.0010.02912.29
5.3.50.0030.02912.31
5.3.40.0050.02712.24
5.3.30.0070.01612.25
5.3.20.0020.02012.18
5.3.10.0020.02912.17
5.3.00.0050.02812.20
5.2.170.0000.05011.10
5.2.160.0070.02311.23
5.2.150.0030.02711.00
5.2.140.0070.05711.20
5.2.130.0030.06310.96
5.2.120.0000.05711.11
5.2.110.0070.05310.97
5.2.100.0130.04711.09
5.2.90.0070.03711.11
5.2.80.0000.03311.14
5.2.70.0000.03710.99
5.2.60.0000.05010.88
5.2.50.0070.05711.02
5.2.40.0070.05310.82
5.2.30.0000.05010.93
5.2.20.0000.04010.95
5.2.10.0000.06310.97
5.2.00.0030.06310.73
5.1.60.0030.05710.00
5.1.50.0030.05310.05
5.1.40.0100.0479.86
5.1.30.0030.06010.39
5.1.20.0070.05310.27
5.1.10.0100.0479.92
5.1.00.0100.05010.11
5.0.50.0030.0479.18
5.0.40.0030.0479.18
5.0.30.0030.0409.18
5.0.20.0070.0409.18
5.0.10.0030.0379.18
5.0.00.0030.0609.18
4.4.90.0070.0309.18
4.4.80.0030.0309.18
4.4.70.0070.0339.18
4.4.60.0030.0339.18
4.4.50.0000.0379.18
4.4.40.0070.0509.18
4.4.30.0030.0379.18
4.4.20.0000.0379.18
4.4.10.0000.0379.18
4.4.00.0000.0579.18
4.3.110.0030.0339.18
4.3.100.0000.0379.18
4.3.90.0000.0309.18
4.3.80.0000.0539.18
4.3.70.0000.0379.18
4.3.60.0030.0339.18
4.3.50.0000.0309.18
4.3.40.0070.0309.18
4.3.30.0000.0379.18
4.3.20.0000.0309.18
4.3.10.0030.0339.18
4.3.00.0030.0239.18

preferences:
60.68 ms | 400 KiB | 5 Q