3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Destructable { private $id; function __construct($id) { $this->id = $id; } function __destruct() { echo "Goodbye ($this->id)!\n"; } } function throwaway($anything) { throw new Exception; } $stored_exception = null; try { $parameter = new Destructable(1); $not_a_parameter = new Destructable(2); throwaway( $parameter ); unset($parameter); unset($not_a_parameter); } catch ( Exception $e ) { echo "Caught!\n"; $stored_exception = $e; } echo "Unsetting...\n"; unset($stored_exception);

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.00916.87
8.3.50.0160.00416.65
8.3.40.0120.00418.62
8.3.30.0120.00618.83
8.3.20.0040.00418.95
8.3.10.0030.00618.76
8.3.00.0050.00519.48
8.2.180.0100.01016.75
8.2.170.0110.01122.96
8.2.160.0070.01018.95
8.2.150.0040.00424.18
8.2.140.0150.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00020.86
8.2.110.0090.00320.54
8.2.100.0030.00917.97
8.2.90.0030.00619.05
8.2.80.0050.00317.97
8.2.70.0040.00417.60
8.2.60.0000.00718.04
8.2.50.0030.00617.80
8.2.40.0060.00319.48
8.2.30.0030.00617.75
8.2.20.0000.01117.73
8.2.10.0000.00717.81
8.2.00.0040.00417.73
8.1.280.0060.00925.92
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00023.97
8.1.230.0040.00717.70
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0040.00419.06
8.1.150.0060.00318.69
8.1.140.0040.00417.33
8.1.130.0000.00719.15
8.1.120.0000.00817.55
8.1.110.0000.00717.44
8.1.100.0030.00517.53
8.1.90.0040.00417.41
8.1.80.0030.00317.36
8.1.70.0030.00317.33
8.1.60.0000.00817.47
8.1.50.0040.00417.49
8.1.40.0090.00017.40
8.1.30.0080.00017.60
8.1.20.0070.00017.64
8.1.10.0030.00517.62
8.1.00.0080.00017.50
8.0.300.0060.00618.77
8.0.290.0080.00016.88
8.0.280.0030.00318.49
8.0.270.0000.00717.13
8.0.260.0000.00716.80
8.0.250.0030.00317.04
8.0.240.0000.00716.92
8.0.230.0070.00016.90
8.0.220.0000.00816.85
8.0.210.0000.00716.84
8.0.200.0030.00316.93
8.0.190.0000.00716.89
8.0.180.0050.00316.96
8.0.170.0030.00616.88
8.0.160.0000.00717.02
8.0.150.0030.00616.80
8.0.140.0040.00416.80
8.0.130.0000.00513.38
8.0.120.0000.00816.91
8.0.110.0040.00416.82
8.0.100.0040.00416.83
8.0.90.0040.00416.85
8.0.80.0060.01017.00
8.0.70.0050.00216.96
8.0.60.0000.00916.90
8.0.50.0040.00416.81
8.0.30.0170.00317.00
8.0.20.0160.00616.91
8.0.10.0080.00017.13
8.0.00.0140.00916.73
7.4.330.0030.00312.95
7.4.320.0030.00316.58
7.4.300.0030.00316.36
7.4.290.0040.00416.61
7.4.280.0000.00716.46
7.4.270.0000.00716.55
7.4.260.0030.00313.24
7.4.250.0080.00016.57
7.4.240.0000.00716.53
7.4.230.0030.00716.39
7.4.220.0120.01016.38
7.4.210.0100.01016.49
7.4.200.0050.00316.63
7.4.190.0000.00716.65
7.4.160.0100.00616.54
7.4.150.0110.00716.55
7.4.140.0110.00716.57
7.4.130.0070.01116.68
7.4.120.0100.00616.55
7.4.110.0120.00616.54
7.4.100.0060.01116.58
7.4.90.0110.00716.54
7.4.80.0080.01119.39
7.4.70.0030.01416.44
7.4.60.0060.01316.61
7.4.50.0000.00416.56
7.4.40.0000.01416.56
7.4.30.0080.00816.39
7.4.00.0090.00614.93
7.3.330.0030.00513.40
7.3.320.0040.00413.24
7.3.310.0030.00316.25
7.3.300.0030.00316.43
7.3.290.0080.00616.41
7.3.280.0100.00516.44
7.3.270.0040.01616.51
7.3.260.0200.00016.47
7.3.250.0050.01316.45
7.3.240.0070.01016.45
7.3.230.0150.00316.62
7.3.210.0150.00716.45
7.3.200.0060.01616.36
7.3.190.0100.00916.40
7.3.180.0050.01016.54
7.3.170.0060.01016.36
7.3.160.0070.01316.62
7.3.120.0090.00614.69
7.2.330.0000.01716.75
7.2.320.0120.01216.80
7.2.310.0200.00716.73
7.2.300.0100.00916.29
7.2.290.0100.00716.78
7.2.00.0000.01419.25
7.1.100.0240.00917.51
7.1.70.0070.00017.03
7.1.60.0060.01919.30
7.1.50.0060.00916.75
7.1.00.0130.06722.46
7.0.200.0040.00416.60
7.0.140.0030.07322.21
7.0.120.0070.07022.11
7.0.60.0070.08720.04
7.0.50.0070.04017.80
7.0.40.0300.07320.27
7.0.30.0270.04020.10
7.0.20.0200.04020.23
7.0.10.0370.07020.23
7.0.00.0370.06320.20
5.6.280.0000.07721.10
5.6.210.0170.07020.62
5.6.200.0170.07318.13
5.6.190.0200.08720.41
5.6.180.0300.06720.49
5.6.170.0200.04020.45
5.6.160.0330.07320.45
5.6.150.0230.05320.18
5.6.140.0170.05720.40
5.6.130.0200.04020.37
5.6.120.0200.08320.33
5.6.110.0200.08320.30
5.6.100.0200.05320.14
5.6.90.0330.07020.38
5.6.80.0170.06019.79
5.6.70.0270.07319.55
5.6.60.0230.07719.70
5.6.50.0070.07719.75
5.6.40.0030.04319.70
5.6.30.0100.06719.89
5.6.20.0070.03719.87
5.6.10.0100.04019.68
5.6.00.0030.08319.55
5.5.350.0230.08020.39
5.5.340.0030.05318.10
5.5.330.0200.08020.32
5.5.320.0230.06020.42
5.5.310.0200.04720.34
5.5.300.0230.06320.20
5.5.290.0230.08320.23
5.5.280.0200.07719.97
5.5.270.0300.06019.97
5.5.260.0230.07720.31
5.5.250.0170.04320.07
5.5.240.0230.06719.64
5.5.230.0200.04019.61
5.5.220.0270.07319.72
5.5.210.0000.05319.70
5.5.200.0200.06319.43
5.5.190.0070.05319.33
5.5.180.0030.05719.32
5.5.160.0100.06719.52
5.5.150.0030.08719.43
5.5.140.0100.08019.67
5.5.130.0100.06719.48
5.5.120.0070.05019.32
5.5.110.0130.06719.54
5.5.100.0130.07719.22
5.5.90.0030.07319.50
5.5.80.0130.06319.23
5.5.70.0030.08319.38
5.5.60.0070.06319.23
5.5.50.0070.08019.44
5.5.40.0100.05019.46
5.5.30.0000.08019.52
5.5.20.0070.06019.38
5.5.10.0070.06019.21
5.5.00.0000.08319.36
5.4.450.0230.07319.41
5.4.440.0130.08019.20
5.4.430.0300.07319.19
5.4.420.0370.06019.19
5.4.410.0230.07019.11
5.4.400.0200.07719.16
5.4.390.0300.06719.14
5.4.380.0230.04718.99
5.4.370.0100.08018.93
5.4.360.0100.07319.13
5.4.350.0070.05019.25
5.4.340.0000.07318.93
5.4.320.0000.08718.86
5.4.310.0100.07018.85
5.4.300.0100.05018.84
5.4.290.0000.08318.84
5.4.280.0170.06719.24
5.4.270.0070.05319.00
5.4.260.0100.07718.97
5.4.250.0070.07318.84
5.4.240.0130.07019.23
5.4.230.0000.04019.07
5.4.220.0070.07718.97
5.4.210.0030.08018.87
5.4.200.0100.05719.25
5.4.190.0000.07019.10
5.4.180.0130.07019.16
5.4.170.0070.07719.14
5.4.160.0030.07719.08
5.4.150.0030.05018.95
5.4.140.0030.04316.40
5.4.130.0070.07016.46
5.4.120.0030.05316.37
5.4.110.0000.05316.54
5.4.100.0070.05316.35
5.4.90.0070.05716.39
5.4.80.0030.03316.34
5.4.70.0030.07316.37
5.4.60.0070.06716.39
5.4.50.0070.06016.41
5.4.40.0000.06316.34
5.4.30.0100.06316.27
5.4.20.0100.06716.40
5.4.10.0000.03716.64
5.4.00.0030.03315.79
5.3.290.0000.06714.67
5.3.280.0070.07014.61
5.3.270.0030.08014.67
5.3.260.0070.07014.62
5.3.250.0070.06714.61
5.3.240.0030.08014.63
5.3.230.0130.06014.52
5.3.220.0070.06714.59
5.3.210.0070.04014.62
5.3.200.0100.07314.61
5.3.190.0030.04714.61
5.3.180.0000.04014.63
5.3.170.0070.03314.63
5.3.160.0070.07014.72
5.3.150.0030.07014.57
5.3.140.0100.06714.48
5.3.130.0100.05314.55
5.3.120.0030.05014.61
5.3.110.0000.04014.50
5.3.100.0030.07014.05
5.3.90.0030.05314.07
5.3.80.0000.04014.06
5.3.70.0100.04714.05
5.3.60.0030.05014.17
5.3.50.0000.04014.02
5.3.40.0070.03313.99
5.3.30.0030.03314.07
5.3.20.0000.03713.70
5.3.10.0130.02313.82
5.3.00.0030.03313.79
5.2.170.0030.02712.82
5.2.160.0030.02712.82
5.2.150.0000.03012.82
5.2.140.0000.03312.82
5.2.130.0070.02712.82
5.2.120.0030.02712.82
5.2.110.0030.02712.82
5.2.100.0030.02312.82
5.2.90.0070.02312.82
5.2.80.0000.03012.82
5.2.70.0000.02712.82
5.2.60.0000.03012.82
5.2.50.0000.03312.82
5.2.40.0030.06012.82
5.2.30.0100.02712.82
5.2.20.0100.03712.82
5.2.10.0030.03712.82
5.2.00.0030.03012.82
5.1.60.0000.02712.82
5.1.50.0070.02012.82
5.1.40.0030.02312.82
5.1.30.0000.02712.82
5.1.20.0000.02712.82
5.1.10.0030.02312.82
5.1.00.0000.02712.82
5.0.50.0000.02012.82
5.0.40.0030.02712.82
5.0.30.0000.03012.82
5.0.20.0000.03312.82
5.0.10.0030.02312.82
5.0.00.0000.04012.82
4.4.90.0000.01312.82
4.4.80.0030.01012.82
4.4.70.0000.03712.82
4.4.60.0070.02712.82
4.4.50.0030.03312.82
4.4.40.0000.02312.82
4.4.30.0000.01712.82
4.4.20.0000.01312.82
4.4.10.0000.01312.82
4.4.00.0030.02012.82
4.3.110.0000.01712.82
4.3.100.0000.01312.82
4.3.90.0030.02012.82
4.3.80.0000.02312.82
4.3.70.0000.01312.82
4.3.60.0000.01312.82
4.3.50.0030.01312.82
4.3.40.0030.02312.82
4.3.30.0030.01312.82
4.3.20.0000.01312.82
4.3.10.0000.01312.82
4.3.00.0000.01312.82

preferences:
43.43 ms | 401 KiB | 5 Q