3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = 'Год: Y, Месяц: m, День: d'; $dates = [new DateTime('2020-10-20'), new DateTime('2000-02-05'), new DateTime('2000-02-02'), new DateTime('2000-05-01')]; usort($dates, fn($a, $b) => $a < $b ? -1: 1); foreach($dates as $date) { var_dump($date->format($format)); } var_dump('Min: ' . $dates[0]->format($format)); var_dump('Max: ' . $dates[count($dates) - 1]->format($format));

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.0190.00318.43
8.3.60.0120.00316.75
8.3.50.0120.01216.71
8.3.40.0030.01218.96
8.3.30.0110.00418.76
8.3.20.0070.00424.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.190.0110.00718.42
8.2.180.0080.00625.92
8.2.170.0070.01319.16
8.2.160.0000.01422.96
8.2.150.0060.00325.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00326.35
8.2.110.0040.00722.25
8.2.100.0150.00318.09
8.2.90.0030.00518.00
8.2.80.0100.00019.08
8.2.70.0060.00317.75
8.2.60.0030.00618.16
8.2.50.0030.00618.05
8.2.40.0020.00518.28
8.2.30.0000.00718.26
8.2.20.0050.00318.13
8.2.10.0060.00319.39
8.2.00.0040.00419.45
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00319.45
8.1.230.0080.00420.87
8.1.220.0030.00518.77
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00818.68
8.1.160.0070.00018.88
8.1.150.0000.00718.95
8.1.140.0040.00420.75
8.1.130.0040.00420.06
8.1.120.0000.00717.72
8.1.110.0080.00017.63
8.1.100.0030.00317.51
8.1.90.0000.00717.68
8.1.80.0030.00717.67
8.1.70.0000.00717.66
8.1.60.0030.00617.57
8.1.50.0050.00317.64
8.1.40.0040.00417.68
8.1.30.0040.00417.80
8.1.20.0000.00917.85
8.1.10.0030.00517.71
8.1.00.0040.00417.59
8.0.300.0000.01118.77
8.0.290.0050.00316.75
8.0.280.0030.00620.21
8.0.270.0070.00018.21
8.0.260.0000.00718.53
8.0.250.0040.00417.12
8.0.240.0030.00317.16
8.0.230.0000.00717.22
8.0.220.0030.00317.08
8.0.210.0040.00417.00
8.0.200.0040.00417.11
8.0.190.0000.00817.09
8.0.180.0080.00417.02
8.0.170.0080.00016.96
8.0.160.0000.00717.08
8.0.150.0000.00717.07
8.0.140.0000.00717.11
8.0.130.0030.00313.41
8.0.120.0040.00417.07
8.0.110.0070.00017.09
8.0.100.0000.00716.89
8.0.90.0030.00317.00
8.0.80.0030.01217.06
8.0.70.0000.00916.88
8.0.60.0040.00417.16
8.0.50.0040.00416.90
8.0.30.0070.01017.12
8.0.20.0110.01117.34
8.0.10.0110.01117.20
8.0.00.0100.01217.39
7.4.330.0030.00315.55
7.4.320.0030.00316.79
7.4.300.0000.00616.70
7.4.290.0030.00316.52
7.4.280.0040.00416.77
7.4.270.0050.00316.54
7.4.260.0000.00513.20
7.4.250.0030.00316.53
7.4.240.0020.00516.61
7.4.230.0070.00016.45
7.4.220.0030.00316.60
7.4.210.0100.00616.71
7.4.200.0080.00016.78
7.4.150.0140.01216.57
7.4.140.0130.00516.59
7.4.130.0120.00716.72
7.4.120.0130.00516.60
7.4.110.0100.01016.52
7.4.100.0080.01016.68
7.4.90.0100.00716.50
7.4.80.0080.01216.57
7.4.70.0140.00516.66
7.4.60.0180.00216.55
7.4.50.0190.00416.64
7.4.40.0100.01216.58
7.4.30.0140.00716.55
7.4.20.0150.00116.66
7.4.10.0160.00716.52
7.4.00.0100.00716.48
7.3.330.0000.00716.01
7.3.320.0000.00513.24
7.3.310.0030.00316.23
7.3.300.0070.00016.08
7.3.290.0080.00716.17
7.3.270.0050.01216.23
7.3.260.0140.00316.12
7.3.250.0100.01016.17
7.3.240.0070.00916.30
7.3.230.0090.01216.28
7.3.220.0080.00916.33
7.3.210.0100.00816.30
7.3.200.0130.00516.24
7.3.190.0090.00916.22
7.3.180.0140.00516.28
7.3.170.0090.01116.14
7.3.160.0080.01316.09
7.3.150.0090.00816.10
7.3.140.0110.00716.30
7.3.130.0100.00916.11
7.3.120.0150.00516.18
7.3.110.0080.01216.16
7.3.100.0080.01316.30
7.3.90.0120.00916.11
7.3.80.0140.00716.17
7.3.70.0140.00516.10
7.3.60.0090.00816.13
7.3.50.0030.01316.08
7.3.40.0030.01316.19
7.3.30.0080.00816.08
7.3.20.0070.01016.34
7.3.10.0100.01016.11
7.3.00.0090.00816.06

preferences:
50.4 ms | 401 KiB | 5 Q