3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError($severity, $errstr, $errfile, $errline) { \error_clear_last(); if (!(\error_reporting() & $severity)) { return true; // Silenced } var_dump('ERROR!'); } set_error_handler('handleError'); register_shutdown_function(function () { var_dump('Shutdown'); // if the script dies while in a silent operator \error_reporting(E_ALL); // trigger gc to increase the chance to log "not enough memory" errors \gc_collect_cycles(); $error = \error_get_last(); if ($error !== null) { try { handleError($error['type'], $error['message'], $error['file'], $error['line']); } catch (\Throwable $e) { } } }); // actual script @\gzuncompress('blub');

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.1rc10.0000.00816.73
8.0.100.0030.00516.82
8.0.90.0040.00417.00
8.0.80.0070.00716.92
8.0.70.0000.00716.93
8.0.60.0080.00016.88
8.0.50.0080.00016.91
8.0.30.0240.00316.83
8.0.20.0220.01416.97
8.0.10.0180.01216.89
8.0.00.0180.00617.01
7.4.230.0000.00716.46
7.4.220.0030.00516.36
7.4.210.0000.01316.55
7.4.200.0000.00716.56
7.4.160.0150.01516.48
7.4.150.0190.00916.39
7.4.140.0200.00716.30
7.4.130.0240.00716.41
7.4.120.0160.01316.24
7.4.110.0210.00916.46
7.4.100.0170.01216.32
7.4.90.0200.01016.36
7.4.80.0200.01216.23
7.4.70.0160.01516.32
7.4.60.0150.01416.39
7.4.50.0210.00616.28
7.4.40.0130.01216.28
7.4.30.0220.00616.32
7.4.20.0140.01116.31
7.4.10.0230.00516.41
7.4.00.0190.00716.56
7.3.300.0030.00316.26
7.3.290.0120.00616.45
7.3.280.0180.01016.35
7.3.270.0170.00916.27
7.3.260.0180.01016.33
7.3.250.0200.01216.35
7.3.240.0190.00816.32
7.3.230.0180.00916.34
7.3.220.0250.00516.25
7.3.210.0150.01216.22
7.3.200.0220.00716.25
7.3.190.0190.01116.27
7.3.180.0230.00516.34
7.3.170.0260.00716.28
7.3.160.0190.01416.32
7.3.150.0220.01216.28
7.3.140.0200.01216.28
7.3.130.0250.00816.29
7.3.120.0250.00516.28
7.3.110.0210.00816.18
7.3.100.0220.00716.18
7.3.90.0230.00716.55
7.3.80.0230.00816.31
7.3.70.0180.00916.33
7.3.60.0210.00716.31
7.3.50.0240.00616.28
7.3.40.0160.01016.36
7.3.30.0170.01216.36
7.3.20.0190.00916.36
7.3.10.0200.00716.34
7.3.00.0170.01016.35

preferences:
13.88 ms | 454 KiB | 5 Q