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.60.0110.00718.30
8.3.50.0080.00821.14
8.3.40.0150.00018.76
8.3.30.0100.00319.04
8.3.20.0070.00020.20
8.3.10.0040.00421.95
8.3.00.0080.00022.46
8.2.180.0070.00725.92
8.2.170.0070.00722.96
8.2.160.0090.00519.16
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0040.00419.36
8.2.110.0090.00022.23
8.2.100.0070.00719.45
8.2.90.0000.00719.23
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0090.00017.91
8.2.50.0050.00318.07
8.2.40.0060.00319.94
8.2.30.0040.00417.92
8.2.20.0050.00217.63
8.2.10.0000.00817.63
8.2.00.0070.00017.63
8.1.280.0090.00625.92
8.1.270.0050.00323.90
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0110.00019.00
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0070.00317.36
8.1.190.0000.00817.30
8.1.180.0030.00518.70
8.1.170.0080.00018.71
8.1.160.0080.00022.13
8.1.150.0000.00718.53
8.1.140.0000.00817.38
8.1.130.0070.00417.76
8.1.120.0040.00417.35
8.1.110.0000.00717.44
8.1.100.0070.00017.48
8.1.90.0040.00417.52
8.1.80.0070.00017.41
8.1.70.0030.00317.44
8.1.60.0060.00317.61
8.1.50.0000.00817.40
8.1.40.0040.00417.52
8.1.30.0000.00717.45
8.1.20.0050.00317.64
8.1.10.0000.00717.58
8.1.00.0070.00017.43
8.0.300.0030.00618.77
8.0.290.0000.00717.05
8.0.280.0080.00018.44
8.0.270.0030.00317.25
8.0.260.0000.00616.79
8.0.250.0000.00716.86
8.0.240.0000.00716.91
8.0.230.0080.00016.92
8.0.220.0020.00516.75
8.0.210.0000.00716.95
8.0.200.0070.00016.81
8.0.190.0030.00316.93
8.0.180.0070.00016.91
8.0.170.0060.00316.91
8.0.160.0050.00516.89
8.0.150.0000.00816.72
8.0.140.0070.00016.89
8.0.130.0050.00013.33
8.0.120.0000.00816.79
8.0.110.0060.00316.89
8.0.100.0030.00316.98
8.0.90.0040.00416.77
8.0.80.0130.00316.95
8.0.70.0070.00016.97
8.0.60.0070.00016.93
8.0.50.0000.00716.90
8.0.30.0090.00917.21
8.0.20.0100.00917.40
8.0.10.0050.00316.95
8.0.00.0070.01017.03
7.4.330.0050.00015.05
7.4.320.0030.00316.63
7.4.300.0060.00016.55
7.4.290.0030.00316.65
7.4.280.0110.00416.48
7.4.270.0030.00316.49
7.4.260.0070.00016.57
7.4.250.0040.00416.46
7.4.240.0000.00816.50
7.4.230.0070.00016.57
7.4.220.0060.01616.57
7.4.210.0070.00816.58
7.4.200.0000.00716.48
7.4.190.0000.00716.48
7.4.160.0170.00416.45
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0070.01416.48
7.4.120.0100.00716.53
7.4.110.0060.01216.48
7.4.100.0140.00416.59
7.4.90.0090.00916.62
7.4.80.0040.01219.39
7.4.70.0130.01016.47
7.4.60.0050.01816.65
7.4.50.0000.00816.66
7.4.40.0090.00622.77
7.4.30.0030.01316.54
7.4.00.0090.00614.78
7.3.330.0050.00013.17
7.3.320.0060.00013.29
7.3.310.0000.00716.27
7.3.300.0030.00316.25
7.3.290.0070.00716.31
7.3.280.0040.01216.33
7.3.270.0170.00017.40
7.3.260.0100.00716.47
7.3.250.0130.00816.44
7.3.240.0060.01416.46
7.3.230.0040.01416.39
7.3.210.0180.00016.52
7.3.200.0110.01119.39
7.3.190.0110.00616.30
7.3.180.0030.01316.52
7.3.170.0090.00616.27
7.3.160.0060.00916.43
7.3.120.0030.01314.80
7.2.330.0090.00916.44
7.2.320.0150.00316.79
7.2.310.0070.01016.47
7.2.300.0060.01216.38
7.2.290.0090.00616.57
7.2.00.0000.01319.49
7.1.100.0070.00717.75
7.1.70.0050.00517.11
7.1.60.0030.02119.82
7.1.50.0150.00917.01
7.1.00.0070.07322.39
7.0.200.0050.00216.68
7.0.140.0000.07722.15
7.0.60.0130.07719.96
7.0.50.0100.04717.89
7.0.40.0100.04320.24
7.0.30.0370.08320.21
7.0.20.0370.07720.20
7.0.10.0130.08020.22
7.0.00.0070.08020.33
5.6.280.0030.06721.09
5.6.210.0100.03720.65
5.6.200.0130.08018.29
5.6.190.0030.04320.41
5.6.180.0370.07320.52
5.6.170.0270.07720.47
5.6.160.0030.07320.39
5.6.150.0000.09018.22
5.6.140.0070.08318.18
5.6.130.0070.03718.28
5.6.120.0100.06321.04
5.6.110.0070.08021.14
5.6.100.0030.09320.99
5.6.90.0100.07321.04
5.6.80.0030.08320.45
5.5.350.4070.03720.39
5.5.340.0000.04718.07
5.5.330.0100.08020.32
5.5.320.0000.06720.31
5.5.310.0330.05020.24
5.5.300.0030.07317.95
5.5.290.0030.08317.96
5.5.280.0070.09020.88
5.5.270.0030.09020.88
5.5.260.0000.08020.87
5.5.250.0070.08720.71
5.5.240.0230.05720.01
5.4.450.3330.04019.42
5.4.440.3400.03719.18
5.4.430.4430.04319.54
5.4.420.3400.04019.27
5.4.410.3670.04319.07
5.4.400.4370.03319.16
5.4.390.3470.03719.22
5.4.380.3570.03719.09
5.4.370.3700.03719.14
5.4.360.3470.04319.09
5.4.350.3600.03319.31
5.4.340.3430.03319.23
5.4.320.3400.04019.16
5.4.310.3400.04019.14
5.4.300.3200.03719.06
5.4.290.3430.03718.87
5.4.280.3370.03719.09
5.4.270.3630.03319.32
5.4.260.3430.04019.31
5.4.250.3900.04019.20
5.4.240.3870.03719.24
5.4.230.4130.03719.05
5.4.220.3500.04319.08
5.4.210.3600.03319.08
5.4.200.4100.04018.94
5.4.190.4400.04019.30
5.4.180.3530.03719.30
5.4.170.4200.03319.10
5.4.160.4570.03719.30
5.4.150.4170.04319.14
5.4.140.4230.03716.43
5.4.130.4230.03716.38
5.4.120.3470.02316.50
5.4.110.4000.03716.46
5.4.100.3600.03316.50
5.4.90.4170.04016.61
5.4.80.3470.03016.24
5.4.70.4270.03316.59
5.4.60.3770.04016.25
5.4.50.3670.03316.43
5.4.40.3600.03316.52
5.4.30.4030.03316.51
5.4.20.3900.04016.27
5.4.10.3970.03716.55
5.4.00.4330.03715.80
5.3.290.3770.03714.72
5.3.280.3870.02714.55
5.3.270.4130.03014.54
5.3.260.4330.03314.58
5.3.250.4370.03714.53
5.3.240.4370.04014.63
5.3.230.3930.03014.76
5.3.220.3630.02714.48
5.3.210.3800.04314.50
5.3.200.3230.04014.68
5.3.190.3670.03014.71
5.3.180.3670.03014.73
5.3.170.3630.04014.53
5.3.160.4330.03314.61
5.3.150.4770.03314.79
5.3.140.3800.03314.63
5.3.130.4130.03714.63
5.3.120.4200.03014.60
5.3.110.4030.03714.65
5.3.100.4430.03714.16
5.3.90.4130.02714.11
5.3.80.3730.04014.03
5.3.70.3430.03714.10
5.3.60.3400.03313.92
5.3.50.3330.03714.00
5.3.40.3370.03714.07
5.3.30.3400.03013.96
5.3.20.3570.03313.81
5.3.10.3470.03313.68
5.3.00.3100.03013.72
5.2.170.2900.03311.11
5.2.160.3230.03011.15
5.2.150.3070.03011.07
5.2.140.3170.03311.20
5.2.130.3170.02711.03
5.2.120.3070.02311.27
5.2.110.3330.03011.33
5.2.100.3000.03011.18
5.2.90.2830.02311.03
5.2.80.2870.02311.02
5.2.70.2930.03011.07
5.2.60.3400.02711.01
5.2.50.3230.03010.93
5.2.40.3070.03010.91
5.2.30.3200.03011.19
5.2.20.2730.03011.12
5.2.10.2700.02711.08
5.2.00.3000.03010.72
5.1.60.2870.02010.01
5.1.50.2770.0209.91
5.1.40.2730.0279.96
5.1.30.2700.02310.50
5.1.20.2670.02710.57
5.1.10.2770.02010.01
5.1.00.2930.0279.97
5.0.50.1670.0208.53
5.0.40.1330.0208.40
5.0.30.1270.0308.12
5.0.20.1530.0208.29
5.0.10.1500.0208.06
5.0.00.1370.0238.14
4.4.90.1570.0175.79
4.4.80.1470.0175.83
4.4.70.1200.0175.88
4.4.60.1230.0175.88
4.4.50.1430.0175.81
4.4.40.1670.0235.84
4.4.30.1430.0175.87
4.4.20.1370.0175.87
4.4.10.1300.0135.88
4.4.00.1400.0235.82
4.3.110.1530.0175.77
4.3.100.1330.0175.86
4.3.90.1370.0105.79
4.3.80.1670.0275.81
4.3.70.1600.0175.81
4.3.60.1330.0135.82
4.3.50.1300.0175.82
4.3.40.1430.0235.82
4.3.30.0830.0205.82
4.3.20.0600.0175.82
4.3.10.0570.0135.82
4.3.00.0700.0175.85

preferences:
42.05 ms | 401 KiB | 5 Q