3v4l.org

run code in 300+ PHP versions simultaneously
<?php // in examples below, this script was run at 30.10.2021 echo date("Y-m-d H:i:s\n", strtotime("+1.5 year", time())); echo date("Y-m-d H:i:s\n"); echo date("Y-m-d H:i:s\n", strtotime("-1.5 year", time())); ?>

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.0.120.0110.00013.40
8.0.110.0030.00813.35
8.0.100.0120.00013.34
8.0.90.0120.00013.31
8.0.80.0080.00413.36
8.0.70.0110.00013.37
8.0.60.0080.00313.32
8.0.50.0120.00013.33
8.0.30.0080.00413.40
8.0.20.0120.00013.42
8.0.10.0000.01313.49
8.0.00.0040.00413.37
7.4.250.0050.00613.30
7.4.240.0080.00213.28
7.4.230.0100.00413.19
7.4.220.0130.00013.30
7.4.210.0110.00313.27
7.4.200.0130.00013.38
7.4.190.0080.00413.27
7.4.180.0040.01113.44
7.4.160.0140.00013.34
7.4.150.0150.00013.17
7.4.140.0080.00613.18
7.4.130.0100.00413.21
7.4.120.0100.00313.31
7.4.110.0120.00013.26
7.4.100.0080.00513.20
7.4.90.0100.00213.23
7.4.80.0070.00713.20
7.4.70.0110.00213.15
7.4.60.0070.00713.13
7.4.50.0090.00513.11
7.4.40.0090.00513.02
7.4.30.0050.00813.27
7.4.20.0090.00413.13
7.4.10.0090.00413.16
7.4.00.0060.00613.13
7.3.320.0060.00613.06
7.3.310.0110.00013.09
7.3.300.0060.00613.16
7.3.290.0130.00013.16
7.3.280.0080.00413.24
7.3.270.0150.00013.13
7.3.260.0070.00513.06
7.3.250.0040.00813.01
7.3.240.0090.00313.20
7.3.230.0110.00313.18
7.3.220.0090.00613.07
7.3.210.0110.00013.04
7.3.200.0080.00413.00
7.3.190.0090.00513.12
7.3.180.0140.00012.99
7.3.170.0150.00012.90
7.3.160.0110.00313.00
7.3.150.0100.00213.07
7.3.140.0110.00012.95
7.3.130.0100.00013.15
7.3.120.0130.00012.94
7.3.110.0130.00213.08
7.3.100.0080.00412.99
7.3.90.0100.00513.28
7.3.80.0090.00412.94
7.3.70.0090.00413.24
7.3.60.0100.00313.16
7.3.50.0080.00813.35
7.3.40.0090.00513.37
7.3.30.0070.00713.27
7.3.20.0100.00414.94
7.3.10.0130.00014.86
7.3.00.0070.00714.98

preferences:
41.06 ms | 403 KiB | 5 Q