3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['week_of']=20151111; if(!isset($_GET['week_of'][8])&&ctype_digit($_GET['week_of'])&& DateTime::createFromFormat('Ymd',$_GET['week_of'])->format('N')===1) { $week_of=DateTime::createFromFormat('Ymd',$_GET['week_of'])->format('Y-m-d'); }elseif((new DateTime())->format('N')==1){ $week_of=new DateTime('this monday'); }else{ $week_of=new DateTime('last monday'); } echo $week_of->format('D Y-m-d');

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.0110.00716.72
8.3.50.0150.00018.30
8.3.40.0110.00418.87
8.3.30.0110.00419.06
8.3.20.0080.00020.16
8.3.10.0040.00421.85
8.3.00.0030.00519.38
8.2.180.0170.00318.66
8.2.170.0040.01122.96
8.2.160.0140.00020.52
8.2.150.0100.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00018.00
8.2.120.0080.00026.35
8.2.110.0060.00320.99
8.2.100.0080.00420.48
8.2.90.0060.00320.01
8.2.80.0050.00319.34
8.2.70.0080.00018.17
8.2.60.0060.00318.05
8.2.50.0000.00818.10
8.2.40.0070.00019.41
8.2.30.0030.00320.64
8.2.20.0000.01018.00
8.2.10.0040.00418.19
8.2.00.0040.00418.32
8.1.280.0070.00725.92
8.1.270.0030.00623.91
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0130.00322.20
8.1.230.0070.00319.20
8.1.220.0070.00417.91
8.1.210.0060.00318.77
8.1.200.0080.00017.61
8.1.190.0040.00417.61
8.1.180.0050.00318.10
8.1.170.0050.00318.84
8.1.160.0060.00322.10
8.1.150.0040.00418.96
8.1.140.0050.00319.61
8.1.130.0040.00417.89
8.1.120.0070.00017.60
8.1.110.0040.00417.61
8.1.100.0030.00517.79
8.1.90.0070.00017.69
8.1.80.0050.00317.72
8.1.70.0000.00717.75
8.1.60.0030.00717.79
8.1.50.0000.00817.66
8.1.40.0000.00817.64
8.1.30.0050.00317.84
8.1.20.0040.00417.75
8.1.10.0080.00017.77
8.1.00.0040.00717.81
8.0.300.0000.00719.84
8.0.290.0110.00616.63
8.0.280.0070.00018.60
8.0.270.0000.00817.41
8.0.260.0030.00317.45
8.0.250.0030.00317.28
8.0.240.0000.00717.27
8.0.230.0000.00717.14
8.0.220.0080.00017.14
8.0.210.0070.00017.16
8.0.200.0030.00517.29
8.0.190.0000.00717.24
8.0.180.0050.00317.18
8.0.170.0050.00317.23
8.0.160.0030.00317.21
8.0.150.0030.00617.18
8.0.140.0070.00017.02
8.0.130.0030.00313.51
8.0.120.0080.00017.04
8.0.110.0050.00217.23
8.0.100.0040.00417.21
8.0.90.0040.00417.07
8.0.80.0120.00617.11
8.0.70.0000.00716.96
8.0.60.0070.00017.08
8.0.50.0100.00017.23
8.0.30.0090.00717.20
8.0.20.0090.01117.40
8.0.10.0040.00417.27
8.0.00.0080.01016.95
7.4.330.0000.00516.87
7.4.320.0030.00316.70
7.4.300.0040.00416.65
7.4.290.0000.00716.71
7.4.280.0070.00016.86
7.4.270.0030.00316.74
7.4.260.0000.00716.72
7.4.250.0080.00016.68
7.4.240.0040.00416.74
7.4.230.0030.00316.46
7.4.220.0110.00716.73
7.4.210.0070.00716.74
7.4.200.0030.00516.56
7.4.160.0030.01316.67
7.4.150.0120.00617.40
7.4.140.0060.01417.86
7.4.130.0080.01016.76
7.4.120.0110.00716.71
7.4.110.0110.00716.75
7.4.100.0120.00916.70
7.4.90.0110.00716.77
7.4.80.0140.00319.39
7.4.70.0140.00316.76
7.4.60.0140.00316.57
7.4.50.0070.00716.77
7.4.40.0060.00916.76
7.4.30.0070.01316.93
7.4.00.0040.01415.04
7.3.330.0020.00213.42
7.3.320.0030.00213.42
7.3.310.0050.00216.39
7.3.300.0030.00316.56
7.3.290.0000.00716.45
7.3.280.0100.00616.58
7.3.270.0100.00717.40
7.3.260.0100.00716.63
7.3.250.0100.00916.63
7.3.240.0100.01416.72
7.3.230.0120.00616.60
7.3.210.0150.00816.75
7.3.200.0060.01016.53
7.3.190.0110.00716.61
7.3.180.0130.00316.56
7.3.170.0110.00716.54
7.3.160.0050.01116.89
7.3.00.0100.00716.75
7.2.330.0120.00917.10
7.2.320.0090.00916.88
7.2.310.0150.00616.80
7.2.300.0070.01016.70
7.2.290.0150.00317.05
7.2.130.0000.01916.95
7.2.120.0070.01417.22
7.2.110.0040.01617.13
7.2.100.0110.01116.88
7.2.90.0090.00317.06
7.2.80.0080.00417.13
7.2.70.0120.00617.04
7.2.60.0130.00317.19
7.2.50.0170.00316.88
7.2.40.0120.00817.03
7.2.30.0070.00717.27
7.2.20.0080.00517.04
7.2.10.0110.00017.00
7.2.00.0020.01318.28
7.1.250.0110.00815.89
7.1.240.0120.00815.69
7.1.230.0030.01315.84
7.1.220.0030.01715.88
7.1.210.0030.01015.79
7.1.200.0100.00715.93
7.1.190.0140.00415.54
7.1.180.0160.00315.96
7.1.170.0100.00616.01
7.1.160.0110.00315.62
7.1.150.0080.01215.98
7.1.140.0030.01515.97
7.1.130.0070.01115.82
7.1.120.0000.01215.97
7.1.110.0120.00615.62
7.1.100.0080.00617.00
7.1.90.0060.00915.79
7.1.80.0080.00815.93
7.1.70.0070.00516.59
7.1.60.0100.01017.65
7.1.50.0070.01216.57
7.1.40.0120.00616.10
7.1.30.0090.00615.96
7.1.20.0000.01515.93
7.1.10.0120.00415.44
7.1.00.0090.03919.16
7.0.330.0140.00715.67
7.0.320.0040.01115.25
7.0.310.0100.01015.30
7.0.300.0130.00315.57
7.0.290.0110.00715.30
7.0.280.0090.00415.57
7.0.270.0040.00815.25
7.0.260.0100.01015.16
7.0.250.0140.00015.60
7.0.240.0160.00315.60
7.0.230.0000.01315.35
7.0.220.0100.01015.30
7.0.210.0070.01115.67
7.0.200.0200.00515.17
7.0.190.0140.00315.49
7.0.180.0030.01215.37
7.0.170.0030.01215.66
7.0.160.0060.01115.72
7.0.150.0130.00615.59
7.0.140.0120.00015.48
7.0.130.0040.01215.43
7.0.120.0080.01415.44
7.0.110.0060.00915.40
7.0.100.0150.00715.21
7.0.90.0150.00615.43
7.0.80.0110.00715.58
7.0.70.0060.01215.22
7.0.60.0050.04817.70
7.0.50.0070.02216.64
7.0.40.0070.04516.94
7.0.30.0130.02616.67
7.0.20.0180.03016.76
7.0.10.0060.04116.73
7.0.00.0050.02516.86
5.6.380.0100.00514.46
5.6.370.0080.01514.72
5.6.360.0050.01514.47
5.6.350.0160.00414.34
5.6.340.0120.00914.21
5.6.330.0050.01314.33
5.6.320.0110.00714.34
5.6.310.0120.00414.73
5.6.300.0100.00314.74
5.6.290.0090.00614.79
5.6.280.0030.03517.92
5.6.270.0000.01614.70
5.6.260.0070.00714.85
5.6.250.0000.01514.49
5.6.240.0160.00014.70
5.6.230.0000.01314.54
5.6.220.0030.01514.64
5.6.210.0050.04517.54
5.6.200.0060.03216.36
5.6.190.0040.02617.35
5.6.180.0160.01917.48
5.6.170.0090.03517.58
5.6.160.0070.03917.51
5.6.150.0040.04816.27
5.6.140.0110.04216.24
5.6.130.0080.02516.29
5.6.120.0110.03817.64
5.6.110.0100.04217.78
5.6.100.0030.02917.83
5.6.90.0050.04417.69
5.6.80.0080.04217.39
5.6.70.0070.01014.31
5.6.60.0030.01214.22
5.6.50.0030.01214.35
5.6.40.0080.00814.50
5.6.30.0000.01614.23
5.6.20.0070.00714.45
5.6.10.0080.01114.54
5.6.00.0060.01114.31
5.5.380.0070.00411.60
5.5.370.0080.00311.60
5.5.360.0090.00611.60
5.5.350.0030.04715.96
5.5.340.0050.04114.78
5.5.330.0030.04015.89
5.5.320.0070.04316.01
5.5.310.0170.02315.95
5.5.300.0050.03314.74
5.5.290.0060.03514.76
5.5.280.0060.04016.18
5.5.270.0080.04716.18
5.5.260.0030.02516.29
5.5.250.0030.04816.11
5.5.240.0120.02915.81
5.5.230.0000.01211.60
5.5.220.0000.01111.60
5.5.210.0080.00311.60
5.5.200.0050.00311.60
5.5.190.0080.00311.60
5.5.180.0050.00511.60
5.5.170.0060.00311.60
5.5.160.0000.01211.60
5.5.150.0040.01111.60
5.5.140.0050.00311.60
5.5.130.0040.01111.60
5.5.120.0040.00811.60
5.5.110.0000.00811.60
5.5.100.0030.01011.60
5.5.90.0080.00411.60
5.5.80.0110.00011.60
5.5.70.0080.00011.60
5.5.60.0030.00611.60
5.5.50.0000.01211.60
5.5.40.0060.00311.60
5.5.30.0040.00911.60
5.5.20.0070.00511.60
5.5.10.0050.00511.60
5.5.00.0030.01011.60

preferences:
55.49 ms | 401 KiB | 5 Q