3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DatabaseException extends RuntimeException { public function __construct(string $message = '', protected int|string $databaseCode = 0, ?Throwable $previous = null) { parent::__construct($message, is_int($databaseCode) ? $databaseCode : 0, $previous); } }

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.30.0340.00516.99
8.5.20.0360.00716.55
8.5.10.0350.00716.55
8.5.00.0330.00816.55
8.4.180.0330.00919.53
8.4.170.0360.00619.36
8.4.160.0300.01219.31
8.4.150.0360.00919.38
8.4.140.0340.01017.47
8.4.130.0360.00817.39
8.4.120.0220.00517.49
8.4.110.0260.00717.41
8.4.100.0360.01217.46
8.4.90.0400.01217.38
8.4.80.0410.00917.58
8.4.70.0380.01317.48
8.4.60.0390.00817.71
8.4.50.0350.01117.82
8.4.40.0480.00417.27
8.4.30.0370.01217.10
8.4.20.0420.00717.35
8.4.10.0370.01017.36
8.3.300.0320.01217.88
8.3.290.0390.00818.08
8.3.280.0350.00718.05
8.3.270.0350.00816.55
8.3.260.0360.00916.62
8.3.250.0360.00716.62
8.3.240.0330.01016.55
8.3.230.0330.01116.73
8.3.220.0350.00916.55
8.3.210.0450.01116.55
8.3.200.0350.01216.55
8.3.190.0320.00416.55
8.3.180.0380.00816.55
8.3.170.0410.01116.55
8.3.160.0380.00916.55
8.3.150.0380.00916.55
8.3.140.0400.00916.55
8.3.130.0370.00716.55
8.3.120.0370.00616.55
8.3.110.0340.00816.55
8.3.100.0360.01116.55
8.3.90.0410.00916.55
8.3.80.0410.00816.55
8.3.70.0410.00716.55
8.3.60.0450.00516.55
8.3.50.0400.00716.55
8.3.40.0390.00717.82
8.3.30.0310.00517.70
8.3.20.0300.00617.76
8.3.10.0270.00917.77
8.3.00.0160.00819.68

preferences:
30.47 ms | 403 KiB | 5 Q