3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dumpMappedRow($mappedRow) { var_dump([ 'created' => $mappedRow['created']->format(DateTime::ISO8601), 'modified' => $mappedRow['modified']->format(DateTime::ISO8601) ]); } $date = new DateTime(); $mappedRow['created'] = $date; $mappedRow['modified'] = $date; dumpMappedRow($mappedRow); $mappedRow['modified']->setDate("2015", "11", "15"); dumpMappedRow($mappedRow); if ($mappedRow['created']->getTimestamp() === $mappedRow['modified']->getTimestamp()) { echo "\nCreated and Modified are set to the same value." }

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)
5.6.130.0070.04318.23
5.6.120.0030.06021.14
5.6.110.0070.07020.89
5.6.100.0030.08021.14
5.6.90.0070.04720.98
5.6.80.0070.06720.29
5.5.290.0030.06018.04
5.5.280.0030.04020.77
5.5.270.0130.08020.82
5.5.260.0230.03320.73
5.5.250.0000.08020.59
5.5.240.0030.08020.16
5.4.450.0570.05719.47
5.4.440.0600.06319.58
5.4.430.0670.04719.64
5.4.420.0600.05319.45
5.4.410.0600.05719.34
5.4.400.0570.05319.16
5.4.390.0530.06019.24
5.4.380.0600.05319.32
5.4.370.0500.06019.23
5.4.360.0570.06019.14
5.4.350.0600.05319.25
5.4.340.0500.06319.14
5.4.320.0600.06318.89
5.4.310.0630.05019.13
5.4.300.0570.05318.84
5.4.290.0770.04318.86
5.4.280.0800.05019.31
5.4.270.0670.05019.23
5.4.260.0570.05319.15
5.4.250.0700.05718.86
5.4.240.0800.06319.04
5.4.230.0770.05019.13
5.4.220.0730.05319.13
5.4.210.0730.05319.04
5.4.200.0770.05019.02
5.4.190.0730.05319.29
5.4.180.0800.05019.22
5.4.170.0800.04719.30
5.4.160.0800.04719.14
5.4.150.0830.06019.03
5.4.140.0770.05316.29
5.4.130.0800.04316.52
5.4.120.0730.05316.28
5.4.110.0800.05016.53
5.4.100.0630.04716.45
5.4.90.0630.04716.62
5.4.80.0570.05316.18
5.4.70.0170.04716.18
5.4.60.0330.06316.43
5.4.50.0030.03316.51
5.4.40.0200.07316.39
5.4.30.0100.07716.55
5.4.20.0230.06016.43
5.4.10.0270.04316.58

preferences:
140.43 ms | 1394 KiB | 7 Q