3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_date = new DateTime("2013-05-13"); $day_of_week = $start_date->format("w"); $start_date->modify('-' . $day_of_week . ' day'); echo $start_date->format('l, F jS, Y');

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.4.30.0140.00717.81
8.4.20.0080.01117.64
8.4.10.0130.00717.62
8.3.160.0060.01217.13
8.3.150.0110.00718.72
8.3.140.0000.00817.13
8.3.130.0050.00318.71
8.3.120.0090.00018.64
8.3.110.0090.00620.94
8.3.100.0040.00424.06
8.3.90.0030.01026.77
8.3.80.0030.00616.63
8.3.70.0100.00716.58
8.3.60.0070.00716.75
8.3.50.0100.00522.12
8.3.40.0110.00718.98
8.3.30.0040.01119.13
8.3.20.0040.00420.34
8.3.10.0040.00421.68
8.3.00.0040.00419.25
8.2.270.0070.01117.19
8.2.260.0030.01218.43
8.2.250.0080.00016.77
8.2.240.0100.00319.00
8.2.230.0000.00922.58
8.2.220.0130.00737.54
8.2.210.0050.00326.77
8.2.200.0060.00316.88
8.2.190.0090.00616.75
8.2.180.0120.00325.92
8.2.170.0150.00419.02
8.2.160.0040.01122.96
8.2.150.0030.01025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00321.99
8.2.110.0090.00021.11
8.2.100.0040.00818.03
8.2.90.0060.00319.18
8.2.80.0000.00818.05
8.2.70.0000.00817.88
8.2.60.0000.00818.05
8.2.50.0120.00018.07
8.2.40.0090.00020.07
8.2.30.0000.00820.02
8.2.20.0040.00417.98
8.2.10.0040.00418.18
8.2.00.0000.00917.79
8.1.310.0000.00818.31
8.1.300.0060.00318.38
8.1.290.0040.00430.84
8.1.280.0000.01825.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00024.04
8.1.230.0040.00822.85
8.1.220.0000.00817.88
8.1.210.0000.00818.77
8.1.200.0100.00017.60
8.1.190.0040.00417.66
8.1.180.0000.01018.10
8.1.170.0050.00318.91
8.1.160.0030.00622.07
8.1.150.0000.00718.84
8.1.140.0050.00317.74
8.1.130.0050.00217.61
8.1.120.0000.00717.76
8.1.110.0040.00417.71
8.1.100.0070.00017.67
8.1.90.0040.00417.60
8.1.80.0030.00317.59
8.1.70.0070.00017.64
8.1.60.0000.00817.75
8.1.50.0040.00417.73
8.1.40.0080.00017.79
8.1.30.0040.00417.73
8.1.20.0040.00417.79
8.1.10.0080.00017.76
8.1.00.0040.00417.73
8.0.300.0080.00018.77
8.0.290.0040.00417.28
8.0.280.0070.00018.46
8.0.270.0000.00717.39
8.0.260.0000.00716.94
8.0.250.0000.00717.23
8.0.240.0060.00017.18
8.0.230.0030.00317.11
8.0.220.0030.00317.04
8.0.210.0030.00317.09
8.0.200.0000.00717.15
8.0.190.0060.00317.21
8.0.180.0040.00417.21
8.0.170.0000.00717.20
8.0.160.0030.00317.14
8.0.150.0040.00417.10
8.0.140.0040.00417.13
8.0.130.0030.00313.50
8.0.120.0000.00717.00
8.0.110.0040.00417.20
8.0.100.0030.00617.11
8.0.90.0070.00017.21
8.0.80.0090.01117.20
8.0.70.0040.00417.21
8.0.60.0040.00417.07
8.0.50.0000.00817.11
8.0.30.0110.01117.24
8.0.20.0110.00817.40
8.0.10.0050.00317.12
8.0.00.0050.01217.02
7.4.330.0050.00015.19
7.4.320.0040.00416.74
7.4.300.0060.00016.73
7.4.290.0000.00716.73
7.4.280.0040.00416.70
7.4.270.0050.00216.69
7.4.260.0000.00716.55
7.4.250.0000.00716.55
7.4.240.0040.00316.71
7.4.230.0000.00716.53
7.4.220.0110.01116.82
7.4.210.0100.00516.68
7.4.200.0070.00016.66
7.4.190.0000.00716.80
7.4.160.0030.01316.82
7.4.150.0150.00917.40
7.4.140.0030.01317.86
7.4.130.0090.00816.80
7.4.120.0100.00916.62
7.4.110.0120.00416.66
7.4.100.0070.01416.67
7.4.90.0100.00716.55
7.4.80.0050.01719.39
7.4.70.0090.00616.60
7.4.60.0080.01016.53
7.4.50.0000.00816.51
7.4.40.0040.01522.77
7.4.30.0090.00616.91
7.4.00.0030.01315.11
7.3.330.0000.00613.21
7.3.320.0000.00713.19
7.3.310.0030.00316.60
7.3.300.0020.00516.38
7.3.290.0090.00616.47
7.3.280.0070.00916.49
7.3.270.0120.01417.40
7.3.260.0060.01216.67
7.3.250.0080.01316.74
7.3.240.0080.00816.52
7.3.230.0120.00816.59
7.3.210.0120.01216.58
7.3.200.0160.00619.39
7.3.190.0060.01216.49
7.3.180.0100.01316.59
7.3.170.0090.00616.62
7.3.160.0080.00816.68
7.3.120.0080.00415.21
7.2.330.0060.01316.77
7.2.320.0130.00316.74
7.2.310.0170.00016.96
7.2.300.0140.00316.92
7.2.290.0070.01016.95
7.2.60.0030.00617.25
7.1.200.0040.00815.96
7.1.70.0130.01017.40
7.1.60.0060.00617.08
7.1.50.0220.00916.72
7.1.00.0000.08022.42
7.0.200.0170.00016.60
7.0.140.0000.07722.05
7.0.60.0100.06320.01
7.0.50.0100.05017.90
7.0.40.0100.06320.16
7.0.30.0170.08320.18
7.0.20.0200.06720.16
7.0.10.0100.08320.13
7.0.00.0070.06320.19
5.6.280.0000.07720.78
5.6.210.0170.07020.71
5.6.200.0070.06018.13
5.6.190.0000.06020.35
5.6.180.0270.04020.60
5.6.170.0400.06720.38
5.6.160.0070.04020.49
5.6.150.0070.07718.11
5.6.140.0030.05718.21
5.6.130.0030.08718.18
5.6.120.0170.08020.97
5.6.110.0070.04021.04
5.6.100.0130.07720.96
5.6.90.0070.08321.00
5.6.80.0070.04020.40
5.5.350.3500.03720.33
5.5.340.0070.05017.97
5.5.330.0130.07720.25
5.5.320.0500.04720.24
5.5.310.0230.08720.28
5.5.300.0030.07717.88
5.5.290.0070.08017.93
5.5.280.0100.05320.73
5.5.270.0100.07320.84
5.5.260.0100.05020.75
5.5.250.0000.04320.52
5.5.240.0130.06720.23
5.4.450.0200.04319.57
5.4.440.0230.03719.26
5.4.430.0230.03319.46
5.4.420.0130.04319.54
5.4.410.0230.04319.28
5.4.400.0270.03019.06
5.4.390.0230.03319.18
5.4.380.0230.03319.13
5.4.370.0370.05319.25
5.4.360.0300.07719.07
5.4.350.0300.05719.06
5.4.340.0270.07718.79
5.4.320.0370.07018.93
5.4.310.0370.06319.04
5.4.300.0270.05719.21
5.4.290.0270.07319.22
5.4.280.0300.04319.13
5.4.270.0330.06719.16
5.4.260.0270.06018.88
5.4.250.0270.04718.80
5.4.240.0170.04319.21
5.4.230.0400.06319.08
5.4.220.0370.06719.12
5.4.210.0270.04719.24
5.4.200.0300.07319.09
5.4.190.0330.07018.80
5.4.180.0270.06719.12
5.4.170.0300.07019.09
5.4.160.0300.05319.07
5.4.150.0300.06319.20
5.4.140.0300.07016.24
5.4.130.0430.06016.50
5.4.120.0300.06316.36
5.4.110.0330.04316.48
5.4.100.0270.07316.48
5.4.90.0300.03716.36
5.4.80.0300.04016.49
5.4.70.0400.05316.46
5.4.60.0270.03316.19
5.4.50.0300.05016.45
5.4.40.0300.07016.27
5.4.30.0270.06716.17
5.4.20.0330.06316.36
5.4.10.0330.04016.28
5.4.00.0400.06015.88
5.3.290.0300.04314.61
5.3.280.0270.06014.53
5.3.270.0430.06714.48
5.3.260.0330.06714.54
5.3.250.0230.04014.55
5.3.240.0330.07014.48
5.3.230.0330.06014.45
5.3.220.0330.04314.42
5.3.210.0400.06314.53
5.3.200.0370.06014.40
5.3.190.0230.04314.41
5.3.180.0230.04314.61
5.3.170.0200.04014.41
5.3.160.0400.06314.40
5.3.150.0300.07014.59
5.3.140.0300.07014.38
5.3.130.0370.06014.47
5.3.120.0270.05314.45
5.3.110.0470.06314.39
5.3.100.0270.07313.89
5.3.90.0370.05713.96
5.3.80.0270.04713.89
5.3.70.0300.05314.06
5.3.60.0300.04713.91
5.3.50.0170.05013.88
5.3.40.0270.06713.78
5.3.30.0200.05013.96
5.3.20.0330.06013.60
5.3.10.0270.05013.72
5.3.00.0270.03713.59
5.2.170.0300.05011.00
5.2.160.0130.03710.98
5.2.150.0230.05711.24
5.2.140.0130.04011.08
5.2.130.0270.05011.04
5.2.120.0230.04011.19
5.2.110.0300.05011.11
5.2.100.0230.04310.96
5.2.90.0330.04011.20
5.2.80.0270.05710.96
5.2.70.0270.06010.98
5.2.60.0170.03310.89
5.2.50.0330.03010.88
5.2.40.0200.05710.88
5.2.30.0130.05011.12
5.2.20.0200.05310.97
5.2.10.0230.03310.80
5.2.00.0230.05010.69
5.1.60.0230.03010.34
5.1.50.0200.03310.34
5.1.40.0200.05310.34
5.1.30.0230.05010.38
5.1.20.0230.05310.50
5.1.10.0270.05310.34
5.1.00.0230.03310.34
5.0.50.0130.04710.34
5.0.40.0130.02710.34
5.0.30.0130.04010.34
5.0.20.0200.03310.34
5.0.10.0170.03010.34
5.0.00.0130.06010.34
4.4.90.0170.03010.34
4.4.80.0130.01310.34
4.4.70.0100.03010.34
4.4.60.0070.02710.34
4.4.50.0100.01710.34
4.4.40.0130.03310.34
4.4.30.0130.03310.34
4.4.20.0200.01310.34
4.4.10.0100.02010.34
4.4.00.0130.04310.34
4.3.110.0170.03010.34
4.3.100.0070.01710.34
4.3.90.0170.02010.34
4.3.80.0130.03710.34
4.3.70.0100.02310.34
4.3.60.0100.01710.34
4.3.50.0130.03010.34
4.3.40.0100.04310.34
4.3.30.0030.04010.34
4.3.20.0030.03310.34
4.3.10.0030.02710.34
4.3.00.0070.02710.34

preferences:
123.46 ms | 403 KiB | 5 Q