3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo (new \DateTime())->format('d-m-Y_H:i:s.u'); //echo time(); //echo date("Y-m-d H:i:s.u"); $t = microtime(true); $micro = sprintf("%06d",($t - floor($t)) * 1000000); $d = new DateTime( date('Y-m-d H:i:s.'.$micro, $t) ); print $d->format("d-m-Y_H:i:s.u"); // note at point on "u"

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.2.60.0030.01317.39
7.2.00.0030.01219.89
7.1.100.0080.00318.17
7.1.70.0060.01017.22
7.1.60.0160.01935.36
7.1.50.0190.01434.76
7.1.40.0170.01334.57
7.1.30.0160.01034.61
7.1.20.0160.01334.61
7.1.10.0070.00716.78
7.1.00.0030.01516.67
7.0.200.0110.01116.97
7.0.190.0100.00816.70
7.0.180.0000.01716.28
7.0.170.0040.01216.42
7.0.160.0060.00916.59
7.0.150.0060.01116.52
7.0.140.0060.01116.45
7.0.130.0020.01416.70
7.0.120.0000.01716.60
7.0.110.0040.01316.45
7.0.100.0070.01016.16
7.0.90.0140.00416.35
7.0.80.0070.01316.46
7.0.70.0040.01516.44
7.0.60.0070.01016.27
7.0.50.0130.00416.30
7.0.40.0040.01116.50
7.0.30.0000.01616.63
7.0.20.0180.01416.43
7.0.10.0050.01016.50
7.0.00.0110.00616.43

preferences:
34.32 ms | 401 KiB | 5 Q