3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d W', strtotime($year . 'W' . str_pad('1', 2, '0', STR_PAD_LEFT));

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)
7.0.20.0400.06720.35
7.0.10.0070.08320.20
7.0.00.0100.07320.09
5.6.170.0230.06320.55
5.6.160.0100.08020.50
5.6.150.0100.04318.27
5.6.140.0130.07018.15
5.6.130.0100.04318.30
5.6.120.0100.06721.09
5.6.110.0130.06720.96
5.6.100.0100.07020.98
5.6.90.0030.04721.11
5.6.80.0170.06020.50
5.5.310.0230.07720.30
5.5.300.0030.04317.91
5.5.290.0030.04318.08
5.5.280.0130.05020.84
5.5.270.0070.08720.72
5.5.260.0130.06320.72
5.5.250.0070.07320.61
5.5.240.0000.04020.04

preferences:
139.23 ms | 1386 KiB | 7 Q