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 { echo $crypto->compress(); } catch (\Exception $e) { echo "exception catched<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.70.0120.00318.43
8.3.60.0030.01718.55
8.3.50.0080.01021.92
8.3.40.0090.00618.80
8.3.30.0100.00320.29
8.3.20.0040.00420.13
8.3.10.0040.00422.05
8.3.00.0040.00422.40
8.2.190.0070.01316.75
8.2.180.0120.00616.75
8.2.170.0150.00022.96
8.2.160.0060.00620.37
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0110.00326.16
8.2.120.0000.00819.64
8.2.110.0070.00322.15
8.2.100.0040.00817.84
8.2.90.0040.00419.13
8.2.80.0050.00219.28
8.2.70.0030.00617.75
8.2.60.0050.00218.04
8.2.50.0060.00318.07
8.2.40.0070.00018.16
8.2.30.0080.00318.11
8.2.20.0040.00417.51
8.2.10.0050.00317.68
8.2.00.0070.00317.73
8.1.280.0120.00625.92
8.1.270.0070.00024.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.91
8.1.230.0070.00419.21
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.41
8.1.180.0050.00320.14
8.1.170.0000.00818.58
8.1.160.0050.00322.13
8.1.150.0040.00418.54
8.1.140.0040.00417.43
8.1.130.0040.00417.86
8.1.120.0030.00517.32
8.1.110.0040.00417.33
8.1.100.0000.00817.49
8.1.90.0070.00017.42
8.1.80.0030.00517.52
8.1.70.0070.00017.38
8.1.60.0040.00417.58
8.1.50.0040.00417.57
8.1.40.0080.00017.39
8.1.30.0040.00417.49
8.1.20.0000.00817.63
8.1.10.0080.00017.50
8.1.00.0000.01017.52
8.0.300.0070.00018.77
8.0.290.0000.00816.93
8.0.280.0030.00318.29
8.0.270.0000.00717.32
8.0.260.0030.00316.79
8.0.250.0040.00417.00
8.0.240.0060.00316.82
8.0.230.0040.00416.85
8.0.220.0000.00716.90
8.0.210.0040.00416.91
8.0.200.0040.00416.84
8.0.190.0070.00016.84
8.0.180.0000.00716.81
8.0.170.0080.00016.92
8.0.160.0040.00416.76
8.0.150.0000.00816.79
8.0.140.0040.00416.81
8.0.130.0000.00613.34
8.0.120.0050.00216.85
8.0.110.0070.00016.91
8.0.100.0070.00016.89
8.0.90.0040.00416.81
8.0.80.0100.00616.87
8.0.70.0000.00816.82
8.0.60.0040.00416.98
8.0.50.0050.00317.01
8.0.30.0160.00317.19
8.0.20.0110.00817.40
8.0.10.0070.00016.87
8.0.00.0110.00716.74
7.4.330.0030.00315.00
7.4.320.0060.00016.52
7.4.300.0030.00316.45
7.4.290.0000.00716.57
7.4.280.0050.00316.49
7.4.270.0030.00316.50
7.4.260.0100.00016.58
7.4.250.0040.00416.49
7.4.240.0050.00216.54
7.4.230.0000.00716.63
7.4.220.0130.01316.44
7.4.210.0100.00616.61
7.4.200.0000.00716.59
7.4.190.0000.00716.65
7.4.160.0080.01216.64
7.4.150.0120.00617.40
7.4.140.0070.01417.86
7.4.130.0110.00616.54
7.4.120.0060.01016.49
7.4.110.0070.01116.71
7.4.100.0140.00416.41
7.4.90.0150.00316.50
7.4.80.0100.01319.39
7.4.70.0140.00316.44
7.4.60.0090.00916.60
7.4.50.0000.00516.57
7.4.40.0100.00622.77
7.4.30.0060.01016.60
7.4.00.0040.01215.03
7.3.330.0000.00513.11
7.3.320.0030.00313.11
7.3.310.0070.00016.20
7.3.300.0040.00416.35
7.3.290.0170.00316.29
7.3.280.0070.00916.28
7.3.270.0030.01317.40
7.3.260.0090.00916.51
7.3.250.0090.01116.52
7.3.240.0060.01216.55
7.3.230.0100.00716.39
7.3.210.0070.01116.61
7.3.200.0070.01019.39
7.3.190.0060.01216.37
7.3.180.0130.00316.58
7.3.170.0090.00616.57
7.3.160.0160.00016.39
7.3.120.0000.00814.58
7.2.330.0060.01216.61
7.2.320.0130.01016.70
7.2.310.0090.00816.36
7.2.300.0120.00616.63
7.2.290.0040.01116.39
7.2.110.0200.01016.56
7.2.00.0000.01319.13
7.1.100.0200.00417.54
7.1.70.0080.00816.84
7.1.60.0110.01419.21
7.1.50.0120.00916.97
7.1.00.0030.03322.30
7.0.200.0130.00614.91
7.0.140.0030.09721.99
7.0.70.5000.04019.96
7.0.60.0030.04019.93
7.0.50.0070.06317.84
7.0.40.0070.06720.39
7.0.30.0170.05320.06
7.0.20.0300.08020.21
7.0.10.0300.03720.26
7.0.00.0130.07720.07
5.6.280.0000.07321.11
5.6.210.0070.07720.61
5.6.200.0170.07318.28
5.6.190.0100.08320.33
5.6.180.0030.04320.65
5.6.170.0330.04020.71
5.6.160.0100.08020.57
5.6.150.0070.06718.14
5.6.140.0100.06318.18
5.6.130.0030.08018.30
5.6.120.0270.02320.99
5.6.110.0130.04021.05
5.6.100.0030.09020.90
5.6.90.0030.07321.11
5.6.80.0070.05020.54
5.6.70.0230.04720.38
5.5.350.0070.06020.53
5.5.340.0070.08018.08
5.5.330.0100.07720.32
5.5.320.0070.08020.34
5.5.310.0230.08320.28
5.5.300.0030.04317.99
5.5.290.0100.08017.99
5.5.280.0130.04320.77
5.5.270.0170.06320.68
5.5.260.0030.05020.73
5.5.250.0100.07320.66
5.5.240.0070.03720.27
5.4.450.0470.06319.52
5.4.440.0800.05719.61
5.4.430.0230.04319.60
5.4.420.0830.05319.34
5.4.410.0700.05019.32
5.4.400.0630.05019.31
5.4.390.0970.07319.23
5.4.380.0170.05018.77
5.4.370.0270.03718.62
5.4.360.0070.06318.75
5.4.350.0060.04812.02
5.4.340.0030.04212.02
5.4.320.0040.04812.51
5.4.310.0030.04112.50
5.4.300.0040.04712.50
5.4.290.0060.04312.50
5.4.280.0080.04312.40
5.4.270.0040.05412.40
5.4.260.0070.04412.41
5.4.250.0070.05318.63
5.4.240.0070.05318.93
5.4.230.0170.05718.97
5.4.220.0070.05718.87
5.4.210.0100.07718.77
5.4.200.0130.04718.93
5.4.190.0030.05718.91
5.4.180.0100.07018.73
5.4.170.0000.06318.63
5.4.160.0100.06719.05
5.4.150.0030.07718.74
5.4.140.0100.05016.45
5.4.130.0170.04316.49
5.4.120.0130.05016.44
5.4.110.0070.05016.61
5.4.100.0000.06316.45
5.4.90.0070.04716.61
5.4.80.0030.05316.59
5.4.70.0130.04716.42
5.4.60.0070.05316.45
5.4.50.0070.05016.50
5.4.40.0070.06316.32
5.4.30.0070.05316.32
5.4.20.0070.06716.60
5.4.10.0030.06716.50
5.4.00.0070.05015.85
5.3.290.0060.04212.80
5.3.280.0070.06014.82
5.3.270.0130.05314.59
5.3.260.0130.07014.44
5.3.250.0070.06014.60
5.3.240.0100.04714.70
5.3.230.0100.05014.76
5.3.220.0070.05014.59
5.3.210.0030.06314.57
5.3.200.0100.05014.64
5.3.190.0130.04714.40
5.3.180.0100.04714.65
5.3.170.0070.05014.47
5.3.160.0100.06014.73
5.3.150.0000.06314.75
5.3.140.0130.04314.54
5.3.130.0130.04714.38
5.3.120.0200.06314.52
5.3.110.0100.07314.77
5.3.100.0030.07714.05
5.3.90.0130.04313.88
5.3.80.0100.05014.09
5.3.70.0070.05014.20
5.3.60.0030.06014.22
5.3.50.0000.05313.95
5.3.40.0030.06314.04
5.3.30.0100.05713.74
5.3.20.0030.05713.67
5.3.10.0100.07013.73
5.3.00.0000.05313.73
5.2.170.0030.04311.12
5.2.160.0130.03011.06
5.2.150.0000.05011.38
5.2.140.0070.06011.36
5.2.130.0070.05711.19
5.2.120.0130.05011.19
5.2.110.0130.04011.19
5.2.100.0000.04711.17
5.2.90.0070.03711.19
5.2.80.0100.04311.05
5.2.70.0030.05311.18
5.2.60.0030.06311.04
5.2.50.0100.03711.10
5.2.40.0000.04311.09
5.2.30.0070.04011.06
5.2.20.0100.03711.04
5.2.10.0030.05710.82
5.2.00.0100.03710.81
5.1.60.0130.03310.05
5.1.50.0030.04010.05
5.1.40.0070.04310.18
5.1.30.0070.03310.50
5.1.20.0030.03710.34
5.1.10.0100.04310.27
5.1.00.0070.03710.05
5.0.50.0070.0308.55
5.0.40.0030.0378.47
5.0.30.0070.0578.06
5.0.20.0100.0238.39
5.0.10.0030.0338.37
5.0.00.0030.0538.20
4.4.90.0030.0307.43
4.4.80.0070.0237.43
4.4.70.0100.0237.43
4.4.60.0070.0277.43
4.4.50.0030.0207.43
4.4.40.0070.0407.43
4.4.30.0000.0307.43
4.4.20.0030.0207.43
4.4.10.0000.0277.35
4.4.00.0000.0377.35
4.3.110.0030.0207.35
4.3.100.0030.0307.35
4.3.90.0070.0206.98
4.3.80.0000.0476.44
4.3.70.0000.0206.38
4.3.60.0030.0306.30
4.3.50.0070.0176.30
4.3.40.0130.0306.29
4.3.30.0030.0206.29
4.3.20.0030.0276.29
4.3.10.0000.0306.29
4.3.00.0170.0137.27

preferences:
44.81 ms | 401 KiB | 5 Q