3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tomorrow = new DateTimeImmutable('tomorrow'); // Will be midnight in the am $dayAfter = $tomorrow->add(new DateInterval('P1D')); // Will also be midnight $timestamp = time(); $isTomorrow = ($timestamp > $tomorrow->getTimestamp() && $dayAfter->getTimestamp() > $timestamp); var_dump($isTomorrow); $timestamp = $timestamp + (60 * 60 * 24); $isTomorrow = ($timestamp > $tomorrow->getTimestamp() && $dayAfter->getTimestamp() > $timestamp); var_dump($isTomorrow); $timestamp = $timestamp + (60 * 60 * 24); $isTomorrow = ($timestamp > $tomorrow->getTimestamp() && $dayAfter->getTimestamp() > $timestamp); var_dump($isTomorrow);

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.3.30.0090.00814.63
7.3.20.2470.00714.98
7.3.10.2710.00314.86
7.3.00.2520.00314.91
7.2.160.0050.00715.08
7.2.150.3540.01315.22
7.2.140.2310.00515.23
7.2.130.2410.00515.18
7.2.120.2480.00715.19
7.2.110.2620.00315.04
7.2.100.2560.00715.13
7.2.90.1730.00515.03
7.2.80.2350.00815.23
7.2.70.2500.01215.12
7.2.60.2500.01015.22
7.2.50.2620.00315.12
7.2.40.2140.00915.14
7.2.30.2290.00715.22
7.2.20.2960.00815.27
7.2.10.2630.00515.08
7.2.00.2490.00515.08
7.1.270.2970.00714.11
7.1.260.2570.00514.26
7.1.250.2160.00814.02

preferences:
36.61 ms | 400 KiB | 5 Q