3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $next_monday = strtotime('Tuesday'); if ($next_monday < (2*86400)){ $next_monday = $next_monday + 604800;//add a week echo date('Y-m-d', $next_monday) . "T00:00:00"; }else{ echo date('Y-m-d', $next_monday) . "T00:00:00"; } ?>

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.0060.00916.75
8.3.50.0100.00722.20
8.3.40.0000.01518.88
8.3.30.0100.00319.07
8.3.20.0050.00220.17
8.3.10.0040.00423.52
8.3.00.0040.00419.13
8.2.180.0120.00618.41
8.2.170.0090.00922.96
8.2.160.0130.00720.39
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00420.52
8.2.110.0050.00322.45
8.2.100.0030.00917.91
8.2.90.0030.00719.35
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0050.00318.05
8.2.50.0060.00318.07
8.2.40.0000.00819.84
8.2.30.0040.00418.24
8.2.20.0000.00717.97
8.2.10.0040.00418.16
8.2.00.0030.00517.79
8.1.280.0040.01425.92
8.1.270.0040.00423.89
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00323.88
8.1.230.0040.00819.14
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.60
8.1.190.0050.00317.48
8.1.180.0040.00419.26
8.1.170.0030.00518.71
8.1.160.0000.00722.03
8.1.150.0000.00818.92
8.1.140.0040.00417.61
8.1.130.0000.00717.82
8.1.120.0070.00017.80
8.1.110.0050.00517.61
8.1.100.0080.00017.62
8.1.90.0000.00717.70
8.1.80.0030.00517.73
8.1.70.0030.00317.55
8.1.60.0030.00517.72
8.1.50.0050.00317.54
8.1.40.0030.00617.72
8.1.30.0030.00517.76
8.1.20.0030.00717.84
8.1.10.0080.00017.58
8.1.00.0020.00517.64
8.0.300.0000.00818.77
8.0.290.0000.00817.29
8.0.280.0040.00418.57
8.0.270.0070.00017.30
8.0.260.0000.00817.29
8.0.250.0000.00717.17
8.0.240.0040.00417.18
8.0.230.0000.00717.10
8.0.220.0000.00817.04
8.0.210.0070.00017.04
8.0.200.0090.00017.22
8.0.190.0040.00417.11
8.0.180.0070.00017.07
8.0.170.0040.00417.07
8.0.160.0040.00417.13
8.0.150.0000.00817.09
8.0.140.0040.00417.09
8.0.130.0040.00413.49
8.0.120.0050.00317.00
8.0.110.0040.00416.98
8.0.100.0040.00417.12
8.0.90.0040.00417.05
8.0.80.0140.00017.12
8.0.70.0080.00017.19
8.0.60.0040.00417.07
8.0.50.0050.00317.07
8.0.30.0110.00817.26
8.0.20.0120.01117.40
8.0.10.0000.00817.18
8.0.00.0100.00716.83
7.4.330.0000.00515.09
7.4.320.0060.00016.59
7.4.300.0000.00616.65
7.4.290.0030.00316.63
7.4.280.0040.00416.66
7.4.270.0070.00016.73
7.4.260.0070.00016.55
7.4.250.0000.00816.45
7.4.240.0030.00416.61
7.4.230.0000.00716.70
7.4.220.0150.00316.81
7.4.210.0090.00716.69
7.4.200.0070.00016.63
7.4.190.0000.00716.88
7.4.160.0090.00616.55
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0070.01016.78
7.4.120.0110.00816.70
7.4.110.0060.01216.67
7.4.100.0110.00816.59
7.4.90.0100.01416.58
7.4.80.0080.01119.39
7.4.70.0040.01216.61
7.4.60.0070.01016.66
7.4.50.0030.00616.83
7.4.40.0060.01016.68
7.4.30.0040.01316.72
7.4.00.0000.01814.87
7.3.330.0000.00513.16
7.3.320.0050.00013.41
7.3.310.0030.00516.49
7.3.300.0000.00616.43
7.3.290.0070.01316.51
7.3.280.0070.01116.45
7.3.270.0070.00917.40
7.3.260.0060.01216.75
7.3.250.0040.01316.55
7.3.240.0120.00916.63
7.3.230.0160.00716.41
7.3.210.0260.02716.56
7.3.200.0190.00419.39
7.3.190.0100.00716.80
7.3.180.0090.00916.39
7.3.170.0140.00716.54
7.3.160.0120.00416.51
7.3.120.0000.01215.00
7.3.10.0140.00716.75
7.3.00.0080.00616.78
7.2.330.0070.01016.89
7.2.320.0090.00916.70
7.2.310.0120.00616.78
7.2.300.0150.00916.97
7.2.290.0060.01316.71
7.2.130.0130.00516.85
7.2.120.0090.00717.02
7.2.110.0120.00617.03
7.2.100.0120.00916.78
7.2.90.0120.00716.63
7.2.80.0100.00816.59
7.2.70.0130.00716.79
7.2.60.0100.00916.74
7.2.50.0180.00516.93
7.2.40.0110.00816.97
7.2.30.0120.00816.95
7.2.20.0120.00716.68
7.2.10.0140.00616.64
7.2.00.0080.00917.09
7.1.250.0090.01215.85
7.1.240.0030.01015.97
7.1.230.0040.00416.06
7.1.220.0060.00615.76
7.1.210.0040.00815.70
7.1.200.0040.00716.14
7.1.190.0060.00615.99
7.1.180.0030.00915.71
7.1.170.0060.00615.81
7.1.160.0070.00416.08
7.1.150.0100.00315.62
7.1.140.0090.00015.87
7.1.130.0030.01215.75
7.1.120.0080.00616.06
7.1.110.0000.00915.86
7.1.100.0070.00316.01
7.1.90.0030.00916.02
7.1.80.0070.00716.02
7.1.70.0050.00516.79
7.1.60.0070.01017.67
7.1.50.0070.01416.71
7.1.40.0030.01015.71
7.1.30.0080.00015.86
7.1.20.0060.00615.83
7.1.10.0040.00815.91
7.1.00.0080.03819.12
7.0.330.0030.00715.53
7.0.320.0030.00815.33
7.0.310.0030.01015.32
7.0.300.0040.00815.59
7.0.290.0000.01415.32
7.0.280.0040.00815.30
7.0.270.0040.00415.19
7.0.260.0070.00714.89
7.0.250.0080.00415.08
7.0.240.0080.00415.66
7.0.230.0070.00415.69
7.0.220.0040.00815.31
7.0.210.0040.01115.73
7.0.200.0060.00516.17
7.0.190.0040.01115.43
7.0.180.0000.01315.30
7.0.170.0090.00615.44
7.0.160.0000.00815.47
7.0.150.0030.01015.56
7.0.140.0050.04018.69
7.0.130.0000.01415.64
7.0.120.0040.01115.35
7.0.110.0100.00015.42
7.0.100.0090.00315.19
7.0.90.0050.04318.63
7.0.80.0020.03318.67
7.0.70.0090.04018.68
7.0.60.0110.04318.56
7.0.50.0080.03818.67
7.0.40.0090.04716.84
7.0.30.0050.02816.88
7.0.20.0030.02716.87
7.0.10.0070.04516.84
7.0.00.0070.04216.75
5.6.380.0060.00314.77
5.6.370.0060.00314.29
5.6.360.0000.01314.29
5.6.350.0030.01214.16
5.6.340.0080.00514.08
5.6.330.0040.01114.50
5.6.320.0060.00614.24
5.6.310.0070.00714.47
5.6.300.0060.00614.39
5.6.290.0030.00714.27
5.6.280.0000.04017.85
5.6.270.0040.00814.36
5.6.260.0080.00814.39
5.6.250.0060.00614.55
5.6.240.0070.02817.43
5.6.230.0050.03017.47
5.6.220.0080.04317.58
5.6.210.0070.04517.54
5.6.200.0050.04317.86
5.6.190.0040.04317.81
5.6.180.0080.03717.64
5.6.170.0040.04917.67
5.6.160.0080.04717.84
5.6.150.0050.04817.82
5.6.140.0030.04817.64
5.6.130.0060.04317.57
5.6.120.0030.02317.83
5.6.110.0050.03717.71
5.6.100.0090.04417.58
5.6.90.0090.02217.77
5.6.80.0030.04717.49
5.6.70.0030.04317.22
5.6.60.0070.04317.29
5.6.50.0030.03517.35
5.6.40.0050.03117.21
5.6.30.0110.03517.33
5.6.20.0070.03917.30
5.6.10.0080.04117.36
5.6.00.0020.04317.41
5.5.380.0050.04015.82
5.5.370.0040.04215.82
5.5.360.0070.04315.80
5.5.350.0070.04515.79
5.5.340.0050.04315.97
5.5.330.0020.03216.02
5.5.320.0060.03115.97
5.5.310.0100.02215.95
5.5.300.0100.04816.05
5.5.290.0020.03815.96
5.5.280.0020.02715.95
5.5.270.0020.03515.95
5.5.260.0070.04516.17
5.5.250.0050.04315.90
5.5.240.0060.03615.73
5.5.230.0070.04315.69
5.5.220.0070.04015.70
5.5.210.0050.02515.73
5.5.200.0060.04415.67
5.5.190.0070.03815.65
5.5.180.0070.04215.69
5.5.170.0060.00011.22
5.5.160.0060.04015.75
5.5.150.0020.03415.67
5.5.140.0020.04015.68
5.5.130.0120.04215.72
5.5.120.0050.04015.70
5.5.110.0070.04515.68
5.5.100.0060.04115.67
5.5.90.0060.03915.61
5.5.80.0050.03815.65
5.5.70.0050.04015.66
5.5.60.0050.02515.60
5.5.50.0100.03515.65
5.5.40.0050.04315.66
5.5.30.0030.04315.61
5.5.20.0020.04015.62
5.5.10.0070.04015.69
5.5.00.0070.03915.58
5.4.450.0070.04215.32
5.4.440.0050.02015.17
5.4.430.0090.02315.26
5.4.420.0130.03615.29
5.4.410.0080.03815.21
5.4.400.0050.04515.08
5.4.390.0030.02914.99
5.4.380.0050.02415.12
5.4.370.0070.04015.17
5.4.360.0030.04315.04
5.4.350.0080.04014.98
5.4.340.0020.03015.12
5.4.330.0080.00311.18
5.4.320.0030.03315.16
5.4.310.0040.02815.12
5.4.300.0080.03815.12
5.4.290.0050.04014.98
5.4.280.0050.03415.06
5.4.270.0050.03215.04
5.4.260.0070.03715.10
5.4.250.0090.03615.11
5.4.240.0040.04015.10
5.4.230.0030.03315.07
5.4.220.0030.03915.00
5.4.210.0030.04215.15
5.4.200.0000.04015.14
5.4.190.0090.03515.14
5.4.180.0060.02415.15
5.4.170.0050.03315.10
5.4.160.0100.02315.15
5.4.150.0050.03815.07
5.4.140.0060.04213.81
5.4.130.0030.03813.72
5.4.120.0080.03313.80
5.4.110.0080.02313.83
5.4.100.0050.03113.82
5.4.90.0000.04413.78
5.4.80.0050.04113.80
5.4.70.0070.03713.79
5.4.60.0010.04413.79
5.4.50.0100.03513.71
5.4.40.0100.02713.79
5.4.30.0030.02513.74
5.4.20.0020.02213.77
5.4.10.0010.02313.78
5.4.00.0030.02113.45
5.3.290.0070.02512.92
5.3.280.0040.04412.86
5.3.270.0020.04012.83
5.3.260.0050.04512.82
5.3.250.0050.02912.88
5.3.240.0060.01812.80
5.3.230.0060.03712.87
5.3.220.0040.03412.87
5.3.210.0110.02812.80
5.3.200.0030.03512.80
5.3.190.0050.03712.78
5.3.180.0000.04712.87
5.3.170.0060.02512.79
5.3.160.0070.02312.84
5.3.150.0020.03712.80
5.3.140.0030.02712.84
5.3.130.0020.03412.85
5.3.120.0050.02212.83
5.3.110.0050.03712.79
5.3.100.0020.03912.60
5.3.90.0070.02212.55
5.3.80.0060.02712.56
5.3.70.0070.03512.59
5.3.60.0050.03912.52
5.3.50.0080.03812.54
5.3.40.0090.03212.53
5.3.30.0080.03412.52
5.3.20.0000.03012.38
5.3.10.0020.02912.41
5.3.00.0020.04412.33
5.2.170.0020.03211.05
5.2.160.0070.02111.15
5.2.150.0050.03211.20
5.2.140.0080.03011.13
5.2.130.0050.01911.13
5.2.120.0050.02211.17
5.2.110.0050.03311.17
5.2.100.0080.02211.13
5.2.90.0020.03511.07
5.2.80.0020.03811.15
5.2.70.0050.03811.11
5.2.60.0000.03811.12
5.2.50.0030.03211.07
5.2.40.0030.03311.01
5.2.30.0020.02811.11
5.2.20.0020.02710.98
5.2.10.0020.03211.02
5.2.00.0040.03210.97
5.1.60.0030.02510.82
5.1.50.0010.03110.82
5.1.40.0020.02710.82
5.1.30.0030.02810.82
5.1.20.0040.03010.82
5.1.10.0020.02810.82
5.1.00.0020.01710.82
5.0.50.0030.01210.82
5.0.40.0010.01510.82
5.0.30.0020.03610.82
5.0.20.0040.01910.82
5.0.10.0020.02510.82
5.0.00.0030.03110.82
4.4.90.0000.02010.82
4.4.80.0000.02010.82
4.4.70.0020.01810.82
4.4.60.0020.01510.82
4.4.50.0020.01910.82
4.4.40.0030.02210.82
4.4.30.0030.01810.82
4.4.20.0000.02010.82
4.4.10.0020.01710.82
4.4.00.0030.02810.82
4.3.110.0020.01910.82
4.3.100.0020.01810.82
4.3.90.0000.02010.82
4.3.80.0020.02410.82
4.3.70.0020.01510.82
4.3.60.0000.01410.82
4.3.50.0000.01310.82
4.3.40.0000.01710.82
4.3.30.0020.01010.82
4.3.20.0030.01710.82
4.3.10.0030.01810.82
4.3.00.0000.01310.82

preferences:
47.63 ms | 401 KiB | 5 Q