3v4l.org

run code in 300+ PHP versions simultaneously
<?php class e extends ErrorException { function __destruct() { echo "__destruct<br>\n"; } } function error($code, $message, $file = null, $line = 0) { echo "convert error to exception<br>\n"; throw new e($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.40.0110.00418.66
8.3.30.0030.01019.07
8.3.20.0040.00420.28
8.3.10.0040.00422.13
8.3.00.0080.00022.52
8.2.170.0110.00422.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0050.00317.63
8.2.110.0030.00622.08
8.2.100.0030.00917.78
8.2.90.0040.00419.26
8.2.80.0040.00418.00
8.2.70.0030.00617.50
8.2.60.0070.00318.03
8.2.50.0080.00018.07
8.2.40.0050.00318.03
8.2.30.0040.00417.87
8.2.20.0000.00817.71
8.2.10.0060.00319.40
8.2.00.0000.00817.73
8.1.270.0090.00022.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00324.02
8.1.230.0040.00819.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.52
8.1.180.0000.00818.10
8.1.170.0060.00318.56
8.1.160.0000.00822.07
8.1.150.0040.00418.56
8.1.140.0000.00817.36
8.1.130.0000.00717.82
8.1.120.0040.00417.48
8.1.110.0040.00417.48
8.1.100.0000.00717.40
8.1.90.0000.00717.42
8.1.80.0040.00417.48
8.1.70.0030.00317.43
8.1.60.0030.00617.62
8.1.50.0040.00417.39
8.1.40.0050.00317.48
8.1.30.0070.00017.52
8.1.20.0000.00817.59
8.1.10.0040.00417.53
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0080.00017.17
8.0.280.0030.00318.48
8.0.270.0040.00417.19
8.0.260.0000.00716.96
8.0.250.0030.00316.97
8.0.240.0000.00716.83
8.0.230.0040.00416.98
8.0.220.0030.00316.79
8.0.210.0000.00716.91
8.0.200.0070.00016.81
8.0.190.0000.00817.00
8.0.180.0050.00216.88
8.0.170.0040.00416.95
8.0.160.0040.00416.77
8.0.150.0000.00816.92
8.0.140.0040.00416.87
8.0.130.0000.00613.41
8.0.120.0000.00816.77
8.0.110.0040.00416.89
8.0.100.0040.00416.82
8.0.90.0000.00716.82
8.0.80.0040.01116.90
8.0.70.0080.00016.84
8.0.60.0040.00416.86
8.0.50.0000.00716.96
8.0.30.0150.00817.16
8.0.20.0060.01417.40
8.0.10.0000.00816.97
8.0.00.0060.01416.76
7.4.330.0030.00315.00
7.4.320.0060.00016.54
7.4.300.0080.00016.61
7.4.290.0040.00416.52
7.4.280.0060.00316.48
7.4.270.0040.00416.40
7.4.260.0080.00016.58
7.4.250.0070.00016.37
7.4.240.0000.00716.56
7.4.230.0060.00016.48
7.4.220.0030.01216.55
7.4.210.0110.00516.59
7.4.200.0040.00416.34
7.4.190.0000.00716.66
7.4.160.0080.00816.43
7.4.150.0140.00317.40
7.4.140.0110.00817.86
7.4.130.0100.00716.60
7.4.120.0090.00716.52
7.4.110.0080.00816.63
7.4.100.0100.00716.34
7.4.90.0140.00716.62
7.4.80.0100.00719.39
7.4.70.0110.00816.50
7.4.60.0070.01016.44
7.4.50.0060.00316.36
7.4.40.0000.01322.77
7.4.30.0140.00316.67
7.4.00.0070.00814.83
7.3.330.0030.00313.37
7.3.320.0000.00513.08
7.3.310.0030.00516.22
7.3.300.0030.00316.38
7.3.290.0100.00316.35
7.3.280.0110.01116.40
7.3.270.0070.01017.40
7.3.260.0040.01416.60
7.3.250.0130.00416.45
7.3.240.0040.01616.50
7.3.230.0090.01316.39
7.3.210.0130.01016.53
7.3.200.0090.00619.39
7.3.190.0130.00316.53
7.3.180.0090.00616.31
7.3.170.0080.00816.54
7.3.160.0060.01216.30
7.3.120.0060.00914.76
7.3.110.0070.01014.80
7.3.100.0100.00714.70
7.3.90.0060.00314.88
7.3.80.0090.00614.86
7.3.70.0100.00314.78
7.3.60.0090.00614.84
7.3.50.0080.00614.62
7.3.40.0120.00914.94
7.3.30.0060.00314.86
7.3.20.0000.01616.77
7.3.10.0030.00716.65
7.3.00.0030.00716.60
7.2.330.0040.01416.84
7.2.320.0080.00616.30
7.2.310.0100.00716.58
7.2.300.0030.01416.70
7.2.290.0100.01016.46
7.2.250.0090.00915.15
7.2.240.0130.00314.91
7.2.230.0030.00714.91
7.2.220.0000.01015.03
7.2.210.0100.00614.88
7.2.200.0080.00814.95
7.2.190.0080.00615.14
7.2.180.0130.00315.14
7.2.170.0060.00914.99
7.2.130.0110.00417.07
7.2.120.0080.00317.00
7.2.110.0000.00916.95
7.2.100.0050.00516.87
7.2.90.0060.00316.88
7.2.80.0000.01116.66
7.2.70.0000.01216.91
7.2.60.0060.01016.60
7.2.50.0030.00716.65
7.2.40.0040.01016.76
7.2.30.0060.00616.97
7.2.20.0060.00316.86
7.2.10.0130.00016.63
7.2.00.0040.00717.90
7.1.330.0060.00915.66
7.1.320.0070.00715.75
7.1.310.0040.01215.81
7.1.300.0030.01315.86
7.1.290.0060.01515.86
7.1.280.0030.00615.52
7.1.270.0100.00315.52
7.1.260.0030.01015.58
7.1.250.0000.00915.56
7.1.100.0070.00717.84
7.1.70.0030.00717.08
7.1.60.0140.01019.82
7.1.50.0100.01316.79
7.1.00.0030.07022.31
7.0.200.0060.00616.80
7.0.140.0000.07321.99
7.0.60.0130.05720.04
7.0.50.0030.07317.87
7.0.40.0100.04020.40
7.0.30.0530.06320.08
7.0.20.0230.08020.22
7.0.10.0030.08720.05
7.0.00.0000.08320.09
5.6.280.0070.06720.79
5.6.210.0030.06020.73
5.6.200.0100.07018.15
5.6.190.0070.04020.57
5.6.180.0570.06720.51
5.6.170.0470.07720.76
5.6.160.0100.08020.47
5.6.150.0070.05318.16
5.6.140.0030.04318.24
5.6.130.0070.08718.13
5.6.120.0100.04321.00
5.6.110.0130.05021.00
5.6.100.0030.04721.06
5.6.90.0200.07020.96
5.6.80.0100.08320.39
5.5.350.0230.07320.41
5.5.340.0070.03717.99
5.5.330.0130.07020.27
5.5.320.0430.06320.24
5.5.310.0330.07020.35
5.5.300.0070.08017.93
5.5.290.0030.08318.07
5.5.280.0130.07720.67
5.5.270.0030.04020.68
5.5.260.0070.03720.80
5.5.250.0130.04320.79
5.5.240.0000.08020.08
5.4.450.0600.07319.37
5.4.440.0570.05719.61
5.4.430.0170.04719.55
5.4.420.0030.06019.38
5.4.410.0100.07019.36
5.4.400.0100.05718.82
5.4.390.0070.05718.63
5.4.380.0200.06018.63
5.4.370.0070.06318.74
5.4.360.0170.05018.75
5.4.350.0070.06018.76
5.4.340.0170.05018.79
5.4.320.0100.03512.51
5.4.310.0050.03912.51
5.4.300.0050.03612.52
5.4.290.0060.04012.51
5.4.280.0070.03812.41
5.4.270.0030.06319.01
5.4.260.0100.07318.84
5.4.250.0100.05019.14
5.4.240.0030.05318.85
5.4.230.0100.05018.93
5.4.220.0100.05319.13
5.4.210.0200.04319.25
5.4.200.0170.04318.96
5.4.190.0130.05319.25
5.4.180.0170.05018.93
5.4.170.0200.04718.93
5.4.160.0070.05319.04
5.4.150.0100.06019.04
5.4.140.0130.04716.66
5.4.130.0070.07716.72
5.4.120.0170.04016.70
5.4.110.0030.05716.59
5.4.100.0200.04016.76
5.4.90.0130.04716.46
5.4.80.0100.04716.47
5.4.70.0170.05316.58
5.4.60.0130.04716.58
5.4.50.0170.04316.68
5.4.40.0030.05316.67
5.4.30.0030.07016.47
5.4.20.0170.05316.50
5.4.10.0130.04716.68
5.4.00.0170.04016.22
5.3.290.0070.05012.80
5.3.280.0070.05314.91
5.3.270.0200.05714.90
5.3.260.0000.06014.88
5.3.250.0130.05714.91
5.3.240.0030.05314.68
5.3.230.0070.05014.78
5.3.220.0130.04714.64
5.3.210.0170.04314.58
5.3.200.0100.05014.75
5.3.190.0070.05314.88
5.3.180.0070.05014.79
5.3.170.0100.05314.64
5.3.160.0030.06014.64
5.3.150.0170.04014.88
5.3.140.0070.05714.84
5.3.130.0070.05714.61
5.3.120.0030.06014.61
5.3.110.0070.05314.86
5.3.100.0130.04714.33
5.3.90.0070.05714.32
5.3.80.0070.05014.32
5.3.70.0000.05714.04
5.3.60.0100.04714.21
5.3.50.0100.04314.26
5.3.40.0070.06014.17
5.3.30.0130.04013.98
5.3.20.0030.05713.71
5.3.10.0070.04713.87
5.3.00.0070.05313.87
5.2.170.0000.05011.38
5.2.160.0070.05011.45
5.2.150.0100.03711.18
5.2.140.0070.03711.21
5.2.130.0030.04311.43
5.2.120.0130.03011.42
5.2.110.0100.03711.11
5.2.100.0070.05011.07
5.2.90.0000.04711.11
5.2.80.0130.05011.15
5.2.70.0070.04311.28
5.2.60.0030.04311.24
5.2.50.0100.04011.26
5.2.40.0170.03011.23
5.2.30.0070.05711.18
5.2.20.0030.04011.23
5.2.10.0130.03011.16
5.2.00.0030.04710.99
5.1.60.0070.03310.23
5.1.50.0100.02710.27
5.1.40.0100.04310.09
5.1.30.0030.05310.56
5.1.20.0130.02710.58
5.1.10.0100.03310.06
5.1.00.0100.03710.34
5.0.50.0030.0308.83
5.0.40.0070.0238.57
5.0.30.0100.0508.55
5.0.20.0030.0278.40
5.0.10.0100.0208.17
5.0.00.0100.0378.11
4.4.90.0000.0336.55
4.4.80.0030.0206.55
4.4.70.0000.0236.55
4.4.60.0070.0176.55
4.4.50.0100.0206.55
4.4.40.0000.0376.55
4.4.30.0030.0206.55
4.4.20.0030.0236.55
4.4.10.0100.0236.55
4.4.00.0100.0276.55
4.3.110.0070.0206.55
4.3.100.0100.0136.55
4.3.90.0000.0236.55
4.3.80.0000.0376.55
4.3.70.0070.0176.55
4.3.60.0030.0276.55
4.3.50.0100.0206.55
4.3.40.0030.0406.55
4.3.30.0000.0236.55
4.3.20.0030.0206.55
4.3.10.0100.0136.55
4.3.00.0100.0206.99

preferences:
42.33 ms | 400 KiB | 5 Q