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.00716.75
8.3.50.0120.00622.00
8.3.40.0070.00718.82
8.3.30.0120.00319.21
8.3.20.0050.00320.30
8.3.10.0000.00821.80
8.3.00.0080.00019.51
8.2.180.0090.01218.79
8.2.170.0070.00722.96
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00419.48
8.2.120.0040.00426.35
8.2.110.0030.00621.11
8.2.100.0110.00018.28
8.2.90.0050.00318.28
8.2.80.0080.00017.97
8.2.70.0000.00817.74
8.2.60.0030.00618.15
8.2.50.0030.00518.07
8.2.40.0000.00819.46
8.2.30.0040.00420.63
8.2.20.0080.00018.00
8.2.10.0040.00418.22
8.2.00.0040.00418.17
8.1.280.0070.00725.92
8.1.270.0040.00423.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0150.00622.64
8.1.230.0090.00321.10
8.1.220.0030.00617.88
8.1.210.0050.00318.88
8.1.200.0030.00617.73
8.1.190.0040.00417.60
8.1.180.0000.00818.10
8.1.170.0000.00918.75
8.1.160.0070.00021.99
8.1.150.0000.00819.04
8.1.140.0050.00319.74
8.1.130.0040.00417.80
8.1.120.0030.00417.80
8.1.110.0070.00017.64
8.1.100.0040.00417.74
8.1.90.0070.00017.71
8.1.80.0000.00717.70
8.1.70.0030.00317.73
8.1.60.0030.00917.76
8.1.50.0000.00817.63
8.1.40.0080.00017.59
8.1.30.0040.00417.80
8.1.20.0040.00417.85
8.1.10.0040.00417.79
8.1.00.0060.00617.67
8.0.300.0070.00020.06
8.0.290.0000.00717.13
8.0.280.0050.00218.53
8.0.270.0000.00817.35
8.0.260.0000.00617.32
8.0.250.0040.00417.13
8.0.240.0030.00517.15
8.0.230.0040.00317.23
8.0.220.0030.00317.12
8.0.210.0040.00417.11
8.0.200.0030.00317.21
8.0.190.0000.00717.21
8.0.180.0030.00617.14
8.0.170.0060.00317.12
8.0.160.0000.00717.18
8.0.150.0030.00616.95
8.0.140.0000.00717.01
8.0.130.0030.00313.56
8.0.120.0030.00517.00
8.0.110.0040.00417.11
8.0.100.0000.00716.99
8.0.90.0000.00717.16
8.0.80.0110.00817.09
8.0.70.0050.00216.97
8.0.60.0050.00217.19
8.0.50.0030.00517.19
8.0.30.0180.00217.53
8.0.20.0130.00817.40
8.0.10.0030.00517.23
8.0.00.0060.01216.97
7.4.330.0050.00016.82
7.4.320.0000.00616.74
7.4.300.0070.00016.87
7.4.290.0000.00716.82
7.4.280.0040.00416.82
7.4.270.0030.00316.77
7.4.260.0040.00416.82
7.4.250.0000.00716.68
7.4.240.0050.00216.75
7.4.230.0000.00716.82
7.4.220.0080.01116.64
7.4.210.0050.01316.89
7.4.200.0040.00416.71
7.4.160.0130.00316.71
7.4.150.0070.01317.40
7.4.140.0150.00917.86
7.4.130.0060.01216.66
7.4.120.0130.00616.79
7.4.110.0060.01316.62
7.4.100.0090.00916.65
7.4.90.0070.01016.68
7.4.80.0030.01519.39
7.4.70.0070.01016.86
7.4.60.0070.01016.69
7.4.50.0030.00916.87
7.4.40.0100.00516.79
7.4.30.0110.00716.63
7.4.00.0070.01015.33
7.3.330.0030.00313.43
7.3.320.0000.00513.37
7.3.310.0030.00416.44
7.3.300.0060.00316.59
7.3.290.0050.00216.53
7.3.280.0080.01016.53
7.3.270.0130.00617.40
7.3.260.0040.01316.48
7.3.250.0090.00916.62
7.3.240.0110.00916.58
7.3.230.0140.01116.82
7.3.210.0080.00916.45
7.3.200.0080.00816.95
7.3.190.0100.00716.43
7.3.180.0130.00916.38
7.3.170.0060.01216.54
7.3.160.0100.00616.56
7.2.330.0110.01416.94
7.2.320.0090.01216.99
7.2.310.0120.00917.04
7.2.300.0030.01316.84
7.2.290.0060.01016.88
7.2.80.0070.00716.62
7.2.60.0070.00717.14
7.1.200.0100.00316.11
7.1.100.0030.01018.42
7.1.70.0000.01017.44
7.1.60.0040.01919.48
7.1.50.0070.01417.17
7.1.00.0100.05022.29
7.0.200.0400.01014.87
7.0.60.0070.08019.79
7.0.50.0000.04317.89
7.0.40.0030.05020.04
7.0.30.0230.04020.12
7.0.20.0200.05020.33
7.0.10.0070.08320.09
7.0.00.0030.05020.09
5.6.280.0000.04021.15
5.6.210.0130.07320.59
5.6.200.0030.05318.22
5.6.190.0200.03720.39
5.6.180.0200.04320.61
5.6.170.0230.03720.50
5.6.160.0130.07720.44
5.6.150.0100.07718.12
5.6.140.0030.08018.11
5.6.130.0130.07318.16
5.6.120.0070.09021.01
5.6.110.0130.07021.09
5.6.100.0030.05720.96
5.6.90.0100.08020.94
5.6.80.0100.06720.28
5.5.350.0070.08020.32
5.5.340.0070.05718.02
5.5.330.0030.05020.15
5.5.320.0070.07720.30
5.5.310.0330.08020.33
5.5.300.0030.04317.91
5.5.290.0100.04317.97
5.5.280.0030.04020.85
5.5.270.0100.08020.67
5.5.260.0100.03720.86
5.5.250.0100.08020.70
5.5.240.0130.07320.12

preferences:
44.1 ms | 401 KiB | 5 Q