3v4l.org

run code in 300+ PHP versions simultaneously
<?php function error($code, $message, $file = null, $line = 0) { echo "convert error to exception<br>\n"; @ throw new \ErrorException($message, $code, null, $file, $line); } function shutdown() { echo "shutdown function called<br>\n"; } set_error_handler('error'); register_shutdown_function('shutdown'); try { try { echo $crypto -> compress(); } catch (\Exception $e) { echo "exception catched<br>\n"; } } catch (\Exception $e) { echo "exception caught<br>\n"; } echo "after fatal error<br>\n";

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.0110.00418.43
8.3.50.0110.01121.14
8.3.40.0110.00418.62
8.3.30.0100.00319.09
8.3.20.0000.00720.29
8.3.10.0040.00422.10
8.3.00.0040.00422.64
8.2.180.0100.00616.35
8.2.170.0120.00322.96
8.2.160.0030.01019.25
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0150.00019.16
8.2.110.0060.00322.26
8.2.100.0050.00518.98
8.1.280.0100.01025.92
8.1.270.0080.00021.89
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00018.49
8.1.230.0060.00318.34
5.4.260.0130.06319.01
5.4.250.0170.06718.84
5.4.240.0100.06318.84
5.4.230.0170.04718.94
5.4.220.0170.06018.81
5.4.210.0130.07018.94
5.4.200.0070.08318.97
5.4.190.0130.07318.81
5.4.180.0100.07018.72
5.4.170.0130.06718.62
5.4.160.0200.05318.75
5.4.150.0030.06018.99
5.4.140.0130.07016.29
5.4.130.0100.06316.22
5.4.120.0100.05316.25
5.4.110.0170.06316.45
5.4.100.0130.06016.37
5.4.90.0100.07016.32
5.4.80.0070.05716.40
5.4.70.0200.06016.58
5.4.60.0030.07316.24
5.4.50.0070.06316.35
5.4.40.0170.05716.52
5.4.30.0070.05316.41
5.4.20.0030.05316.50
5.4.10.0100.05716.43
5.4.00.0070.05015.80
5.3.280.0170.04714.67
5.3.270.0000.09014.57
5.3.260.0170.05714.69
5.3.250.0070.05714.82
5.3.240.0070.05314.60
5.3.230.0100.05714.68
5.3.220.0100.07314.64
5.3.210.0000.08314.74
5.3.200.0030.05714.66
5.3.190.0100.05314.58
5.3.180.0070.07014.64
5.3.170.0100.06714.56
5.3.160.0070.06714.55
5.3.150.0270.05314.70
5.3.140.0070.07714.62
5.3.130.0070.07014.77
5.3.120.0030.05714.61
5.3.110.0130.05314.63
5.3.100.0200.04314.06
5.3.90.0100.06713.92
5.3.80.0130.05014.08
5.3.70.0100.06714.13
5.3.60.0030.06313.98
5.3.50.0030.05714.04
5.3.40.0070.06013.85
5.3.30.0070.07013.89
5.3.20.0100.05013.91
5.3.10.0200.03713.67
5.3.00.0130.06713.71
5.2.170.0130.03311.11
5.2.160.0070.04011.36
5.2.150.0030.06311.21
5.2.140.0130.04011.29
5.2.130.0070.04011.08
5.2.120.0030.05311.09
5.2.110.0030.05711.08
5.2.100.0030.05711.00
5.2.90.0000.04711.19
5.2.80.0100.05711.05
5.2.70.0030.05011.24
5.2.60.0030.04310.95
5.2.50.0070.04310.93
5.2.40.0130.04010.95
5.2.30.0030.04711.19
5.2.20.0070.04011.04
5.2.10.0030.04010.69
5.2.00.0030.06010.80
5.1.60.0000.0539.95
5.1.50.0130.0409.97
5.1.40.0030.0479.89
5.1.30.0130.05010.55
5.1.20.0130.04010.43
5.1.10.0070.03310.11
5.1.00.0100.04310.15
5.0.50.0070.0338.60
5.0.40.0100.0278.50
5.0.30.0000.0478.27
5.0.20.0070.0378.12
5.0.10.0030.0308.13
5.0.00.0070.0438.25
4.4.90.0130.0177.35
4.4.80.0030.0207.35
4.4.70.0030.0277.35
4.4.60.0000.0237.35
4.4.50.0070.0207.35
4.4.40.0000.0507.35
4.4.30.0030.0277.35
4.4.20.0000.0337.35
4.4.10.0030.0277.35
4.4.00.0000.0377.35
4.3.110.0030.0207.35
4.3.100.0000.0277.35
4.3.90.0030.0277.35
4.3.80.0000.0407.35
4.3.70.0000.0237.35
4.3.60.0070.0207.35
4.3.50.0030.0207.35
4.3.40.0000.0377.35
4.3.30.0070.0207.35
4.3.20.0030.0207.35
4.3.10.0030.0207.35
4.3.00.0070.0236.97

preferences:
36.07 ms | 401 KiB | 5 Q