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.0070.01016.88
8.3.50.0120.00918.43
8.3.40.0140.00019.04
8.3.30.0070.00718.95
8.3.20.0070.00020.36
8.3.10.0060.00321.73
8.3.00.0050.00319.51
8.2.180.0090.00918.67
8.2.170.0150.00022.96
8.2.160.0070.00720.64
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0000.00918.00
8.2.120.0040.00426.35
8.2.110.0040.00721.18
8.2.100.0000.01220.64
8.2.90.0060.00618.14
8.2.80.0040.00419.25
8.2.70.0000.00818.05
8.2.60.0040.00418.14
8.2.50.0040.00418.10
8.2.40.0000.00719.41
8.2.30.0080.00020.82
8.2.20.0030.00618.01
8.2.10.0000.00818.26
8.2.00.0040.00418.30
8.1.280.0100.01025.92
8.1.270.0000.00923.79
8.1.260.0000.00828.09
8.1.250.0000.00928.09
8.1.240.0030.00522.18
8.1.230.0060.00619.27
8.1.220.0040.00417.89
8.1.210.0080.00318.77
8.1.200.0100.00017.61
8.1.190.0050.00317.60
8.1.180.0080.00018.10
8.1.170.0030.00618.83
8.1.160.0000.00722.07
8.1.150.0030.00519.00
8.1.140.0000.00819.69
8.1.130.0000.00717.91
8.1.120.0080.00017.74
8.1.110.0000.00817.75
8.1.100.0000.00817.79
8.1.90.0000.00817.70
8.1.80.0000.00817.77
8.1.70.0000.00717.72
8.1.60.0060.00617.78
8.1.50.0000.00817.77
8.1.40.0040.00417.59
8.1.30.0000.00817.88
8.1.20.0000.00717.82
8.1.10.0030.00517.71
8.1.00.0000.01017.68
8.0.300.0060.00319.84
8.0.290.0030.00817.00
8.0.280.0030.00318.56
8.0.270.0050.00217.41
8.0.260.0040.00417.38
8.0.250.0040.00417.21
8.0.240.0070.00017.20
8.0.230.0030.00317.14
8.0.220.0030.00317.19
8.0.210.0050.00317.08
8.0.200.0050.00217.25
8.0.190.0040.00417.23
8.0.180.0030.00617.21
8.0.170.0000.00817.23
8.0.160.0030.00417.17
8.0.150.0000.00817.03
8.0.140.0040.00417.01
8.0.130.0000.00613.56
8.0.120.0060.00317.13
8.0.110.0070.00017.11
8.0.100.0070.00017.18
8.0.90.0020.00516.99
8.0.80.0070.01017.06
8.0.70.0020.00517.21
8.0.60.0030.00517.04
8.0.50.0000.00817.03
8.0.30.0110.00917.31
8.0.20.0100.00817.45
8.0.10.0070.00017.16
8.0.00.0120.00616.93
7.4.330.0000.00516.77
7.4.320.0030.00316.65
7.4.300.0000.00716.75
7.4.290.0000.00716.72
7.4.280.0040.00416.86
7.4.270.0000.00716.85
7.4.260.0000.00816.80
7.4.250.0080.00016.79
7.4.240.0040.00416.69
7.4.230.0000.00716.54
7.4.220.0170.00016.70
7.4.210.0050.00916.89
7.4.200.0000.00716.64
7.4.160.0130.01016.90
7.4.150.0100.00717.40
7.4.140.0140.01317.86
7.4.130.0090.00916.80
7.4.120.0130.00616.71
7.4.110.0070.01116.68
7.4.100.0000.02316.76
7.4.90.0040.01316.73
7.4.80.0110.00619.39
7.4.70.0130.01016.88
7.4.60.0080.00816.66
7.4.50.0050.01016.65
7.4.40.0150.00316.40
7.4.30.0130.00716.79
7.4.00.0130.00315.14
7.3.330.0020.00213.33
7.3.320.0020.00313.50
7.3.310.0030.00316.54
7.3.300.0000.00616.62
7.3.290.0000.00716.53
7.3.280.0040.01616.55
7.3.270.0080.00817.40
7.3.260.0140.00316.48
7.3.240.0080.01216.57
7.3.230.0110.00716.62
7.3.210.0100.01016.66
7.3.200.0070.01116.70
7.3.190.0160.00316.63
7.3.180.0150.00616.77
7.3.170.0070.01016.78
7.3.160.0090.00616.60
7.2.330.0060.01317.05
7.2.320.0090.01516.74
7.2.310.0130.00717.05
7.2.300.0070.01316.76
7.2.290.0100.00817.02
7.2.60.0060.00616.93
7.2.00.0030.01319.35
7.1.200.0140.00016.11
7.1.100.0000.00918.10
7.1.70.0000.00717.46
7.1.60.0090.01519.48
7.1.50.0030.01717.26
7.1.00.0030.07722.57
7.0.200.0300.00014.96
7.0.60.0070.08320.04
7.0.50.0070.08717.91
7.0.40.0030.04320.04
7.0.30.0270.03720.22
7.0.20.0230.07320.14
7.0.10.0070.09020.18
7.0.00.0070.07320.33
5.6.280.0130.06320.86
5.6.210.0030.06320.54
5.6.200.0100.07718.18
5.6.190.0030.04320.77
5.6.180.0170.04320.57
5.6.170.0130.04320.50
5.6.160.0100.05720.33
5.6.150.0130.07318.22
5.6.140.0070.04018.21
5.6.130.0100.04718.10
5.6.120.0200.07021.04
5.6.110.0100.05320.98
5.6.100.0100.03320.98
5.6.90.0030.07320.95
5.6.80.0000.04320.50
5.5.350.0030.07720.49
5.5.340.0130.06017.91
5.5.330.0100.08020.38
5.5.320.0030.06320.07
5.5.310.0300.07320.27
5.5.300.0000.08017.91
5.5.290.0070.08718.04
5.5.280.0030.08720.87
5.5.270.0100.08720.83
5.5.260.0030.04020.67
5.5.250.0100.04720.68
5.5.240.0230.07020.36

preferences:
66.38 ms | 400 KiB | 5 Q