3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $reflection = new ReflectionClass(DateTimeImmutable::class); $date = $reflection->newInstanceWithoutConstructor(); $date->format('Y-m-d H:i:s'); } catch (Throwable $exception) { echo $exception->getMessage(), "\n", $exception::class, "\n", implode("\n", class_parents($exception)); }

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)
8.5.20.0140.00919.50
8.5.10.0110.00816.63
8.5.00.0130.00921.76
8.4.170.0150.00724.00
8.4.160.0140.00823.71
8.4.150.0020.00014.05
8.4.140.0120.01017.59
8.4.130.0140.00617.91
8.4.120.0040.00420.53
8.4.110.0130.00718.61
8.4.100.0150.00717.75
8.4.90.0120.00820.54
8.4.80.0060.01118.88
8.4.70.0120.00618.99
8.4.60.0140.01120.35
8.4.50.0130.00918.75
8.4.40.0240.00517.47
8.4.30.0180.00417.51
8.4.20.0180.00417.47
8.4.10.0180.00417.50
8.3.300.0100.01020.74
8.3.290.0120.00820.75
8.3.280.0120.00818.39
8.3.270.0080.01216.53
8.3.260.0100.01016.36
8.3.250.0050.00518.82
8.3.240.0090.00616.14
8.3.230.0100.00916.63
8.3.220.0100.00520.70
8.3.210.0120.00716.57
8.3.200.0050.00416.73
8.3.190.0100.00416.46
8.3.180.0160.00316.39
8.3.170.0160.00316.49
8.3.160.0180.00316.41
8.3.150.0170.00416.36
8.3.140.0160.00416.41
8.3.130.0130.00516.34
8.3.120.0150.00416.56
8.3.110.0130.00516.34
8.3.100.0180.00416.34
8.3.90.0140.00616.47
8.3.80.0170.00416.35
8.3.70.0170.00316.39
8.3.60.0160.00416.30
8.3.50.0160.00416.42
8.3.40.0140.00417.35
8.3.30.0140.00417.36
8.3.20.0150.00317.19
8.3.10.0120.00517.33
8.3.00.0080.00617.36
8.2.300.0120.00818.23
8.2.290.0070.00320.30
8.2.280.0100.00516.55
8.2.270.0130.00416.41
8.2.260.0130.00416.57
8.2.250.0140.00416.75
8.2.240.0140.00316.46
8.2.230.0120.00516.55
8.2.220.0130.00416.65
8.2.210.0130.00416.26
8.2.200.0120.00416.40
8.2.190.0140.00316.58
8.2.180.0140.00316.36
8.2.170.0130.00417.73
8.2.160.0110.00617.57
8.2.150.0140.00317.51
8.2.140.0150.00417.28
8.2.130.0150.00417.38
8.2.120.0130.00617.28
8.2.110.0150.00517.33
8.2.100.0130.00417.48
8.2.90.0140.00517.72
8.2.80.0120.00717.53
8.2.70.0150.00517.48
8.2.60.0090.00717.44
8.2.50.0070.00417.45
8.2.40.0090.00317.52
8.2.30.0070.00417.51
8.2.20.0070.00417.42
8.2.10.0060.00417.40
8.2.00.0070.00517.44
8.1.340.0140.00717.73
8.1.320.0070.00516.25

preferences:
29.54 ms | 403 KiB | 5 Q