3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function __construct() { throw new Exception; } public function __destruct() { echo "destruct\n"; } } try { $a = new MyClass; } catch (Exception $e) {}

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.0150.00316.50
8.3.50.0140.00921.96
8.3.40.0120.00319.02
8.3.30.0070.00719.01
8.3.20.0090.00020.21
8.3.10.0000.00823.48
8.3.00.0030.00717.63
8.2.180.0110.00418.28
8.2.170.0120.00322.96
8.2.160.0040.00920.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0000.00722.15
8.2.110.0050.00520.54
8.2.100.0100.00317.47
8.2.90.0040.00419.14
8.2.80.0060.00317.97
8.2.70.0070.00317.50
8.2.60.0050.00318.04
8.2.50.0000.00918.10
8.2.40.0000.00918.03
8.2.30.0030.00617.99
8.2.20.0000.00817.68
8.2.10.0000.00818.04
8.2.00.0050.00617.74
8.1.280.0040.01125.92
8.1.270.0080.00022.18
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0130.00322.72
8.1.230.0110.00017.76
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0040.00422.00
8.1.150.0000.00718.50
8.1.140.0000.00717.45
8.1.130.0060.00017.75
8.1.120.0070.00017.51
8.1.110.0040.00417.35
8.1.100.0030.00517.32
8.1.90.0000.00717.48
8.1.80.0070.00017.37
8.1.70.0030.00317.36
8.1.60.0040.00417.47
8.1.50.0040.00417.48
8.1.40.0040.00417.50
8.1.30.0000.00817.59
8.1.20.0000.00717.53
8.1.10.0050.00317.52
8.1.00.0000.00717.46
8.0.300.0040.00418.77
8.0.290.0040.00616.58
8.0.280.0000.00918.50
8.0.270.0050.00317.23
8.0.260.0030.00318.38
8.0.250.0070.00016.94
8.0.240.0040.00416.84
8.0.230.0030.00316.81
8.0.220.0000.00716.77
8.0.210.0000.00716.85
8.0.200.0050.00316.91
8.0.190.0060.00316.86
8.0.180.0060.00316.82
8.0.170.0050.00316.92
8.0.160.0040.00416.94
8.0.150.0050.00316.90
8.0.140.0080.00016.78
8.0.130.0030.00313.42
8.0.120.0000.00816.86
8.0.110.0040.00416.84
8.0.100.0070.00016.96
8.0.90.0040.00417.01
8.0.80.0110.00416.90
8.0.70.0000.00716.81
8.0.60.0040.00416.76
8.0.50.0050.00216.83
8.0.30.0150.00717.19
8.0.20.0110.00817.41
8.0.10.0040.00417.12
8.0.00.0100.00916.85
7.4.330.0000.00515.13
7.4.320.0060.00016.60
7.4.300.0030.00316.57
7.4.290.0030.00416.46
7.4.280.0000.00716.48
7.4.270.0040.00416.49
7.4.260.0000.00616.43
7.4.250.0050.00316.36
7.4.240.0050.00216.58
7.4.230.0030.00316.42
7.4.220.0060.01316.62
7.4.210.0070.01116.53
7.4.200.0000.00716.38
7.4.190.0030.00316.59
7.4.160.0100.00716.57
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0090.01016.52
7.4.120.0070.01016.53
7.4.110.0030.01316.59
7.4.100.0090.01416.43
7.4.90.0100.00616.45
7.4.80.0070.01019.39
7.4.70.0060.00916.65
7.4.60.0080.00816.39
7.4.50.0080.00016.23
7.4.40.0060.00522.77
7.4.30.0080.00816.54
7.4.00.0000.01114.94
7.3.330.0050.00013.36
7.3.320.0060.00013.17
7.3.310.0000.00816.36
7.3.300.0060.00016.40
7.3.290.0390.00916.36
7.3.280.0090.00916.33
7.3.270.0130.01017.40
7.3.260.0120.01216.64
7.3.250.0080.01216.35
7.3.240.0060.01116.54
7.3.230.0060.01016.57
7.3.210.0040.01116.35
7.3.200.0110.01219.39
7.3.190.0030.01316.64
7.3.180.0090.00616.34
7.3.170.0090.00616.29
7.3.160.0040.01216.36
7.3.120.0030.01414.66
7.2.330.0060.01116.50
7.2.320.0100.01016.67
7.2.310.0050.00616.69
7.2.300.0090.00616.43
7.2.290.0140.00416.39
7.2.00.0040.01119.27
7.1.200.0000.01315.83
7.1.100.0130.00318.20
7.1.70.0000.00817.03
7.1.60.0090.01519.33
7.1.50.0070.01116.78
7.1.00.0070.07022.31
7.0.200.0080.00416.61
7.0.140.0030.07022.21
7.0.100.0070.06319.95
7.0.90.0030.08319.88
7.0.80.0030.04319.85
7.0.70.0100.08019.98
7.0.60.0070.05019.93
7.0.50.0170.07320.29
7.0.40.0030.08720.18
7.0.30.0070.08320.19
7.0.20.0070.07720.18
7.0.10.0100.08320.13
7.0.00.0000.07320.11
5.6.280.0100.06721.11
5.6.250.0030.05720.46
5.6.240.0100.08020.61
5.6.230.0030.06020.60
5.6.220.0030.07320.59
5.6.210.0070.07320.45
5.6.200.0070.07721.04
5.6.190.0070.05720.95
5.6.180.0030.08721.12
5.6.170.0070.07721.00
5.6.160.0100.08021.05
5.6.150.0130.06021.11
5.6.140.0030.08321.11
5.6.130.0070.09021.08
5.6.120.0130.07321.02
5.6.110.0170.07021.16
5.6.100.0030.07021.04
5.6.90.0170.07321.03
5.6.80.0030.08320.43
5.6.70.0130.06720.51
5.6.60.0070.08320.54
5.6.50.0030.08020.40
5.6.40.0070.08020.53
5.6.30.0130.07020.40
5.6.20.0070.05020.41
5.6.10.0070.07320.30
5.6.00.0100.07320.39
5.5.380.0130.05720.46
5.5.370.0100.06320.34
5.5.360.0100.07720.43
5.5.350.0030.07320.39
5.5.340.0100.05020.74
5.5.330.0030.06320.93
5.5.320.0100.08020.83
5.5.310.0070.08720.73
5.5.300.0070.08020.94
5.5.290.0070.08020.87
5.5.280.0100.08320.85
5.5.270.0070.08720.86
5.5.260.0030.08720.87
5.5.250.0030.05720.62
5.5.240.0130.07020.12
5.5.230.0100.08320.02
5.5.220.0000.08020.21
5.5.210.0030.08020.21
5.5.200.0100.04320.04
5.5.190.0130.07320.23
5.5.180.0030.05320.19
5.5.160.0100.07720.10
5.5.150.0170.06720.26
5.5.140.0070.08020.25
5.5.130.0030.07720.12
5.5.120.0170.07020.18
5.5.110.0070.07720.23
5.5.100.0100.07320.02
5.5.90.0130.07720.15
5.5.80.0000.05719.98
5.5.70.0070.07720.00
5.5.60.0070.07320.12
5.5.50.0070.05320.16
5.5.40.0070.07720.10
5.5.30.0070.07720.09
5.5.20.0070.08020.05
5.5.10.0070.08019.98
5.5.00.0030.08319.96
5.4.450.0130.07719.54
5.4.440.0170.07019.36
5.4.430.0130.07319.47
5.4.420.0000.08319.46
5.4.410.0070.07719.43
5.4.400.0100.07019.05
5.4.390.0070.07718.86
5.4.380.0030.07719.04
5.4.370.0100.07319.18
5.4.360.0030.08019.04
5.4.350.0100.07019.18
5.4.340.0100.07019.05
5.4.320.0100.07019.13
5.4.310.0170.06319.14
5.4.300.0070.08019.15
5.4.290.0100.07019.05
5.4.280.0070.07719.04
5.4.270.0100.06719.23
5.4.260.0070.08019.16
5.4.250.0070.05719.12
5.4.240.0070.07719.03
5.4.230.0070.08019.20
5.4.220.0100.07019.18
5.4.210.0070.07718.89
5.4.200.0070.06719.03
5.4.190.0070.04719.04
5.4.180.0030.07718.89
5.4.170.0070.03719.03
5.4.160.0030.07319.11
5.4.150.0070.07719.03
5.4.140.0070.06316.42
5.4.130.0070.06016.44
5.4.120.0100.07016.36
5.4.110.0070.06716.41
5.4.100.0070.07316.47
5.4.90.0030.07716.43
5.4.80.0130.07016.25
5.4.70.0030.07716.33
5.4.60.0130.05716.32
5.4.50.0070.06016.30
5.4.40.0070.07316.52
5.4.30.0100.06016.29
5.4.20.0070.03316.44
5.4.10.0100.03016.42
5.4.00.0030.03715.90
5.3.290.0030.08014.70
5.3.280.0030.04314.63
5.3.270.0070.07314.56
5.3.260.0100.07014.56
5.3.250.0170.06714.70
5.3.240.0030.04714.64
5.3.230.0030.08014.68
5.3.220.0100.04314.60
5.3.210.0030.08314.55
5.3.200.0000.07714.68
5.3.190.0130.06714.60
5.3.180.0070.07014.57
5.3.170.0100.05014.52
5.3.160.0170.04314.55
5.3.150.0100.07014.59
5.3.140.0070.06714.61
5.3.130.0000.04714.53
5.3.120.0030.04314.56
5.3.110.0070.03314.61
5.3.100.0070.03314.19
5.3.90.0000.03714.10
5.3.80.0070.03313.96
5.3.70.0030.04014.05
5.3.60.0000.04014.11
5.3.50.0070.03714.04
5.3.40.0070.04713.97
5.3.30.0000.04013.96
5.3.20.0130.04713.71
5.3.10.0030.03313.76
5.3.00.0000.03713.63
5.2.170.0000.03011.33
5.2.160.0000.03011.33
5.2.150.0030.03011.33
5.2.140.0030.02711.33
5.2.130.0000.03311.33
5.2.120.0000.03711.33
5.2.110.0000.04311.33
5.2.100.0000.03011.33
5.2.90.0030.02711.33
5.2.80.0000.03011.33
5.2.70.0030.02711.33
5.2.60.0030.02711.33
5.2.50.0070.03311.33
5.2.40.0000.05011.33
5.2.30.0000.03011.33
5.2.20.0000.03711.33
5.2.10.0030.02711.33
5.2.00.0000.03011.33
5.1.60.0000.02311.33
5.1.50.0030.02311.33
5.1.40.0000.02311.33
5.1.30.0000.02711.33
5.1.20.0030.02311.33
5.1.10.0000.03011.33
5.1.00.0000.02711.33
5.0.50.0000.02011.33
5.0.40.0000.04011.33
5.0.30.0070.03011.33
5.0.20.0030.04011.33
5.0.10.0000.04311.33
5.0.00.0030.05011.33
4.4.90.0000.01311.33
4.4.80.0000.02311.33
4.4.70.0000.01311.33
4.4.60.0000.01311.33
4.4.50.0000.01311.33
4.4.40.0000.02711.33
4.4.30.0000.01311.33
4.4.20.0000.02011.33
4.4.10.0000.01711.33
4.4.00.0000.04711.33
4.3.110.0000.01711.33
4.3.100.0000.02711.33
4.3.90.0070.02711.33
4.3.80.0070.05011.33
4.3.70.0030.03011.33
4.3.60.0000.04711.33
4.3.50.0000.03011.33
4.3.40.0000.04011.33
4.3.30.0000.03711.33
4.3.20.0070.03711.33
4.3.10.0030.03011.33
4.3.00.0000.03011.33

preferences:
44.2 ms | 401 KiB | 5 Q