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.3.60.0100.01018.44
8.3.50.0070.00718.15
8.3.40.0140.00718.78
8.3.30.0090.00618.67
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0100.01025.92
8.2.170.0140.00718.82
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00326.16
8.2.110.0080.00020.52
8.2.100.0040.00817.91
8.2.90.0030.00517.75
8.2.80.0030.00518.61
8.2.70.0040.00417.25
8.2.60.0060.00317.79
8.2.50.0040.00418.05
8.2.40.0080.00018.28
8.2.30.0000.00818.13
8.2.20.0000.00818.07
8.2.10.0050.00219.17
8.2.00.0080.00019.31
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00018.87
8.1.230.0040.00817.83
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.36
8.1.180.0050.00318.10
8.1.170.0050.00318.61
8.1.160.0000.01019.04
8.1.150.0030.00518.98
8.1.140.0000.00720.68
8.1.130.0030.00320.30
8.1.120.0040.00417.44
8.1.110.0070.00017.49
8.1.100.0000.00817.38
8.1.90.0070.00017.45
8.1.80.0040.00417.36
8.1.70.0040.00417.46
8.1.60.0050.00317.55
8.1.50.0040.00417.57
8.1.40.0000.00817.55
8.1.30.0050.00217.61
8.1.20.0000.00817.70
8.1.10.0000.00817.51
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.58
8.0.270.0000.00718.15
8.0.260.0040.00418.59
8.0.250.0030.00317.08
8.0.240.0070.00017.02
8.0.230.0000.00717.03
8.0.220.0000.00716.98
8.0.210.0040.00417.00
8.0.200.0070.00016.93
8.0.190.0030.00517.08
8.0.180.0030.00516.89
8.0.170.0030.00516.91
8.0.160.0030.00517.01
8.0.150.0000.00816.93
8.0.140.0000.00816.93
8.0.130.0000.00613.43
8.0.120.0000.00816.92
8.0.110.0070.00017.00
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.330.0000.00415.55
7.4.320.0060.00016.59
7.4.300.0030.00316.54
7.4.290.0030.00316.56
7.4.280.0040.00416.70
7.4.270.0000.00816.45
7.4.260.0030.00313.31
7.4.250.0000.00716.56
7.4.240.0050.00216.58
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.330.0020.00516.50
7.3.320.0030.00313.27
7.3.310.0000.00616.48
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:
60.6 ms | 400 KiB | 5 Q