3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 12; $i++) { $month = $i; $year = "2013"; echo "<br />"; $FirstFridayOfMonth = date('Y-m-d', strtotime("first Friday", strtotime(date('Y-m-d' , strtotime('-1 day' , strtotime ($year.'-'.$month.'-01')))))); echo "First friday of ".$month."-".$year." : ".$FirstFridayOfMonth; echo "<br />"; $LastThursdayOfMonth = date('Y-m-d', strtotime("last Thursday", strtotime(date('Y-m-d' , strtotime('+1 month' , strtotime ($year.'-'.$month.'-01')))))); echo "Last Thursday of ".$month."-".$year." : ".$LastThursdayOfMonth; echo "<br />"; $LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime(date('Y-m-d' , strtotime('+1 month' , strtotime ($year.'-'.$month.'-01')))))); echo "Last Friday of ".$month."-".$year." : ".$LastFridayOfMonth; echo "<br />"; } ?>

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.0080.00818.84
8.3.30.0140.00019.18
8.3.20.0080.00019.93
8.3.10.0080.00821.92
8.3.00.0030.00622.30
8.2.170.0120.00322.96
8.2.160.0040.01121.06
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0100.01317.88
8.2.110.0070.00322.21
8.2.100.0060.00617.98
8.2.90.0030.00517.75
8.2.80.0040.00719.08
8.2.70.0040.00417.88
8.2.60.0040.00417.88
8.2.50.0060.00317.88
8.2.40.0100.00019.73
8.2.30.0040.00417.97
8.2.20.0040.00417.85
8.2.10.0000.00817.90
8.2.00.0130.00318.03
8.1.270.0030.00623.99
8.1.260.0050.00526.35
8.1.250.0000.00828.09
8.1.240.0090.00023.98
8.1.230.0040.00719.15
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0000.00917.65
8.1.180.0030.00618.10
8.1.170.0080.00019.09
8.1.160.0040.00419.04
8.1.150.0030.00618.95
8.1.140.0000.00817.67
8.1.130.0000.00717.98
8.1.120.0080.00017.61
8.1.110.0000.00817.66
8.1.100.0050.00217.58
8.1.90.0000.00717.69
8.1.80.0030.00617.69
8.1.70.0000.00717.76
8.1.60.0090.00017.74
8.1.50.0040.00417.64
8.1.40.0000.00817.77
8.1.30.0050.00317.79
8.1.20.0030.00617.77
8.1.10.0060.00317.76
8.1.00.0040.00417.77
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0020.00518.26
8.0.270.0040.00418.21
8.0.260.0000.00717.07
8.0.250.0000.00717.30
8.0.240.0040.00417.24
8.0.230.0030.00617.23
8.0.220.0000.00717.16
8.0.210.0000.00717.17
8.0.200.0000.00717.31
8.0.190.0030.00517.31
8.0.180.0040.00417.10
8.0.170.0000.00917.13
8.0.160.0050.00317.09
8.0.150.0040.00417.09
8.0.140.0000.00917.16
8.0.130.0030.00313.53
8.0.120.0000.00916.98
8.0.110.0040.00417.09
8.0.100.0000.00817.18
8.0.90.0080.00017.29
8.0.80.0120.00617.10
8.0.70.0000.00817.22
8.0.60.0040.00417.05
8.0.50.0000.00817.21
8.0.30.0130.00817.25
8.0.20.0120.00717.40
8.0.10.0000.00917.20
8.0.00.0140.00917.02
7.4.330.0030.00315.20
7.4.320.0000.00716.81
7.4.300.0030.00516.74
7.4.290.0070.00016.84
7.4.280.0000.00716.71
7.4.270.0050.00316.82
7.4.260.0000.00816.84
7.4.250.0040.00416.68
7.4.240.0040.00416.70
7.4.230.0040.00416.48
7.4.220.0090.01016.74
7.4.210.0070.01016.79
7.4.200.0000.00716.66
7.4.190.0040.00416.62
7.4.160.0120.00616.69
7.4.150.0080.01117.40
7.4.140.0060.01317.86
7.4.130.0070.01416.66
7.4.120.0090.01216.74
7.4.110.0090.00916.77
7.4.100.0120.01316.79
7.4.90.0050.01416.85
7.4.80.0080.01919.39
7.4.70.0080.00916.66
7.4.60.0100.00716.63
7.4.50.0000.00716.30
7.4.40.0040.01522.77
7.4.30.0090.00916.84
7.4.10.0160.00615.36
7.4.00.0050.01215.16
7.3.330.0000.00613.30
7.3.320.0060.00013.27
7.3.310.0070.00016.59
7.3.300.0030.00316.46
7.3.290.0030.01416.54
7.3.280.0120.00716.53
7.3.270.0030.01517.40
7.3.260.0090.00916.79
7.3.250.0110.00916.62
7.3.240.0130.00416.92
7.3.230.0100.01416.62
7.3.210.0190.00616.64
7.3.200.0060.01819.39
7.3.190.0040.01416.93
7.3.180.0060.01116.83
7.3.170.0100.00716.64
7.3.160.0100.00716.56
7.3.130.0090.00915.04
7.3.120.0070.01015.15
7.3.110.0070.01215.24
7.3.100.0080.00715.25
7.3.90.0080.00714.95
7.3.80.0020.01014.94
7.3.70.0000.01715.14
7.3.60.0060.00915.08
7.3.50.0080.01014.90
7.3.40.0110.00415.00
7.3.30.0110.00514.97
7.3.20.0120.00616.94
7.3.10.0040.01016.90
7.3.00.0070.00816.96
7.2.330.0060.01217.00
7.2.320.0060.01816.98
7.2.310.0120.01216.81
7.2.300.0150.00316.67
7.2.290.0140.00516.88
7.2.260.0130.00715.28
7.2.250.0060.01315.48
7.2.240.0100.00815.27
7.2.230.0050.01215.38
7.2.220.0060.01015.29
7.2.210.0040.01015.39
7.2.200.0050.01315.28
7.2.190.0070.01015.39
7.2.180.0030.01215.37
7.2.170.0030.01315.29
7.2.160.0070.00915.44
7.2.150.0080.00817.04
7.2.140.0050.01117.19
7.2.130.0110.00617.24
7.2.120.0080.01017.09
7.2.110.0080.00717.23
7.2.100.0070.00817.20
7.2.90.0060.00817.16
7.2.80.0110.00817.06
7.2.70.0110.00317.15
7.2.60.0060.00817.13
7.2.50.0100.00416.96
7.2.40.0030.01017.13
7.2.30.0070.00817.20
7.2.20.0020.01717.23
7.2.10.0100.00717.16
7.2.00.0070.01017.14
7.1.330.0100.00215.93
7.1.320.0030.01115.99
7.1.310.0000.01615.96
7.1.300.0080.00715.84
7.1.290.0060.00915.94
7.1.280.0060.00916.06
7.1.270.0020.01216.00
7.1.260.0050.01015.87
7.1.250.0070.00816.05
7.1.240.0130.00016.07
7.1.230.0100.00615.94
7.1.220.0030.01216.00
7.1.210.0090.00616.08
7.1.200.0090.00615.93
7.1.190.0030.01115.95
7.1.180.0090.00015.71
7.1.170.0100.00716.17
7.1.160.0040.00816.24
7.1.150.0070.00316.02
7.1.140.0130.00315.85
7.1.130.0000.01515.97
7.1.120.0090.00916.12
7.1.110.0060.00916.11
7.1.100.0040.01217.26
7.1.90.0080.00816.06
7.1.80.0040.01116.06
7.1.70.0050.00716.72
7.1.60.0050.00816.66
7.1.50.0050.01316.51
7.1.40.0040.01116.10
7.1.30.0000.01216.00
7.1.20.0060.01215.88
7.1.10.0000.01415.94
7.1.00.0080.04119.13
7.0.330.0030.01015.32
7.0.320.0080.00815.54
7.0.310.0110.00315.73
7.0.300.0000.01515.35
7.0.290.0030.00615.40
7.0.280.0030.01315.36
7.0.270.0070.00715.54
7.0.260.0080.00815.63
7.0.250.0000.01615.45
7.0.240.0040.01115.74
7.0.230.0030.01215.55
7.0.220.0060.00615.55
7.0.210.0040.01115.51
7.0.200.0050.00816.23
7.0.190.0030.00915.35
7.0.180.0080.00315.55
7.0.170.0090.00015.68
7.0.160.0120.00415.58
7.0.150.0030.01015.68
7.0.140.0020.04218.82
7.0.130.0120.00315.67
7.0.120.0060.00615.54
7.0.110.0060.00315.66
7.0.100.0030.00715.71
7.0.90.0120.00615.69
7.0.80.0320.02717.77
7.0.70.0120.03517.80
7.0.60.0080.03017.83
7.0.50.0070.04518.06
7.0.40.0060.04516.96
7.0.30.0100.04516.75
7.0.20.0070.05016.80
7.0.10.0080.04416.91
7.0.00.0050.04816.77
5.6.400.0090.00414.42
5.6.390.0100.00714.78
5.6.380.0030.00914.51
5.6.370.0090.00614.59
5.6.360.0000.01514.64
5.6.350.0030.01314.57
5.6.340.0070.01314.16
5.6.330.0080.00414.50
5.6.320.0070.01114.87
5.6.310.0110.00414.79
5.6.300.0000.01114.31
5.6.290.0100.00314.61
5.6.280.0000.04717.88
5.6.270.0080.00814.47
5.6.260.0060.00914.34
5.6.250.0030.00914.36
5.6.240.0140.00714.66
5.6.230.0080.03917.41
5.6.220.0090.03917.53
5.6.210.0100.02117.72
5.6.200.0060.04317.69
5.6.190.0050.04617.89
5.6.180.0100.04317.69
5.6.170.0080.04617.74
5.6.160.0070.03217.69
5.6.150.0050.03217.83
5.6.140.0080.02817.63
5.6.130.0150.03317.76
5.6.120.0030.04917.80
5.6.110.0100.04217.81
5.6.100.0080.02617.63
5.6.90.0050.03317.73
5.6.80.0070.03017.43
5.6.70.0030.05017.35
5.6.60.0120.04017.36
5.6.50.0050.03417.57
5.6.40.0070.02817.45
5.6.30.0050.03617.36
5.6.20.0080.03017.35
5.6.10.0050.04217.61
5.6.00.0070.03417.51
5.5.380.0040.01114.46
5.5.370.0070.02817.40
5.5.360.0100.04217.57
5.5.350.0080.04517.36
5.5.340.0100.04017.71
5.5.330.0110.03817.65
5.5.320.0050.02517.60
5.5.310.0130.04417.72
5.5.300.0020.04717.67
5.5.290.0130.03717.73
5.5.280.0080.04517.65
5.5.270.0140.03917.45
5.5.260.0070.04517.66
5.5.250.0080.04517.51
5.5.240.0050.04617.34
5.5.230.0080.04217.36
5.5.220.0070.04217.30
5.5.210.0150.03017.19
5.5.200.0070.04317.35
5.5.190.0120.04017.32
5.5.180.0030.05017.24
5.5.170.0080.00814.51
5.5.160.0030.04817.27
5.5.150.0060.03317.40
5.5.140.0050.03817.42
5.5.130.0060.04117.34
5.5.120.0100.04117.40
5.5.110.0060.03817.27
5.5.100.0050.02317.36
5.5.90.0090.03717.23
5.5.80.0080.04517.19
5.5.70.0100.04117.15
5.5.60.0060.02817.31
5.5.50.0110.03817.30
5.5.40.0060.03817.23
5.5.30.0030.04317.23
5.5.20.0130.03917.15
5.5.10.0050.04617.22
5.5.00.0070.03717.16
5.4.450.0030.04615.37
5.4.440.0020.03815.40
5.4.430.0070.03815.43
5.4.420.0030.04815.39
5.4.410.0080.04015.21
5.4.400.0050.03215.28
5.4.390.0070.04215.26
5.4.380.0030.02515.25
5.4.370.0030.04315.25
5.4.360.0050.04715.21
5.4.350.0100.04015.23
5.4.340.0050.04015.27
5.4.330.0000.00811.43
5.4.320.0080.02315.12
5.4.310.0080.03315.28
5.4.300.0030.04415.20
5.4.290.0050.03215.24
5.4.280.0060.04215.23
5.4.270.0050.04215.12
5.4.260.0080.03615.12
5.4.250.0030.04515.12
5.4.240.0050.04215.16
5.4.230.0050.03415.19
5.4.220.0060.03115.24
5.4.210.0020.02915.30
5.4.200.0080.04215.23
5.4.190.0120.03315.10
5.4.180.0020.03015.32
5.4.170.0080.04215.28
5.4.160.0060.02815.24
5.4.150.0060.03015.24
5.4.140.0020.02713.89
5.4.130.0080.02113.92
5.4.120.0100.01513.92
5.4.110.0070.02313.95
5.4.100.0030.02113.85
5.4.90.0030.02313.88
5.4.80.0060.02013.92
5.4.70.0020.02513.92
5.4.60.0050.02513.86
5.4.50.0020.02513.88
5.4.40.0030.02513.93
5.4.30.0020.02513.85
5.4.20.0020.02513.91
5.4.10.0070.01713.88
5.4.00.0030.02413.47
5.3.290.0100.03513.04
5.3.280.0100.04313.02
5.3.270.0100.03613.03
5.3.260.0080.03313.02
5.3.250.0030.02313.02
5.3.240.0060.02112.96
5.3.230.0030.02313.03
5.3.220.0040.02213.00
5.3.210.0060.02112.92
5.3.200.0040.02912.92
5.3.190.0040.03312.99
5.3.180.0070.02212.99
5.3.170.0070.03513.00
5.3.160.0030.02512.97
5.3.150.0040.02112.92
5.3.140.0120.01712.93
5.3.130.0080.02012.99
5.3.120.0050.02212.98
5.3.110.0020.02412.91
5.3.100.0050.02212.74
5.3.90.0050.02012.72
5.3.80.0000.03712.70
5.3.70.0030.02312.61
5.3.60.0050.02112.73
5.3.50.0030.02412.70
5.3.40.0050.02512.63
5.3.30.0010.02212.61
5.3.20.0030.02012.45
5.3.10.0030.02412.54
5.3.00.0100.03612.54
5.2.170.0000.03311.01
5.2.160.0000.03011.00
5.2.150.0000.03311.24
5.2.140.0100.02711.00
5.2.130.0030.03011.15
5.2.120.0000.03010.91
5.2.110.0030.03011.17
5.2.100.0000.03310.98
5.2.90.0070.04011.07
5.2.80.0000.03311.13
5.2.70.0100.02011.29
5.2.60.0030.04310.91
5.2.50.0000.03710.95
5.2.40.0030.02710.91
5.2.30.0070.02310.91
5.2.20.0070.02711.06
5.2.10.0030.02710.92
5.2.00.0000.03010.91
5.1.60.0000.02310.91
5.1.50.0030.02010.91
5.1.40.0030.04310.91
5.1.30.0000.03310.91
5.1.20.0070.02310.91
5.1.10.0030.02310.91
5.1.00.0030.02310.91
5.0.50.0030.03310.91
5.0.40.0030.02010.91
5.0.30.0030.03310.91
5.0.20.0000.02010.91
5.0.10.0000.02010.91
5.0.00.0000.03010.91
4.4.90.0000.01710.91
4.4.80.0030.01310.91
4.4.70.0000.02010.91
4.4.60.0000.01710.91
4.4.50.0030.01310.91
4.4.40.0070.02010.91
4.4.30.0030.01310.91
4.4.20.0030.01310.91
4.4.10.0000.01710.91
4.4.00.0000.02710.91
4.3.110.0030.01310.91
4.3.100.0030.02310.91
4.3.90.0000.01710.91
4.3.80.0030.02310.91
4.3.70.0030.01310.91
4.3.60.0070.02010.91
4.3.50.0000.03710.91
4.3.40.0030.03310.91
4.3.30.0030.03310.91
4.3.20.0070.03710.91
4.3.10.0000.03310.91
4.3.00.0070.03010.91

preferences:
47.45 ms | 400 KiB | 5 Q