3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set ("UTC"); $date = DateTime::createFromFormat('U.u', microtime(true)); print_r($date); $current_time = $time->format('Y-m-d H:i:s'); echo $current_time; ?>

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.120.0130.00416.81
7.2.110.0090.00616.83
7.2.100.0110.00316.58
7.2.90.0090.00916.79
7.2.80.0140.00316.80
7.2.70.0150.00416.74
7.2.60.0090.00617.12
7.2.50.0080.00617.11
7.2.40.0100.01017.04
7.2.30.0090.00616.88
7.2.20.0090.00616.95
7.2.10.0130.00617.09
7.2.00.0030.01018.24
7.1.240.0120.00815.97
7.1.230.0150.00416.01
7.1.220.0180.00016.06
7.1.210.0080.00715.96
7.1.200.0090.00915.95
7.1.190.0040.01215.95
7.1.180.0130.01016.03
7.1.170.0110.00415.93
7.1.160.0150.00515.62
7.1.150.0130.00515.82
7.1.140.0130.00415.62
7.1.130.0110.00415.85
7.1.120.0110.00415.74
7.1.110.0110.00416.12
7.1.100.0110.00617.13
7.1.90.0030.01316.11
7.1.80.0000.00815.77
7.1.70.0780.01215.56
7.1.60.0560.01324.79
7.1.50.0590.00924.72
7.1.40.0680.01124.45
7.1.30.1300.01224.30
7.1.20.0810.01324.61
7.1.10.0690.00915.60
7.1.00.0970.01215.61
7.0.320.0140.00415.47
7.0.310.0090.00915.72
7.0.300.0120.00815.31
7.0.290.0130.00315.46
7.0.280.0030.01315.45
7.0.270.0130.00315.33
7.0.260.0090.00615.52
7.0.250.0070.00715.62
7.0.240.0060.01215.46
7.0.230.0090.00315.58
7.0.220.0060.00915.77
7.0.210.0120.00315.78
7.0.200.0800.00815.62
7.0.190.1000.00615.31
7.0.180.0600.01215.13
7.0.170.1380.01315.30
7.0.160.1040.00915.13
7.0.150.0850.01215.04
7.0.140.0880.00515.10
7.0.130.0770.00815.24
7.0.120.1300.00815.13
7.0.110.0870.01115.17
7.0.100.0910.00815.12
7.0.90.0700.00815.20
7.0.80.0750.01315.12
7.0.70.0860.00514.97
7.0.60.0730.01115.17
7.0.50.0920.01015.02
7.0.40.0920.01014.46
7.0.30.0650.01114.19
7.0.20.0630.00914.13
7.0.10.0700.01214.24
7.0.00.0550.01214.15
5.6.380.0080.00814.64

preferences:
27.88 ms | 400 KiB | 5 Q