3v4l.org

run code in 300+ PHP versions simultaneously
<?php $field = 'December 22, 2015 at 5:00 AM'; $newfield = date('m/d/Y', strtotime('+1 days', $field) if (date('D', strtotime($field)) == date('D')) { echo 'yes'; } else { echo 'no'; } echo $newfield; echo date('D');

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.0000.05020.25
7.0.00.0030.04720.30
5.6.160.0100.07720.44
5.6.150.0130.07718.16
5.6.140.0070.06718.18
5.6.130.0170.07318.19
5.6.120.0200.07021.04
5.6.110.0100.03321.01
5.6.100.0070.07020.98
5.6.90.0070.06321.01
5.6.80.0170.08020.36
5.5.300.0130.07318.03
5.5.290.0130.07318.09
5.5.280.0100.05020.68
5.5.270.0070.05320.86
5.5.260.0130.05320.79
5.5.250.0030.09020.77
5.5.240.0130.08020.14

preferences:
140.48 ms | 1394 KiB | 7 Q