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'); }

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.0090.00916.75
8.3.50.0160.00522.04
8.3.40.0110.00319.04
8.3.30.0120.00318.95
8.3.20.0040.00420.32
8.3.10.0000.00821.60
8.3.00.0030.00619.75
8.2.180.0040.01216.88
8.2.170.0120.00322.96
8.2.160.0130.00720.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00619.75
8.2.120.0050.00226.35
8.2.110.0030.00621.16
8.2.100.0040.00818.22
8.2.90.0050.00318.11
8.2.80.0000.00917.97
8.2.70.0060.00317.88
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0000.00719.51
8.2.30.0070.00020.71
8.2.20.0030.00618.01
8.2.10.0040.00418.27
8.2.00.0060.00318.31
8.1.280.0110.00425.92
8.1.270.0040.00423.95
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0000.00922.73
8.1.230.0090.00320.74
8.1.220.0000.01017.91
8.1.210.0080.00018.88
8.1.200.0030.00617.60
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0000.00818.84
8.1.160.0050.00222.07
8.1.150.0080.00019.05
8.1.140.0000.00819.71
8.1.130.0000.00717.75
8.1.120.0050.00217.72
8.1.110.0070.00017.74
8.1.100.0000.00717.71
8.1.90.0040.00417.63
8.1.80.0040.00417.71
8.1.70.0040.00417.67
8.1.60.0090.00317.71
8.1.50.0000.00817.68
8.1.40.0030.00517.76
8.1.30.0030.00617.79
8.1.20.0000.00917.73
8.1.10.0050.00317.80
8.1.00.0060.00617.73
8.0.300.0040.00420.00
8.0.290.0070.00016.88
8.0.280.0040.00418.63
8.0.270.0040.00417.32
8.0.260.0000.00617.33
8.0.250.0000.00717.22
8.0.240.0080.00017.27
8.0.230.0040.00417.28
8.0.220.0030.00517.16
8.0.210.0030.00417.16
8.0.200.0070.00017.26
8.0.190.0040.00417.26
8.0.180.0030.00617.24
8.0.170.0050.00317.08
8.0.160.0030.00317.29
8.0.150.0030.00617.21
8.0.140.0050.00217.01
8.0.130.0030.00313.52
8.0.120.0090.00017.11
8.0.110.0070.00017.01
8.0.100.0000.00717.10
8.0.90.0020.00517.12
8.0.80.0080.00817.11
8.0.70.0020.00517.18
8.0.60.0000.00717.18
8.0.50.0070.00017.14
8.0.30.0150.00417.31
8.0.20.0060.01417.53
8.0.10.0000.00717.08
8.0.00.0090.01117.03
7.4.330.0020.00216.82
7.4.320.0000.00616.72
7.4.300.0060.00016.70
7.4.290.0040.00416.62
7.4.280.0050.00516.70
7.4.270.0030.00316.82
7.4.260.0030.00316.71
7.4.250.0000.00716.67
7.4.240.0020.00516.74
7.4.230.0030.00316.74
7.4.220.0120.00616.60
7.4.210.0090.00616.71
7.4.200.0030.00316.55
7.4.160.0110.00816.57
7.4.150.0100.01017.40
7.4.140.0140.00517.86
7.4.130.0050.01316.87
7.4.120.0120.00916.69
7.4.110.0100.01016.71
7.4.100.0130.00616.69
7.4.90.0150.00316.80
7.4.80.0150.00319.39
7.4.70.0150.00916.80
7.4.60.0030.01816.79
7.4.50.0090.00616.78
7.4.40.0110.00616.85
7.4.30.0090.01316.91
7.4.00.0100.00715.30
7.3.330.0050.00013.21
7.3.320.0030.00313.50
7.3.310.0000.00816.49
7.3.300.0030.00316.44
7.3.290.0030.00316.64
7.3.280.0070.00916.52
7.3.270.0110.01117.40
7.3.260.0100.00716.64
7.3.250.0130.00416.65
7.3.240.0120.00816.71
7.3.230.0090.01216.68
7.3.210.0090.00916.58
7.3.200.0000.01516.49
7.3.190.0110.00516.64
7.3.180.0100.00616.63
7.3.170.0190.00916.49
7.3.160.0100.00716.64
7.2.330.0140.01016.81
7.2.320.0100.00716.99
7.2.310.0100.01016.90
7.2.300.0070.01116.89
7.2.290.0110.00617.10
7.2.00.0080.01219.54
7.1.100.0030.01018.35
7.1.70.0000.00717.41
7.1.60.0090.01219.48
7.1.50.0070.01717.19
7.1.00.0000.08022.41
7.0.200.0500.00615.03
7.0.60.0300.07021.74
7.0.50.0130.05317.86
7.0.40.0070.09020.23
7.0.30.0070.05020.17
7.0.20.0300.07320.16
7.0.10.0070.09020.32
7.0.00.0030.05720.18
5.6.280.0000.04021.13
5.6.210.0070.06720.51
5.6.200.0000.07318.19
5.6.190.0030.04020.33
5.6.180.0200.07720.41
5.6.170.0200.08020.33
5.6.160.0100.08020.49
5.6.150.0100.03718.23
5.6.140.0100.07718.18
5.6.130.0130.07318.22
5.6.120.0070.03721.00
5.6.110.0170.07721.04
5.6.100.0100.07321.13
5.6.90.0070.08321.07
5.6.80.0030.08720.38
5.5.350.0200.07320.41
5.5.340.0000.04318.01
5.5.330.0070.07720.23
5.5.320.0200.08020.29
5.5.310.0200.05320.41
5.5.300.0070.03717.89
5.5.290.0100.06018.02
5.5.280.0170.07720.77
5.5.270.0030.04020.67
5.5.260.0000.04320.86
5.5.250.0100.06020.54
5.5.240.0100.03320.18

preferences:
40.92 ms | 401 KiB | 5 Q