3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '31-07-2017'; $now = new DateTime($date); echo 'Now: ' . $now->format('d-m-Y') . "\n"; $startOfWeek = clone $now; $startOfWeek->modify('Monday this week'); echo 'Monday: ' . $startOfWeek->format('d-m-Y') . "\n"; $endOfWeek = clone $now; $endOfWeek->modify('Friday this week'); echo 'Friday: ' . $endOfWeek->format('d-m-Y') . "\n";

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.0070.00718.83
8.3.30.0040.01118.70
8.3.20.0080.00020.20
8.3.10.0070.00021.90
8.3.00.0040.00419.38
8.2.170.0120.00322.96
8.2.160.0090.00620.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00421.20
8.2.120.0040.00426.35
8.2.110.0070.00321.00
8.2.100.0040.00818.34
8.2.90.0000.00819.39
8.2.80.0030.00618.16
8.2.70.0080.00017.88
8.2.60.0040.00418.05
8.2.50.0040.00418.10
8.2.40.0050.00320.78
8.2.30.0040.00421.14
8.2.20.0040.00418.13
8.2.10.0080.00018.38
8.2.00.0030.00618.20
8.1.270.0000.00822.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0070.00419.00
8.1.220.0050.00317.79
8.1.210.0090.00018.77
8.1.200.0040.00417.50
8.1.190.0040.00417.36
8.1.180.0030.00518.10
8.1.170.0030.00618.78
8.1.160.0040.00419.09
8.1.150.0030.00519.13
8.1.140.0040.00419.63
8.1.130.0000.00718.92
8.1.120.0000.00717.64
8.1.110.0040.00417.76
8.1.100.0070.00017.73
8.1.90.0000.00717.74
8.1.80.0040.00417.73
8.1.70.0030.00317.62
8.1.60.0030.00617.66
8.1.50.0040.00417.71
8.1.40.0000.00817.72
8.1.30.0060.00317.89
8.1.20.0000.00817.71
8.1.10.0060.00317.74
8.1.00.0020.00517.74
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0000.00818.59
8.0.270.0080.00017.41
8.0.260.0000.00617.05
8.0.250.0040.00417.14
8.0.240.0030.00417.21
8.0.230.0100.00017.10
8.0.220.0070.00017.14
8.0.210.0030.00317.15
8.0.200.0040.00417.15
8.0.190.0050.00317.22
8.0.180.0000.00817.14
8.0.170.0000.00717.22
8.0.160.0030.00617.23
8.0.150.0070.00017.18
8.0.140.0040.00417.12
8.0.130.0030.00313.52
8.0.120.0040.00417.01
8.0.110.0040.00417.01
8.0.100.0070.00017.06
8.0.90.0000.00717.11
8.0.80.0060.01017.13
8.0.70.0040.00417.27
8.0.60.0050.00217.03
8.0.50.0040.00417.16
8.0.30.0120.00517.24
8.0.20.0150.00617.42
8.0.10.0000.00716.99
8.0.00.0100.00716.97
7.4.330.0060.00015.55
7.4.320.0060.00016.65
7.4.300.0030.00316.50
7.4.290.0060.00316.75
7.4.280.0040.00416.77
7.4.270.0000.00816.76
7.4.260.0000.00716.66
7.4.250.0030.00516.73
7.4.240.0070.00016.73
7.4.230.0000.00716.84
7.4.220.0100.01416.61
7.4.210.0030.01016.79
7.4.200.0000.00816.48
7.4.160.0050.01116.82
7.4.150.0070.01017.40
7.4.140.0150.00417.86
7.4.130.0100.01416.82
7.4.120.0130.00616.68
7.4.110.0160.01016.56
7.4.100.0100.00716.75
7.4.90.0120.00616.74
7.4.80.0080.01219.39
7.4.70.0060.01216.80
7.4.60.0100.00716.65
7.4.50.0120.00616.59
7.4.40.0080.00816.74
7.4.30.0100.00716.86
7.4.00.0100.00615.32
7.3.330.0000.00513.38
7.3.320.0030.00313.34
7.3.310.0000.00716.46
7.3.300.0030.00316.50
7.3.290.0110.00616.44
7.3.280.0090.00916.46
7.3.270.0130.00717.40
7.3.260.0120.00916.62
7.3.250.0070.01016.64
7.3.240.0100.00716.71
7.3.230.0140.00416.48
7.3.210.0140.00316.71
7.3.200.0110.01016.48
7.3.190.0110.00616.60
7.3.180.0090.01316.61
7.3.170.0030.01316.70
7.3.160.0170.00016.72
7.3.120.0070.00615.09
7.3.110.0030.00815.22
7.3.100.0110.00414.99
7.3.90.0030.00715.16
7.3.80.0060.00914.95
7.3.70.0000.00914.99
7.3.60.0070.00714.85
7.3.50.0060.00315.13
7.3.40.0040.00715.14
7.3.30.0080.00315.06
7.3.20.0060.00616.84
7.3.10.0130.00316.88
7.3.00.0060.00616.83
7.2.330.0100.01016.87
7.2.320.0100.00716.88
7.2.310.0050.01116.94
7.2.300.0100.00616.96
7.2.290.0070.01016.90
7.2.250.0100.00715.08
7.2.240.0100.00715.20
7.2.230.0110.00315.53
7.2.220.0040.01115.54
7.2.210.0060.00915.39
7.2.200.0040.00815.08
7.2.190.0030.01215.31
7.2.180.0080.00415.21
7.2.170.0030.00615.41
7.2.160.0060.00615.16
7.2.150.0030.00917.25
7.2.140.0000.01817.00
7.2.130.0040.00716.86
7.2.120.0000.01417.22
7.2.110.0070.00717.13
7.2.100.0040.00817.24
7.2.90.0060.00916.91
7.2.80.0030.01216.92
7.2.70.0110.00417.13
7.2.60.0090.00617.12
7.2.50.0070.00317.27
7.2.40.0070.00317.29
7.2.30.0030.00916.93
7.2.20.0030.01017.28
7.2.10.0060.00917.24
7.2.00.0030.00818.49
7.1.330.0100.00315.86
7.1.320.0030.00515.95
7.1.310.0070.00716.00
7.1.300.0000.00915.71
7.1.290.0130.00015.64
7.1.280.0000.01716.02
7.1.270.0070.00316.00
7.1.260.0050.00315.83
7.1.250.0090.00615.98
7.1.200.0030.00715.99
7.1.100.0030.01018.20
7.1.70.0260.01115.43
7.1.60.0460.01833.35
7.1.50.0330.01632.89
7.1.40.0330.01032.72
7.1.30.0550.01832.81
7.1.20.0290.02333.03
7.1.10.0300.00914.73
7.1.00.0280.01315.27
7.0.200.0220.00815.13
7.0.190.0230.01415.00
7.0.180.0180.01014.61
7.0.170.0380.01014.78
7.0.160.0230.00714.52
7.0.150.0230.00614.77
7.0.140.0180.00914.80
7.0.130.0200.00714.89
7.0.120.0220.00614.75
7.0.110.0200.01014.70
7.0.100.0230.01714.70
7.0.90.0250.01614.66
7.0.80.0340.00614.66
7.0.70.0260.01014.66
7.0.60.0200.01014.42
7.0.50.0290.01214.95
7.0.40.0350.01114.78
7.0.30.0260.01314.79
7.0.20.0230.01614.82
7.0.10.0230.01514.93
7.0.00.0870.01014.83

preferences:
42.94 ms | 400 KiB | 5 Q