3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_string = '2020W01'; $from = date('Y-m-d', strtotime($date_string)); $to = date('Y-m-d', strtotime($date_string . '7')); echo $from .' - '. $to .'<br/>'; $from = date('o-W', strtotime($date_string)); $to = date('o-W', strtotime($date_string .'7')); echo $from .' - '. $to .'<br/>'; $from = date('o-W', mktime(0,0,0,12,30,2019)); echo $from;

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.70.0140.00716.63
8.3.60.0030.01318.31
8.3.50.0160.00316.40
8.3.40.0150.00618.93
8.3.30.0060.00918.99
8.3.20.0050.00320.83
8.3.10.0050.00321.89
8.3.00.0030.00621.69
8.2.190.0120.00316.58
8.2.180.0070.00718.54
8.2.170.0090.00922.96
8.2.160.0100.00322.17
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0000.00922.19
8.2.100.0080.00419.51
8.2.90.0060.00318.00
8.2.80.0040.00418.86
8.2.70.0050.00317.63
8.2.60.0060.00317.50
8.2.50.0000.00818.05
8.2.40.0000.00819.95
8.2.30.0030.00618.18
8.2.20.0000.00718.12
8.2.10.0040.00419.36
8.2.00.0080.00019.30
8.1.280.0130.00725.92
8.1.270.0040.00420.55
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.05
8.1.230.0060.00617.95
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0000.01117.48
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0050.00317.62
8.1.160.0000.00718.98
8.1.150.0040.00419.13
8.1.140.0000.00720.70
8.1.130.0040.00421.96
8.1.120.0000.00817.65
8.1.110.0000.01217.53
8.1.100.0000.00717.66
8.1.90.0080.00017.52
8.1.80.0080.00017.52
8.1.70.0050.00217.68
8.1.60.0050.00517.73
8.1.50.0030.00617.64
8.1.40.0040.00417.65
8.1.30.0000.00817.70
8.1.20.0000.00817.77
8.1.10.0000.00817.54
8.1.00.0000.00817.49
8.0.300.0070.00018.77
8.0.290.0060.00317.00
8.0.280.0000.00818.39
8.0.270.0040.00418.24
8.0.260.0030.00320.06
8.0.250.0070.00017.09
8.0.240.0060.00317.20
8.0.230.0030.00317.18
8.0.220.0020.00516.96
8.0.210.0040.00317.01
8.0.200.0030.00317.19
8.0.190.0000.00717.04
8.0.180.0030.00516.99
8.0.170.0030.00517.01
8.0.160.0050.00317.18
8.0.150.0000.00916.94
8.0.140.0040.00416.93
8.0.130.0000.00613.41
8.0.120.0030.00516.98
8.0.110.0070.00017.03
8.0.100.0030.00516.97
8.0.90.0000.00917.10
8.0.80.0090.01217.13
8.0.70.0000.00717.05
8.0.60.0040.00416.95
8.0.50.0070.00017.14
8.0.30.0130.00417.22
8.0.20.0160.00317.39
8.0.10.0000.00716.97
8.0.00.0130.00617.09
7.4.330.0000.00616.84
7.4.320.0000.00616.61
7.4.300.0070.00016.62
7.4.290.0000.00716.69
7.4.280.0040.00416.64
7.4.270.0030.00316.64
7.4.260.0000.00513.33
7.4.250.0000.00716.59
7.4.240.0020.00616.62
7.4.230.0000.00716.61
7.4.220.0050.00216.68
7.4.210.0080.00816.62
7.4.200.0080.00016.47
7.4.140.0040.01517.86
7.4.130.0030.01416.53
7.4.120.0110.00616.64
7.4.110.0100.00616.57
7.4.100.0100.00716.67
7.4.90.0030.01816.79
7.4.80.0160.00319.39
7.4.70.0030.01316.49
7.4.60.0100.00616.55
7.4.50.0110.00416.43
7.4.40.0140.00716.59
7.4.10.0070.01116.21
7.4.00.0130.00316.60
7.3.330.0000.00716.45
7.3.320.0050.00013.30
7.3.310.0000.00716.23
7.3.300.0030.00316.24
7.3.290.0070.01016.38
7.3.260.0090.01516.70
7.3.240.0070.01216.74
7.3.230.0100.00616.42
7.3.210.0030.01316.46
7.3.200.0040.01816.41
7.3.190.0060.00916.44
7.3.180.0130.00916.30
7.3.170.0030.01316.84
7.3.160.0120.00416.68
7.3.130.0130.00416.73
7.3.120.0120.00316.41
7.3.110.0120.00316.45
7.3.100.0090.00616.43
7.3.90.0090.00616.65
7.3.80.0130.00316.58
7.3.70.0030.01216.39
7.3.60.0060.01016.50
7.3.50.0060.00916.60
7.3.40.0060.00916.55
7.3.30.0120.00916.33
7.3.20.0090.00916.57
7.3.10.0160.00616.54
7.3.00.0120.00616.54
7.2.330.0120.00616.83
7.2.320.0130.00316.91
7.2.310.0030.01316.76
7.2.300.0100.00716.62
7.2.290.0100.00716.77
7.2.260.0100.01016.85
7.2.250.0030.01316.67
7.2.240.0030.01316.57
7.2.230.0060.01016.63
7.2.220.0130.00716.70
7.2.210.0040.01216.52
7.2.200.0110.00416.66
7.2.190.0030.01416.57
7.2.180.0090.01216.77
7.2.170.0060.01016.69
7.2.160.0100.00616.57
7.2.150.0060.01516.71
7.2.140.0090.00916.73
7.2.130.0070.01816.62
7.2.120.0170.00316.72
7.2.110.0030.01616.61
7.2.100.0150.00416.87
7.2.90.0130.00616.74
7.2.80.0070.01416.86
7.2.70.0090.00916.63
7.2.60.0100.01416.63
7.2.50.0130.01316.65
7.2.40.0090.00916.85
7.2.30.0100.01016.74
7.2.20.0140.00316.76
7.2.10.0110.00616.73
7.2.00.0120.01216.66

preferences:
66.01 ms | 401 KiB | 5 Q