3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = new \DateTime('2017-07-17'); $firstDayOfMonth = new \DateTime($input->format('Y-m-01')); $order = (int)(($input->format('j') - 1) / 7) + 1; if (($input->format('N') % 7) > ($firstDayOfMonth->format('N') % 7)) $order++; var_dump($input->format('Y-m-d: ').$order.'. '.$input->format('l'));

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.0100.00716.63
8.3.50.0180.00016.48
8.3.40.0070.01118.90
8.3.30.0110.00418.79
8.3.20.0030.00520.06
8.3.10.0080.00023.52
8.3.00.0030.00619.50
8.2.180.0070.00718.29
8.2.170.0110.00422.96
8.2.160.0120.00920.58
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00321.07
8.2.120.0080.00026.35
8.2.110.0070.00321.04
8.2.100.0090.00317.97
8.2.90.0030.00519.09
8.2.80.0040.00418.05
8.2.70.0060.00317.63
8.2.60.0000.00818.05
8.2.50.0000.00918.10
8.2.40.0040.00420.47
8.2.30.0050.00321.04
8.2.20.0050.00318.19
8.2.10.0000.00818.19
8.2.00.0050.00218.03
8.1.280.0110.00425.92
8.1.270.0050.00322.19
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00323.84
8.1.230.0070.00419.21
8.1.220.0050.00517.79
8.1.210.0080.00018.77
8.1.200.0040.00817.38
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0000.00818.93
8.1.160.0000.00719.15
8.1.150.0040.00420.74
8.1.140.0030.00719.71
8.1.130.0000.00718.96
8.1.120.0000.00717.65
8.1.110.0000.00817.66
8.1.100.0040.00417.67
8.1.90.0000.00817.64
8.1.80.0000.00817.68
8.1.70.0030.00317.62
8.1.60.0000.00917.61
8.1.50.0050.00317.54
8.1.40.0030.00617.51
8.1.30.0050.00317.72
8.1.20.0060.00317.64
8.1.10.0040.00417.64
8.1.00.0000.00717.63
8.0.300.0020.00518.77
8.0.290.0040.00416.86
8.0.280.0070.00018.52
8.0.270.0080.00017.29
8.0.260.0070.00017.07
8.0.250.0050.00317.25
8.0.240.0000.00817.19
8.0.230.0040.00417.12
8.0.220.0070.00017.09
8.0.210.0030.00317.06
8.0.200.0000.00817.09
8.0.190.0000.00817.20
8.0.180.0080.00017.16
8.0.170.0030.00517.18
8.0.160.0080.00017.15
8.0.150.0040.00417.03
8.0.140.0000.00717.13
8.0.130.0070.00013.60
8.0.120.0040.00417.16
8.0.110.0040.00316.95
8.0.100.0000.00717.13
8.0.90.0080.00017.11
8.0.80.0060.01017.19
8.0.70.0000.00717.05
8.0.60.0000.00717.16
8.0.50.0070.00017.16
8.0.30.0110.00517.26
8.0.20.0120.00717.40
8.0.10.0000.00817.18
8.0.00.0030.01316.93
7.4.330.0060.00015.55
7.4.320.0000.00616.77
7.4.300.0020.00516.64
7.4.290.0030.00516.69
7.4.280.0040.00816.65
7.4.270.0030.00316.66
7.4.260.0030.00316.73
7.4.250.0070.00016.75
7.4.240.0000.00716.64
7.4.230.0030.00316.73
7.4.220.0250.01416.82
7.4.210.0100.00516.68
7.4.200.0070.00016.84
7.4.160.0100.00616.65
7.4.150.0080.00817.40
7.4.140.0120.00717.86
7.4.130.0070.01816.67
7.4.120.0110.00716.72
7.4.110.0090.00616.77
7.4.100.0100.00616.56
7.4.90.0120.00416.74
7.4.80.0070.01019.39
7.4.70.0100.00716.66
7.4.60.0000.01716.63
7.4.50.0030.01316.85
7.4.40.0180.00516.55
7.4.30.0100.00616.51
7.4.10.0040.01216.59
7.4.00.0060.01215.45
7.3.330.0060.00013.22
7.3.320.0020.00213.30
7.3.310.0040.00416.46
7.3.300.0000.00616.38
7.3.290.0000.00716.43
7.3.280.0100.00816.37
7.3.270.0040.01417.40
7.3.260.0090.00816.52
7.3.250.0090.01216.66
7.3.240.0110.00916.61
7.3.230.0000.01716.50
7.3.210.0060.01016.66
7.3.200.0100.01016.50
7.3.190.0060.01516.47
7.3.180.0030.01316.63
7.3.170.0060.01316.57
7.3.160.0120.00316.56
7.3.130.0170.00316.49
7.3.120.0070.01215.69
7.3.110.0090.00915.64
7.3.100.0080.00715.52
7.3.90.0050.01015.56
7.3.80.0030.00815.67
7.3.70.0070.00815.56
7.3.60.0030.01415.61
7.3.50.0060.00915.81
7.3.40.0050.00815.70
7.3.30.0070.01015.72
7.3.20.0050.00917.50
7.3.10.0080.01217.47
7.3.00.0120.00317.54
7.2.330.0100.01316.57
7.2.320.0120.01216.84
7.2.310.0070.01017.02
7.2.300.0050.01116.56
7.2.290.0160.00016.86
7.2.260.0090.00916.92
7.2.250.0080.01116.09
7.2.240.0100.00816.10
7.2.230.0100.00516.08
7.2.220.0030.01215.84
7.2.210.0090.00716.01
7.2.200.0030.01515.90
7.2.190.0080.00915.87
7.2.180.0070.00515.94
7.2.170.0110.00315.89
7.2.160.0030.01016.54
7.2.150.0070.00718.55
7.2.140.0120.00418.50
7.2.130.0130.00618.61
7.2.120.0100.00718.54
7.2.110.0090.00318.37
7.2.100.0100.00018.51
7.2.90.0040.00818.41
7.2.80.0060.00517.58
7.2.70.0000.01318.63
7.2.60.0050.00817.70
7.2.50.0040.01218.54
7.2.40.0000.01118.48
7.2.30.0100.00018.51
7.2.20.0040.00718.22
7.2.10.0070.00718.44
7.2.00.0040.00919.01
7.1.330.0090.00616.56
7.1.320.0050.01016.77
7.1.310.0050.00916.77
7.1.300.0090.00516.66
7.1.290.0060.00616.68
7.1.280.0050.01116.78
7.1.270.0080.00716.71
7.1.260.0090.00916.79
7.1.250.0030.01317.31
7.1.240.0080.00817.48
7.1.230.0100.00017.47
7.1.220.0120.00017.29
7.1.210.0070.00417.53
7.1.200.0030.00816.64
7.1.190.0030.01317.29
7.1.180.0000.01217.43
7.1.170.0070.00717.41
7.1.160.0070.00317.44
7.1.150.0060.00917.59
7.1.140.0000.01117.50
7.1.130.0030.00917.31
7.1.120.0090.00917.38
7.1.110.0040.01217.36
7.1.100.0030.00817.61
7.1.90.0080.00817.40
7.1.80.0040.01217.38
7.1.70.0060.00717.41
7.1.60.0160.00826.10
7.1.50.0190.01425.99
7.1.40.0150.01025.87
7.1.30.0180.01025.97
7.1.20.0150.01326.11
7.1.10.0020.01117.06
7.1.00.0080.00717.17
7.0.330.0000.01217.21
7.0.320.0070.00717.04
7.0.310.0040.01117.21
7.0.300.0120.00417.01
7.0.290.0030.00916.91
7.0.280.0120.00317.16
7.0.270.0030.01016.97
7.0.260.0030.00717.26
7.0.250.0070.01017.16
7.0.240.0080.00417.19
7.0.230.0050.00817.31
7.0.220.0030.01017.25
7.0.210.0070.00717.14
7.0.200.0040.00917.07
7.0.190.0110.00416.79
7.0.180.0060.00916.88
7.0.170.0040.01016.72
7.0.160.0050.00716.91
7.0.150.0040.00916.74
7.0.140.0050.00816.95
7.0.130.0020.01216.93
7.0.120.0060.00616.89
7.0.110.0070.00616.71
7.0.100.0050.00916.80
7.0.90.0070.00716.79
7.0.80.0070.00716.90
7.0.70.0100.00816.61
7.0.60.0060.00816.64
7.0.50.0050.01016.64
7.0.40.0020.01015.98
7.0.30.0040.01015.82
7.0.20.0050.01015.88
7.0.10.0030.01215.63
7.0.00.0050.00815.87
5.6.400.0070.01015.96
5.6.390.0090.00316.17
5.6.380.0040.00716.11
5.6.370.0090.00615.79
5.6.360.0110.00715.90
5.6.350.0080.00315.87
5.6.340.0080.00416.05
5.6.330.0000.01315.79
5.6.320.0040.00816.00
5.6.310.0000.01315.96
5.6.300.0030.00715.74
5.6.290.0060.00616.17
5.6.280.0030.00916.07
5.6.270.0000.01516.12
5.6.260.0100.00316.04
5.6.250.0070.00715.84
5.6.240.0080.00315.87
5.6.230.0030.01415.97
5.6.220.0090.00316.29
5.6.210.0050.00515.83
5.6.200.0130.00316.02
5.6.190.0000.01015.93
5.6.180.0030.01016.04
5.6.170.0040.01516.00
5.6.160.0000.00916.09
5.6.150.0060.00615.82
5.6.140.0040.01415.93
5.6.130.0030.01216.02
5.6.120.0030.01316.18
5.6.110.0060.00916.05
5.6.100.0090.00615.91
5.6.90.0030.01315.94
5.6.80.0030.00615.76
5.6.70.0060.00615.83
5.6.60.0000.00915.68
5.6.50.0070.00715.80
5.6.40.0030.00616.03
5.6.30.0070.00716.00
5.6.20.0060.00615.90
5.6.10.0060.01016.04
5.6.00.0070.00316.16

preferences:
61.63 ms | 400 KiB | 5 Q