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() { print_r(error_get_last()); } 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.0120.00918.40
8.3.50.0220.01122.01
8.3.40.0110.00419.02
8.3.30.0070.00719.09
8.3.20.0080.00020.00
8.3.10.0080.00022.11
8.3.00.0080.00022.53
8.2.180.0100.01016.75
8.2.170.0060.00922.96
8.2.160.0060.01221.12
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00326.16
8.2.120.0000.00819.36
8.2.110.0110.01122.20
8.2.100.0080.00619.51
8.2.90.0030.00619.05
8.2.80.0080.00019.66
8.2.70.0040.00417.63
8.2.60.0000.00817.92
8.2.50.0040.00418.07
8.2.40.0000.00717.91
8.2.30.0040.00417.87
8.2.20.0000.00817.52
8.2.10.0050.00319.63
8.2.00.0060.00317.74
8.1.280.0120.00325.92
8.1.270.0000.00722.08
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.90
8.1.230.0040.00719.00
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.51
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0040.00421.99
8.1.150.0000.00718.55
8.1.140.0000.00717.36
8.1.130.0030.00317.82
8.1.120.0040.00417.44
8.1.110.0040.00417.34
8.1.100.0030.00317.34
8.1.90.0040.00417.46
8.1.80.0000.00717.41
8.1.70.0070.00017.38
8.1.60.0050.00317.55
8.1.50.0050.00317.40
8.1.40.0050.00317.38
8.1.30.0070.00417.56
8.1.20.0040.00417.64
8.1.10.0080.00017.42
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0040.00417.03
8.0.280.0030.00318.39
8.0.270.0030.00317.23
8.0.260.0030.00316.77
8.0.250.0070.00016.83
8.0.240.0040.00416.93
8.0.230.0000.00716.95
8.0.220.0080.00016.77
8.0.210.0040.00416.77
8.0.200.0040.00416.93
8.0.190.0040.00416.84
8.0.180.0000.00716.87
8.0.170.0000.00716.88
8.0.160.0050.00216.86
8.0.150.0030.00316.77
8.0.140.0030.00616.93
8.0.130.0030.00313.34
8.0.120.0080.00016.91
8.0.110.0040.00416.98
8.0.100.0000.00716.77
8.0.90.0000.00816.81
8.0.80.0110.00417.00
8.0.70.0050.00216.98
8.0.60.0000.00716.82
8.0.50.0000.00816.77
8.0.30.0140.00516.89
8.0.20.0080.01017.40
8.0.10.0040.00417.10
8.0.00.0050.01516.86
7.4.330.0030.00315.00
7.4.320.0040.00416.41
7.4.300.0000.00616.45
7.4.290.0090.00016.41
7.4.280.0080.00016.63
7.4.270.0030.00316.64
7.4.260.0070.00016.52
7.4.250.0000.00716.55
7.4.240.0020.00616.54
7.4.230.0000.00716.25
7.4.220.0070.01116.61
7.4.210.0050.01016.53
7.4.200.0000.00716.68
7.4.190.0030.00316.75
7.4.160.0080.00816.63
7.4.150.0030.01517.40
7.4.140.0110.00817.86
7.4.130.0110.00916.67
7.4.120.0130.00516.53
7.4.110.0090.01316.43
7.4.100.0120.00616.50
7.4.90.0060.01016.39
7.4.80.0070.01119.39
7.4.70.0070.01016.52
7.4.60.0120.00316.46
7.4.50.0050.00016.28
7.4.40.0060.00922.77
7.4.30.0090.00616.41
7.4.00.0030.01314.77
7.3.330.0030.00313.27
7.3.320.0000.00513.17
7.3.310.0030.00316.20
7.3.300.0000.00716.23
7.3.290.0060.01316.32
7.3.280.0110.00716.24
7.3.270.0130.00317.40
7.3.260.0120.00916.47
7.3.250.0110.00616.42
7.3.240.0100.00716.47
7.3.230.0100.00616.39
7.3.210.0130.00316.38
7.3.200.0060.01319.39
7.3.190.0090.01216.41
7.3.180.0090.01216.48
7.3.170.0140.00316.42
7.3.160.0080.00816.38
7.3.120.0060.01014.75
7.2.330.0070.01016.60
7.2.320.0060.01316.59
7.2.310.0060.01116.74
7.2.300.0080.00816.45
7.2.290.0110.00616.71
7.2.00.0080.00619.10
7.1.100.0750.00716.21
7.1.70.0060.01017.12
7.1.60.0150.01119.82
7.1.50.0070.01416.63
7.1.00.0070.07322.43
7.0.200.0000.00716.68
7.0.140.0100.06722.09
7.0.60.0070.05320.02
7.0.50.0130.07717.86
7.0.40.0000.05720.02
7.0.30.0400.07020.10
7.0.20.0200.04320.25
7.0.10.0030.05720.21
7.0.00.0070.08320.06
5.6.280.0030.07320.93
5.6.210.0070.03720.70
5.6.200.0130.07018.24
5.6.190.0030.06020.60
5.6.180.0500.07720.57
5.6.170.0270.05720.45
5.6.160.0030.04320.53
5.6.150.0030.05018.19
5.6.140.0070.07318.14
5.6.130.0070.08718.23
5.6.120.0170.07721.14
5.6.110.0030.04721.04
5.6.100.0030.05721.01
5.6.90.0100.08021.01
5.6.80.0130.07720.38
5.5.350.4070.04020.34
5.5.340.0100.07718.10
5.5.330.0000.04320.27
5.5.320.0270.07720.34
5.5.310.0200.04720.36
5.5.300.0130.07317.95
5.5.290.0070.04718.08
5.5.280.0100.07720.89
5.5.270.0070.04020.98
5.5.260.0000.08020.65
5.5.250.0030.08320.78
5.5.240.0000.07020.07
5.4.450.0870.04319.20
5.4.440.1130.04319.48
5.4.430.0330.03319.38
5.4.420.0570.04719.47
5.4.410.1130.04719.06
5.4.400.0230.04319.23
5.4.390.0370.04018.87
5.4.380.0370.05318.63
5.4.370.0400.04718.50
5.4.360.0270.05318.74
5.4.350.0200.06318.63
5.4.340.0300.05718.60
5.4.320.0060.04012.51
5.4.310.0080.03812.51
5.4.300.0060.04212.51
5.4.290.0100.03812.50
5.4.280.0100.03412.40
5.4.270.0020.04012.38
5.4.260.0060.04212.38
5.4.250.0080.03712.38
5.4.240.0070.04312.38
5.4.230.0080.04512.37
5.4.220.0080.04012.38
5.4.210.0050.04112.37
5.4.200.0100.03412.37
5.4.190.0050.04412.37
5.4.180.0050.03712.36
5.4.170.0060.03512.38
5.4.160.0080.03412.37
5.4.150.0070.03812.38
5.4.140.0060.03712.05
5.4.130.0060.03612.04
5.4.120.0050.04212.00
5.4.110.0070.03812.00
5.4.100.0060.03712.00
5.4.90.0070.03712.00
5.4.80.0050.04012.00
5.4.70.0110.03211.99
5.4.60.0090.03611.99
5.4.50.0090.04311.98
5.4.40.0070.04611.98
5.4.30.0080.04011.97
5.4.20.0070.04911.97
5.4.10.0040.03711.98
5.4.00.0040.03911.46
5.3.290.0090.04812.80
5.3.280.0070.03912.71
5.3.270.0080.03912.72
5.3.260.0100.03712.72
5.3.250.0050.03912.72
5.3.240.0060.04012.72
5.3.230.0080.04412.71
5.3.220.0090.05012.68
5.3.210.0060.04112.68
5.3.200.0080.03512.68
5.3.190.0060.03912.67
5.3.180.0070.03912.67
5.3.170.0090.04112.67
5.3.160.0090.03512.67
5.3.150.0070.03712.67
5.3.140.0080.04612.66
5.3.130.0120.04412.66
5.3.120.0140.04112.66
5.3.110.0100.04312.66
5.3.100.0060.05012.12
5.3.90.0080.05112.09
5.3.80.0080.04712.07
5.3.70.0080.04812.08
5.3.60.0070.04312.07
5.3.50.0070.03912.00
5.3.40.0070.03812.00
5.3.30.0070.03611.97
5.3.20.0090.04211.75
5.3.10.0070.04611.71
5.3.00.0090.04511.70
5.2.170.0070.0389.19
5.2.160.0090.0349.19
5.2.150.0090.0369.19
5.2.140.0100.0349.19
5.2.130.0050.0409.14
5.2.120.0070.0359.14
5.2.110.0070.0299.16
5.2.100.0040.0389.16
5.2.90.0060.0289.15
5.2.80.0060.0459.15
5.2.70.0070.0439.15
5.2.60.0050.0429.11
5.2.50.0060.0419.07
5.2.40.0060.0379.05
5.2.30.0050.0419.03
5.2.20.0040.0409.02
5.2.10.0090.0318.93
5.2.00.0060.0318.78
5.1.60.0040.0308.06
5.1.50.0050.0278.06
5.1.40.0070.0248.05
5.1.30.0050.0318.40
5.1.20.0070.0318.43
5.1.10.0050.0308.14
5.1.00.0020.0328.14
5.0.50.0040.0226.62
5.0.40.0020.0226.47
5.0.30.0030.0356.29
5.0.20.0070.0226.27
5.0.10.0050.0216.23
5.0.00.0060.0346.23
4.4.90.0020.0244.78
4.4.80.0060.0164.75
4.4.70.0020.0214.75
4.4.60.0040.0174.75
4.4.50.0040.0184.77
4.4.40.0010.0284.71
4.4.30.0050.0144.76
4.4.20.0040.0164.84
4.4.10.0020.0214.84
4.4.00.0040.0304.76
4.3.110.0030.0184.67
4.3.100.0070.0184.66
4.3.90.0030.0154.64
4.3.80.0020.0274.58
4.3.70.0030.0184.63
4.3.60.0030.0214.63
4.3.50.0030.0214.63
4.3.40.0020.0244.54
4.3.30.0040.0143.29
4.3.20.0020.0163.27
4.3.10.0010.0173.23
4.3.00.0070.01315.60

preferences:
64.03 ms | 401 KiB | 5 Q