3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('first Monday of this month'); echo $dt->format('W);'

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.10.0070.08020.00
7.0.00.0030.08720.16
5.6.160.0100.04720.62
5.6.150.0000.04318.08
5.6.140.0170.06318.22
5.6.130.0100.04018.24
5.6.120.0230.07321.02
5.6.110.0030.07721.03
5.6.100.0270.07320.98
5.6.90.0170.07320.97
5.6.80.0100.05320.28
5.5.300.0030.08317.88
5.5.290.0070.08017.95
5.5.280.0130.07720.84
5.5.270.0030.08320.84
5.5.260.0070.08320.75
5.5.250.0000.08720.70
5.5.240.0130.07020.26

preferences:
141.74 ms | 1394 KiB | 7 Q