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"; } function ex($e) { echo "exception handler called<br>\n"; } set_exception_handler('ex'); 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.0160.00618.39
8.3.50.0210.00822.05
8.3.40.0040.01118.73
8.3.30.0070.00719.04
8.3.20.0040.00420.17
8.3.10.0000.00822.02
8.3.00.0080.00022.30
8.2.180.0110.01116.75
8.2.170.0120.00622.96
8.2.160.0000.01322.25
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0030.00626.16
8.2.120.0100.00719.83
8.2.110.0000.00921.96
8.2.100.0040.00819.51
8.2.90.0000.00819.08
8.2.80.0050.00319.65
8.2.70.0030.00617.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0060.00317.91
8.2.30.0060.00318.04
8.2.20.0040.00417.57
8.2.10.0040.00419.41
8.2.00.0050.00317.80
8.1.280.0090.00625.92
8.1.270.0050.00322.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00924.03
8.1.230.0080.00419.12
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.51
8.1.180.0000.00918.10
8.1.170.0000.00818.66
8.1.160.0040.00421.93
8.1.150.0040.00418.64
8.1.140.0050.00317.50
8.1.130.0000.00717.75
8.1.120.0000.00717.47
8.1.110.0080.00017.33
8.1.100.0000.00717.34
8.1.90.0040.00417.41
8.1.80.0040.00417.48
8.1.70.0000.00717.44
8.1.60.0030.00517.64
8.1.50.0000.00817.44
8.1.40.0000.00817.57
8.1.30.0000.00917.56
8.1.20.0040.00417.68
8.1.10.0080.00017.59
8.1.00.0080.00017.37
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0040.00418.45
8.0.270.0030.00317.22
8.0.260.0030.00316.76
8.0.250.0030.00316.98
8.0.240.0080.00016.92
8.0.230.0000.00716.84
8.0.220.0040.00316.88
8.0.210.0000.00716.86
8.0.200.0050.00216.95
8.0.190.0000.00717.02
8.0.180.0020.00516.95
8.0.170.0040.00416.91
8.0.160.0040.00416.97
8.0.150.0000.00716.96
8.0.140.0040.00416.85
8.0.130.0000.00513.38
8.0.120.0030.00616.93
8.0.110.0000.00716.91
8.0.100.0000.00816.91
8.0.90.0040.00417.02
8.0.80.0060.01217.00
8.0.70.0040.00416.94
8.0.60.0040.00416.99
8.0.50.0040.00416.97
8.0.30.0130.00617.16
8.0.20.0100.01217.40
8.0.10.0000.00817.14
8.0.00.0120.01116.81
7.4.330.0000.00715.00
7.4.320.0030.00316.52
7.4.300.0060.00016.39
7.4.290.0030.00316.49
7.4.280.0000.00716.64
7.4.270.0030.00316.52
7.4.260.0030.00316.58
7.4.250.0070.00016.38
7.4.240.0050.00216.57
7.4.230.0070.00016.58
7.4.220.0150.00816.54
7.4.210.0050.01116.50
7.4.200.0070.00016.58
7.4.190.0040.00416.46
7.4.160.0090.01216.41
7.4.150.0120.00517.40
7.4.140.0140.00717.86
7.4.130.0210.00516.48
7.4.120.0090.00816.55
7.4.110.0090.00916.64
7.4.100.0100.01316.58
7.4.90.0150.00316.52
7.4.80.0080.01119.39
7.4.70.0030.01416.46
7.4.60.0090.01016.41
7.4.50.0000.00916.35
7.4.40.0030.01222.77
7.4.30.0100.00716.50
7.4.00.0040.00914.86
7.3.330.0050.00013.14
7.3.320.0020.00213.11
7.3.310.0030.00316.29
7.3.300.0000.00716.34
7.3.290.0060.01516.29
7.3.280.0110.00616.28
7.3.270.0120.00617.40
7.3.260.0070.01016.52
7.3.250.0110.01116.57
7.3.240.0100.01016.46
7.3.230.0030.01616.43
7.3.210.0110.00716.27
7.3.200.0100.01019.39
7.3.190.0130.00416.35
7.3.180.0070.01016.41
7.3.170.0000.01516.35
7.3.160.0110.00616.48
7.3.120.0070.00714.54
7.3.10.0120.00316.61
7.3.00.0000.01216.78
7.2.330.0120.00616.35
7.2.320.0060.01316.43
7.2.310.0060.01516.77
7.2.300.0120.00716.71
7.2.290.0060.01016.41
7.2.130.0030.00616.99
7.2.120.0040.01116.64
7.2.110.0030.00716.90
7.2.100.0000.01116.89
7.2.90.0060.00316.98
7.2.80.0030.01316.96
7.2.70.0080.00816.84
7.2.60.0070.01116.91
7.2.50.0120.00016.75
7.2.40.0100.00716.58
7.2.30.0090.00616.68
7.2.20.0070.00317.02
7.2.10.0090.00616.93
7.2.00.0100.00517.89
7.1.250.0060.00315.85
7.1.100.0060.00317.88
7.1.70.0030.00516.70
7.1.60.0100.01419.82
7.1.50.0110.01416.96
7.1.00.0030.07722.48
7.0.200.0120.00316.82
7.0.140.0000.07722.08
7.0.60.0070.07321.84
7.0.50.0070.08317.73
7.0.40.0130.08020.06
7.0.30.0230.07720.16
7.0.20.0370.05020.19
7.0.10.0030.04320.19
7.0.00.0170.07320.21
5.6.280.0100.06721.03
5.6.210.0100.06720.64
5.6.200.0070.05718.15
5.6.190.0070.07020.77
5.6.180.3570.04020.67
5.6.170.0200.04720.54
5.6.160.0030.07720.50
5.6.150.0070.03718.14
5.6.140.0100.07318.17
5.6.130.0070.08718.18
5.6.120.0100.08721.13
5.6.110.0030.05321.05
5.6.100.0100.07321.03
5.6.90.0200.07321.08
5.6.80.0030.06720.29
5.5.350.0230.05720.44
5.5.340.0030.04317.98
5.5.330.0070.06320.32
5.5.320.3330.04320.38
5.5.310.0200.05720.36
5.5.300.0130.04317.92
5.5.290.0030.07717.95
5.5.280.0070.04320.78
5.5.270.0030.07720.80
5.5.260.0000.09320.69
5.5.250.0130.08020.66
5.5.240.0370.06720.16
5.4.450.0570.05319.54
5.4.440.0700.06319.48
5.4.430.0700.06019.48
5.4.420.0800.05719.57
5.4.410.0970.04319.44
5.4.400.0670.06318.84
5.4.390.0400.06719.27
5.4.380.0200.06018.47
5.4.370.0200.05018.55
5.4.360.0170.05018.69
5.4.350.0170.05018.75
5.4.340.0130.05718.74
5.4.320.0070.04112.51
5.4.310.0130.04912.50
5.4.300.0080.04312.51
5.4.290.0070.04312.51
5.4.280.0060.04112.40
5.4.270.0070.06718.94
5.4.260.0030.05719.14
5.4.250.0130.07318.85
5.4.240.0100.04718.85
5.4.230.0170.04718.99
5.4.220.0100.06019.00
5.4.210.0000.06719.02
5.4.200.0130.06719.06
5.4.190.0070.07019.23
5.4.180.0100.05019.02
5.4.170.0130.05019.00
5.4.160.0170.04718.90
5.4.150.0100.05318.93
5.4.140.0070.05316.73
5.4.130.0000.05316.45
5.4.120.0070.07716.69
5.4.110.0070.05316.42
5.4.100.0100.04716.77
5.4.90.0100.05716.55
5.4.80.0170.04016.72
5.4.70.0100.05016.74
5.4.60.0170.04716.38
5.4.50.0070.06016.56
5.4.40.0070.05016.74
5.4.30.0070.06016.56
5.4.20.0100.04716.61
5.4.10.0100.05016.39
5.4.00.0130.04716.12
5.3.290.0040.05112.80
5.3.280.0170.05314.66
5.3.270.0070.05314.67
5.3.260.0070.05714.79
5.3.250.0170.04714.83
5.3.240.0170.04714.80
5.3.230.0070.06014.65
5.3.220.0030.06014.76
5.3.210.0100.05014.85
5.3.200.0100.05014.63
5.3.190.0070.07014.84
5.3.180.0130.06314.84
5.3.170.0100.04714.85
5.3.160.0200.03714.45
5.3.150.0170.04714.68
5.3.140.0130.05014.62
5.3.130.0000.07014.74
5.3.120.0100.06014.84
5.3.110.0200.04014.82
5.3.100.0070.06314.16
5.3.90.0030.06314.31
5.3.80.0030.07014.32
5.3.70.0130.04314.32
5.3.60.0100.04714.18
5.3.50.0230.04314.14
5.3.40.0230.05314.07
5.3.30.0030.05314.12
5.3.20.0070.05713.88
5.3.10.0030.05013.87
5.3.00.0100.04313.93
5.2.170.0100.05311.21
5.2.160.0100.06011.16
5.2.150.0100.05311.35
5.2.140.0030.04311.35
5.2.130.0130.03311.33
5.2.120.0000.04311.32
5.2.110.0100.04011.40
5.2.100.0070.03711.32
5.2.90.0070.04711.29
5.2.80.0100.04711.39
5.2.70.0170.04711.36
5.2.60.0070.06011.13
5.2.50.0070.04011.08
5.2.40.0130.04711.13
5.2.30.0170.03011.18
5.2.20.0000.04311.18
5.2.10.0100.03311.08
5.2.00.0130.03311.03
5.1.60.0030.05010.21
5.1.50.0030.04710.22
5.1.40.0070.03310.21
5.1.30.0030.03710.52
5.1.20.0070.04310.63
5.1.10.0100.04010.23
5.1.00.0030.03310.06
5.0.50.0170.0308.63
5.0.40.0030.0378.52
5.0.30.0030.0438.13
5.0.20.0000.0308.41
5.0.10.0030.0278.44
5.0.00.0070.0408.37
4.4.90.0100.0176.67
4.4.80.0070.0176.67
4.4.70.0030.0306.65
4.4.60.0030.0206.65
4.4.50.0000.0236.65
4.4.40.0030.0336.65
4.4.30.0030.0206.65
4.4.20.0030.0206.65
4.4.10.0030.0276.65
4.4.00.0000.0376.65
4.3.110.0070.0276.65
4.3.100.0030.0206.65
4.3.90.0000.0236.65
4.3.80.0000.0376.65
4.3.70.0000.0306.65
4.3.60.0030.0236.65
4.3.50.0000.0306.65
4.3.40.0030.0336.65
4.3.30.0000.0276.65
4.3.20.0000.0276.65
4.3.10.0070.0206.65
4.3.00.0230.0237.16

preferences:
42.16 ms | 401 KiB | 5 Q