3v4l.org

run code in 300+ PHP versions simultaneously
<?php $monday = strtotime('monday this week'); $sunday = strtotime('sunday this week'); echo date("Y-m-d", $monday)."\n"; echo date("Y-m-d", $sunday);

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.140.0110.00917.48
8.4.130.0120.00717.89
8.4.120.0040.00524.32
8.4.110.0100.01022.26
8.4.100.0110.01017.89
8.4.90.0130.00818.74
8.4.80.0030.00619.59
8.4.70.0030.00517.71
8.4.60.0040.00618.81
8.4.50.0150.01017.84
8.4.40.0100.01019.50
8.4.30.0130.00617.76
8.4.20.0130.00720.45
8.4.10.0070.01418.06
8.3.270.0120.00716.47
8.3.260.0130.00616.92
8.3.250.0110.00818.80
8.3.240.0130.00717.23
8.3.230.0070.01016.83
8.3.220.0030.00517.17
8.3.210.0070.00116.83
8.3.200.0140.00516.64
8.3.190.0070.00819.10
8.3.180.0100.00916.71
8.3.170.0090.00917.36
8.3.160.0110.00716.73
8.3.150.0030.01320.69
8.3.140.0030.00716.55
8.3.130.0080.00018.65
8.3.120.0060.00320.64
8.3.110.0070.01020.94
8.3.100.0080.00016.75
8.3.90.0040.00426.77
8.3.80.0080.00419.36
8.3.70.0000.01518.29
8.3.60.0070.01118.18
8.3.50.0120.00318.08
8.3.40.0120.00318.61
8.3.30.0120.00318.84
8.3.20.0060.00319.21
8.3.10.0060.00323.48
8.3.00.0030.00520.57
8.2.290.0100.00820.57
8.2.280.0040.00518.40
8.2.270.0040.01217.08
8.2.260.0090.00919.01
8.2.250.0100.00018.24
8.2.240.0090.00017.30
8.2.230.0060.00322.58
8.2.220.0070.00024.06
8.2.210.0110.00726.77
8.2.200.0080.00418.88
8.2.190.0100.00316.68
8.2.180.0110.00718.49
8.2.170.0150.00022.96
8.2.160.0070.00722.20
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00421.19
8.2.110.0000.00919.30
8.2.100.0060.00617.97
8.2.90.0050.00319.34
8.2.80.0040.00417.97
8.2.70.0030.00517.88
8.2.60.0040.00418.18
8.2.50.0060.00318.07
8.2.40.0040.00418.35
8.2.30.0060.00318.24
8.2.20.0120.00017.94
8.2.10.0030.00817.94
8.2.00.0070.00517.83
8.1.330.0120.00721.91
8.1.320.0050.00316.17
8.1.310.0110.00318.38
8.1.300.0070.00318.24
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0000.00718.99
8.1.260.0050.00226.35
8.1.250.0110.00428.09
8.1.240.0040.00421.42
8.1.230.0060.00617.95
8.1.220.0100.00217.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0050.00317.60
8.1.180.0040.00418.10
8.1.170.0060.00318.68
8.1.160.0000.00819.05
8.1.150.0040.00818.33
8.1.140.0080.00419.95
8.1.130.0100.00219.00
8.1.120.0040.00817.62
8.1.110.0080.00417.65
8.1.100.0110.00117.76
8.1.90.0100.00217.68
8.1.80.0040.00817.73
8.1.70.0090.00317.60
8.1.60.0070.00717.80
8.1.50.0090.00417.73
8.1.40.0090.00417.77
8.1.30.0110.00217.85
8.1.20.0090.00517.85
8.1.10.0080.00517.67
8.1.00.0070.00717.68
8.0.300.0000.00918.77
8.0.290.0000.00717.00
8.0.280.0040.00418.51
8.0.270.0070.00517.11
8.0.260.0090.00217.78
8.0.250.0080.00417.18
8.0.240.0060.00617.19
8.0.230.0090.00217.17
8.0.220.0040.00717.13
8.0.210.0080.00417.06
8.0.200.0090.00217.05
8.0.190.0040.00817.09
8.0.180.0040.00817.04
8.0.170.0080.00517.06
8.0.160.0020.00917.12
8.0.150.0090.00216.98
8.0.140.0040.00817.11
8.0.130.0090.00215.21
8.0.120.0060.00517.07
8.0.110.0080.00317.03
8.0.100.0090.00217.01
8.0.90.0090.00316.97
8.0.80.0100.00517.11
8.0.70.0100.00117.08
8.0.60.0070.00517.01
8.0.50.0100.00216.89
8.0.30.0170.00317.07
8.0.20.0120.00517.19
8.0.10.0070.00517.10
8.0.00.0110.00916.96
7.4.330.0090.00015.84
7.4.320.0090.00316.56
7.4.300.0070.00416.61
7.4.290.0100.00216.64
7.4.280.0090.00316.57
7.4.270.0080.00416.58
7.4.260.0100.00316.62
7.4.250.0120.00016.58
7.4.240.0080.00416.68
7.4.230.0100.00216.66
7.4.220.0070.00416.64
7.4.210.0100.00616.65
7.4.200.0060.00516.55
7.4.190.0110.00416.71
7.4.180.0090.00516.71
7.4.160.0120.00416.69
7.4.150.0080.00516.61
7.4.140.0080.01117.62
7.4.130.0150.00416.49
7.4.120.0120.00516.58
7.4.110.0080.00816.57
7.4.100.0100.00516.61
7.4.90.0100.00616.59
7.4.80.0100.00517.91
7.4.70.0070.00916.48
7.4.60.0070.00816.56
7.4.50.0080.00716.48
7.4.40.0100.00716.62
7.4.30.0090.00516.40
7.4.20.0130.00016.58
7.4.10.0100.00316.39
7.4.00.0040.01015.63
7.3.330.0050.00514.67
7.3.320.0070.00314.75
7.3.310.0030.00816.34
7.3.300.0060.00416.38
7.3.290.0090.00216.35
7.3.280.0090.00616.38
7.3.270.0120.00316.18
7.3.260.0140.00516.48
7.3.250.0080.00616.34
7.3.240.0090.00816.49
7.3.230.0120.00516.56
7.3.220.0140.00016.43
7.3.210.0130.00316.35
7.3.200.0070.00816.34
7.3.190.0100.00716.48
7.3.180.0100.00716.32
7.3.170.0070.00816.58
7.3.160.0090.00616.48
7.3.150.0140.00016.41
7.3.140.0110.00416.23
7.3.130.0150.00016.40
7.3.120.0050.01115.59
7.3.110.0120.00215.69
7.3.100.0160.00015.58
7.3.90.0090.00615.83
7.3.80.0080.00515.67
7.3.70.0090.00715.54
7.3.60.0110.00215.55
7.3.50.0080.00515.58
7.3.40.0100.00515.64
7.3.30.0090.00415.78
7.3.20.0100.00117.58
7.3.10.0070.00617.18
7.3.00.0080.00517.00
7.2.340.0100.00316.38
7.2.330.0100.00516.72
7.2.320.0100.00616.72
7.2.310.0080.00916.68
7.2.300.0090.00616.56
7.2.290.0100.00616.64
7.2.280.0090.00516.57
7.2.270.0110.00416.48
7.2.260.0120.00216.67
7.2.250.0090.00816.01
7.2.240.0070.00915.86
7.2.230.0100.00415.78
7.2.220.0140.00215.92
7.2.210.0080.00815.82
7.2.200.0080.00715.89
7.2.190.0040.00815.85
7.2.180.0080.00715.93
7.2.170.0100.00615.89
7.2.160.0110.00316.75
7.2.150.0140.00318.56
7.2.140.0140.00018.51
7.2.130.0070.00717.48
7.2.120.0130.00117.49
7.2.110.0400.00716.19
7.2.100.0290.00616.14
7.2.90.0290.00516.19
7.2.80.0430.00716.15
7.2.70.0200.00916.31
7.2.60.0270.01016.37
7.2.50.0310.00616.36
7.2.40.0360.00816.41
7.2.30.0350.01016.40
7.2.20.0290.00516.36
7.2.10.0360.00716.35
7.2.00.0660.00716.38
7.1.330.0070.00616.71
7.1.320.0050.00616.76
7.1.310.0080.00816.60
7.1.300.0140.00216.53
7.1.290.0100.00416.74
7.1.280.0060.00516.71
7.1.270.0060.00616.73
7.1.260.0100.00416.81
7.1.250.0070.00716.52
7.1.240.0130.00017.23
7.1.230.0480.00714.85
7.1.220.0560.00814.85
7.1.210.0560.00614.76
7.1.200.0520.00614.73
7.1.190.0480.00714.85
7.1.180.0530.00514.83
7.1.170.0480.00614.94
7.1.160.0550.00314.88
7.1.150.0510.00414.98
7.1.140.0470.00714.97
7.1.130.0370.00714.94
7.1.120.0470.00414.87
7.1.110.0550.00814.88
7.1.100.0830.00814.89
7.1.90.0510.00614.73
7.1.80.0330.00714.94
7.1.70.0550.00714.90
7.1.60.0580.00528.28
7.1.50.0680.00728.33
7.1.40.0690.01228.38
7.1.30.0890.01128.23
7.1.20.0620.01028.26
7.1.10.0770.00614.83
7.1.00.0580.00414.84
7.0.330.0090.00516.89
7.0.320.0070.00716.84
7.0.310.0450.00715.18
7.0.300.0310.00515.15
7.0.290.0270.00815.28
7.0.280.0450.00414.47
7.0.270.0380.00815.38
7.0.260.0410.00215.17
7.0.250.0420.00715.46
7.0.240.0390.00815.48
7.0.230.0220.00515.32
7.0.220.0130.00615.42
7.0.210.0220.00215.37
7.0.200.0080.01115.49
7.0.190.0200.01215.52
7.0.180.0270.00615.48
7.0.170.0190.00515.36
7.0.160.0320.00515.23
7.0.150.0300.00415.40
7.0.140.0160.00815.31
7.0.130.0180.00815.49
7.0.120.0190.00515.41
7.0.110.0220.00515.29
7.0.100.0820.00815.28
7.0.90.0130.00315.27
7.0.80.0110.00515.14
7.0.70.0140.00615.25
7.0.60.0240.00815.38
7.0.50.0160.00715.39
7.0.40.0160.01115.28
7.0.30.0190.00315.31
7.0.20.0120.01015.25
7.0.10.0240.00415.38
7.0.00.0130.00815.20
5.6.400.0130.00016.13
5.6.390.0070.00716.13
5.6.380.0080.00714.88
5.6.370.0150.00315.36
5.6.360.0090.00915.26
5.6.350.0110.00615.34
5.6.340.0100.00915.27
5.6.330.0120.00615.21
5.6.320.0130.00415.14
5.6.310.0170.00215.24
5.6.300.0130.00515.32
5.6.290.0090.00815.32
5.6.280.0100.00815.33
5.6.270.0110.00515.32
5.6.260.0110.00715.30
5.6.250.0070.01015.33
5.6.240.0120.00515.29
5.6.230.0080.00815.21
5.6.220.0110.00515.30
5.6.210.0110.00615.33
5.6.200.0110.00615.21
5.6.190.0070.01215.30
5.6.180.0100.00615.21
5.6.170.0110.00815.26
5.6.160.0100.00715.36
5.6.150.0090.00715.37
5.6.140.0070.00915.33
5.6.130.0170.00015.30
5.6.120.0120.00615.30
5.6.110.0160.00315.33
5.6.100.0120.00515.36
5.6.90.0130.00515.38
5.6.80.0050.01115.12
5.6.70.0090.00715.24
5.6.60.0120.00615.25
5.6.50.0100.00515.20
5.6.40.0060.01115.20
5.6.30.0130.00515.26
5.6.20.0080.00915.29
5.6.10.0150.00215.16
5.6.00.0080.00815.24

preferences:
31.75 ms | 403 KiB | 5 Q