3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 1456034400; $firstDay = strtotime('first Sunday of '.date('M',$time).' '.date('Y', $time)); $lastDay = mktime(0,0,0,date('m',$time)+1,1,date('Y', $time)); $weekdays = array(); for ($i = $firstDay; $i < $lastDay; $i += 7*24*3600){ $weekdays[] = date('d',$i); } var_dump($weekdays);

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.1rc30.0040.00417.11
8.1rc20.0000.00817.14
8.1rc10.0040.00416.96
8.0.130.0030.00313.54
8.0.120.0030.00517.08
8.0.110.0030.00317.17
8.0.100.0050.00217.08
8.0.90.0000.00717.18
8.0.80.0120.00317.20
8.0.70.0000.00817.21
8.0.60.0050.00217.12
8.0.50.0000.00717.06
8.0.30.0110.00717.24
8.0.20.0150.00717.40
8.0.10.0000.00817.24
8.0.00.0060.01517.18
7.4.260.0000.00716.69
7.4.250.0030.00616.79
7.4.240.0000.00716.84
7.4.230.0000.00816.64
7.4.220.0040.01116.70
7.4.210.0080.00816.76
7.4.200.0040.00416.76
7.4.160.0090.01216.79
7.4.150.0170.00017.40
7.4.140.0080.01117.86
7.4.130.0070.01016.79
7.4.120.0050.01216.74
7.4.110.0070.01017.00
7.4.100.0160.00616.76
7.4.90.0080.00816.49
7.4.80.0130.00419.39
7.4.70.0040.01116.60
7.4.60.0060.00916.79
7.4.50.0070.00716.79
7.4.40.0030.01716.78
7.4.30.0170.00316.64
7.4.10.0060.01514.99
7.4.00.0040.01415.28
7.3.330.0070.00013.49
7.3.320.0000.00613.30
7.3.310.0000.00816.34
7.3.300.0030.00316.44
7.3.290.0070.00016.32
7.3.280.0080.00616.53
7.3.270.0200.00317.40
7.3.260.0130.00516.49
7.3.250.0100.00916.62
7.3.240.0110.01016.81
7.3.230.0170.00716.50
7.3.210.0030.01416.73
7.3.200.0090.00616.73
7.3.190.0070.01016.81
7.3.180.0040.01816.73
7.3.170.0070.01016.52
7.3.160.0140.00716.59
7.3.130.0140.00315.45
7.3.120.0070.01115.11
7.3.110.0070.01114.91
7.3.100.0000.01314.95
7.3.90.0030.01215.21
7.3.80.0090.00315.15
7.3.70.0100.00315.17
7.3.60.0030.01014.93
7.3.50.0000.01214.97
7.3.40.0030.01014.86
7.3.30.0030.00615.07
7.3.20.0120.00316.92
7.3.10.0100.00616.92
7.3.00.0060.01016.92
7.2.330.0110.01116.87
7.2.320.0090.01217.04
7.2.310.0060.01216.69
7.2.300.0090.01416.87
7.2.290.0090.00917.00
7.2.260.0080.00415.51
7.2.250.0120.00615.32
7.2.240.0030.00615.29
7.2.230.0000.01315.48
7.2.220.0090.00615.14
7.2.210.0030.00715.43
7.2.200.0060.00615.05
7.2.190.0060.00915.49
7.2.180.0030.00715.21
7.2.170.0090.00315.33
7.2.160.0070.01115.31
7.2.150.0080.00417.29
7.2.140.0030.00917.18
7.2.130.0040.01117.40
7.2.120.0070.00717.18
7.2.110.0040.00817.22
7.2.100.0070.00717.07
7.2.90.0030.01417.23
7.2.80.0090.00916.99
7.2.70.0070.01117.27
7.2.60.0040.01117.39
7.2.50.0060.01017.19
7.2.40.0040.01217.32
7.2.30.0030.01317.18
7.2.20.0030.00717.18
7.2.10.0090.00317.23
7.2.00.0070.00618.38
7.1.330.0030.01015.91
7.1.320.0070.00716.26
7.1.310.0030.01015.73
7.1.300.0100.00316.04
7.1.290.0040.00816.24
7.1.280.0070.00316.05
7.1.270.0030.00716.04
7.1.260.0040.01216.10
7.1.250.0070.00315.84
7.1.240.0060.01115.91
7.1.230.0110.00416.11
7.1.220.0090.00615.89
7.1.210.0090.00616.00
7.1.200.0060.00916.08
7.1.190.0000.01516.02
7.1.180.0060.00815.97
7.1.170.0060.00615.90
7.1.160.0060.00915.81
7.1.150.0000.00915.75
7.1.140.0000.00915.94
7.1.130.0070.01016.24
7.1.120.0110.00615.70
7.1.110.0030.01015.68
7.1.100.0070.00316.10
7.1.90.0090.00616.16
7.1.80.0090.00415.80
7.1.70.0090.00416.60
7.1.60.0070.01117.99
7.1.50.0030.00916.07
7.1.40.0080.00816.00
7.1.30.0070.00715.71
7.1.20.0000.01316.02
7.1.10.0030.01015.97
7.1.00.0060.04119.25
7.0.330.0030.00715.70
7.0.320.0030.00915.53
7.0.310.0070.00715.71
7.0.300.0060.00615.52
7.0.290.0000.01315.34
7.0.280.0050.00515.48
7.0.270.0030.01215.67
7.0.260.0030.00715.37
7.0.250.0100.00315.73
7.0.240.0060.00815.64
7.0.230.0070.00715.56
7.0.220.0070.00715.58
7.0.210.0070.00315.57
7.0.200.1210.01015.32
7.0.190.0030.00915.79
7.0.180.0000.00915.34
7.0.170.0030.01015.60
7.0.160.0090.00615.79
7.0.150.0070.01015.75
7.0.140.0040.00815.57
7.0.130.0110.00015.52
7.0.120.0070.00715.25
7.0.110.0040.00815.56
7.0.100.0040.00415.29
7.0.90.0070.04317.70
7.0.80.0030.02817.64
7.0.70.0060.04317.85
7.0.60.0080.03317.66
7.0.50.0320.04717.98
7.0.40.0100.04016.91
7.0.30.0030.03416.91
7.0.20.0030.04516.67
7.0.10.0130.03216.83
7.0.00.0100.04016.82
5.6.400.0090.00614.74
5.6.390.0030.00614.68
5.6.380.0090.00614.73
5.6.370.0140.00014.64
5.6.360.0040.01114.36
5.6.350.0060.00914.28
5.6.340.0000.01614.29
5.6.330.0080.00414.73
5.6.320.0090.00614.66
5.6.310.0080.00414.59
5.6.300.0070.01014.91
5.6.290.0000.01214.61
5.6.280.0040.01114.84
5.6.270.0040.00714.30
5.6.260.0000.01114.55
5.6.250.0040.00814.54
5.6.240.0080.04317.76
5.6.230.0020.03317.72
5.6.220.0110.03017.48
5.6.210.0080.04217.49
5.6.200.0000.04717.64
5.6.190.0050.04317.77
5.6.180.0060.04617.92
5.6.170.0130.04017.78
5.6.160.0090.04217.74
5.6.150.0060.03317.78
5.6.140.0100.02717.73
5.6.130.0020.04917.90
5.6.120.0100.04317.89
5.6.110.0070.04517.79
5.6.100.0070.04417.71
5.6.90.0050.04917.88
5.6.80.0030.04817.43
5.6.70.0070.03017.32
5.6.60.0070.04517.39
5.6.50.0070.04317.53
5.6.40.0030.03317.49
5.6.30.0070.04517.45
5.6.20.0070.04717.52
5.6.10.0100.03717.42
5.6.00.0100.04017.47
5.5.380.0100.02417.55
5.5.370.0080.04017.54
5.5.360.0050.04617.44
5.5.350.0030.03617.47
5.5.340.0080.02717.61
5.5.330.0100.03917.57
5.5.320.0080.04717.63
5.5.310.0080.03817.45
5.5.300.0070.04317.56
5.5.290.0090.04417.67
5.5.280.0080.04017.70
5.5.270.0050.04317.65
5.5.260.0040.02617.49
5.5.250.0110.03417.62
5.5.240.0050.04417.27
5.5.230.0100.03717.23
5.5.220.0070.04717.37
5.5.210.0080.04017.38
5.5.200.0090.04117.42
5.5.190.0070.04517.21
5.5.180.0080.04017.36
5.5.170.0000.01214.40
5.5.160.0040.03117.11
5.5.150.0110.02617.23
5.5.140.0120.04117.30
5.5.130.0070.04517.30
5.5.120.0020.03217.32
5.5.110.0080.02717.34
5.5.100.0050.04517.36
5.5.90.0140.03317.22
5.5.80.0080.03617.27
5.5.70.0040.04217.28
5.5.60.0130.02317.15
5.5.50.0050.04017.29
5.5.40.0070.04317.21
5.5.30.0100.03517.25
5.5.20.0100.04017.37
5.5.10.0080.02517.33
5.5.00.0030.04517.12

preferences:
21.45 ms | 455 KiB | 5 Q