3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '02-08-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.60.0110.00716.75
8.3.50.0090.00616.41
8.3.40.0110.00418.79
8.3.30.0060.00918.91
8.3.20.0050.00320.17
8.3.10.0040.00421.62
8.3.00.0000.00819.63
8.2.180.0070.01416.88
8.2.170.0150.00022.96
8.2.160.0030.01220.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00721.25
8.2.120.0070.00026.35
8.2.110.0060.00321.00
8.2.100.0080.00418.16
8.2.90.0070.00019.30
8.2.80.0060.00317.97
8.2.70.0040.00417.75
8.2.60.0040.00418.05
8.2.50.0030.00618.10
8.2.40.0080.00020.38
8.2.30.0050.00321.01
8.2.20.0040.00418.08
8.2.10.0000.00818.38
8.2.00.0060.00318.37
8.1.280.0100.00725.92
8.1.270.0090.00022.01
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.97
8.1.230.0030.00719.13
8.1.220.0040.00417.93
8.1.210.0000.00918.77
8.1.200.0060.00317.60
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0030.00618.84
8.1.160.0040.00419.15
8.1.150.0040.00419.03
8.1.140.0070.00019.72
8.1.130.0030.00318.98
8.1.120.0040.00417.73
8.1.110.0000.00817.72
8.1.100.0040.00417.73
8.1.90.0050.00317.72
8.1.80.0060.00317.59
8.1.70.0000.00717.73
8.1.60.0000.01017.82
8.1.50.0000.00817.76
8.1.40.0050.00317.74
8.1.30.0000.00817.79
8.1.20.0060.00317.88
8.1.10.0030.00617.81
8.1.00.0030.00617.66
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0030.00318.59
8.0.270.0000.00717.41
8.0.260.0030.00316.96
8.0.250.0030.00317.13
8.0.240.0040.00417.15
8.0.230.0070.00417.21
8.0.220.0030.00317.16
8.0.210.0000.00717.13
8.0.200.0060.00317.19
8.0.190.0080.00017.17
8.0.180.0040.00417.20
8.0.170.0030.00517.09
8.0.160.0030.00317.14
8.0.150.0070.00017.00
8.0.140.0070.00017.01
8.0.130.0050.00013.62
8.0.120.0040.00417.16
8.0.110.0050.00317.14
8.0.100.0040.00417.11
8.0.90.0040.00416.97
8.0.80.0070.01117.13
8.0.70.0050.00217.05
8.0.60.0000.00717.09
8.0.50.0040.00416.97
8.0.30.0080.01017.22
8.0.20.0090.01017.40
8.0.10.0040.00417.20
8.0.00.0030.01417.09
7.4.330.0030.00315.55
7.4.320.0000.00616.64
7.4.300.0060.00016.75
7.4.290.0060.00316.74
7.4.280.0080.00016.72
7.4.270.0000.00716.72
7.4.260.0000.00716.59
7.4.250.0000.00716.60
7.4.240.0040.00316.76
7.4.230.0100.00016.82
7.4.220.0130.00716.64
7.4.210.0040.01116.71
7.4.200.0000.00716.84
7.4.160.0090.00816.59
7.4.150.0140.00417.40
7.4.140.0160.00817.86
7.4.130.0060.01316.84
7.4.120.0100.01116.74
7.4.110.0140.00416.68
7.4.100.0120.00916.77
7.4.90.0060.01616.61
7.4.80.0120.00619.39
7.4.70.0060.01116.60
7.4.60.0030.01316.95
7.4.50.0070.01016.52
7.4.40.0070.01016.80
7.4.30.0060.00916.68
7.4.00.0070.00314.82
7.3.330.0030.00313.21
7.3.320.0000.00513.19
7.3.310.0050.00216.49
7.3.300.0060.00016.50
7.3.290.0050.00916.48
7.3.280.0100.00816.47
7.3.270.0140.01017.40
7.3.260.0120.00516.66
7.3.250.0120.00816.61
7.3.240.0140.00316.51
7.3.230.0060.01116.61
7.3.210.0060.01216.61
7.3.200.0060.01316.45
7.3.190.0100.00716.69
7.3.180.0060.01216.57
7.3.170.0130.00916.76
7.3.160.0080.00816.55
7.2.330.0070.01016.98
7.2.320.0090.00916.88
7.2.310.0080.00817.03
7.2.300.0030.01316.99
7.2.290.0100.01316.89
7.2.60.0060.00617.16
7.2.00.0030.00619.71
7.1.200.0040.00415.99
7.1.100.0000.01118.09
7.1.70.0170.01015.41
7.1.60.0450.01633.47
7.1.50.0350.00933.02
7.1.40.0440.01932.69
7.1.30.0600.01632.61
7.1.20.0380.02433.08
7.1.10.0200.01314.85
7.1.00.0250.01615.07
7.0.200.0220.01114.90
7.0.190.0180.01215.14
7.0.180.0270.01014.61
7.0.170.0280.01914.70
7.0.160.0250.01414.54
7.0.150.0170.01014.61
7.0.140.0240.01714.84
7.0.130.0200.01114.61
7.0.120.0200.01014.77
7.0.110.0260.01014.77
7.0.100.0210.00714.61
7.0.90.0230.00714.72
7.0.80.0230.00314.79
7.0.70.1360.01014.65
7.0.60.0240.00614.41
7.0.50.0170.01814.66
7.0.40.0260.01415.03
7.0.30.0500.01414.90
7.0.20.0190.02014.80
7.0.10.0270.01014.71
7.0.00.0250.01314.89

preferences:
37.17 ms | 401 KiB | 5 Q