3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; class A extends DateTime { public function __construct($d) { global $a; $a = $this; throw new Exception("what?"); } public function __destruct() { echo "called\n"; } } try { $x = new A(); } catch(Exception $e) { } var_dump($a);

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.0060.01018.75
8.3.30.0140.00718.48
8.3.20.0060.00318.92
8.3.10.0000.00818.86
8.3.00.0110.00017.63
8.2.170.0130.00722.96
8.2.160.0120.00318.96
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.72
8.2.110.0060.00319.24
8.2.100.0080.00317.72
8.2.90.0040.00419.18
8.2.80.0040.00419.39
8.2.70.0050.00517.63
8.2.60.0030.00617.90
8.2.50.0000.00818.07
8.2.40.0030.00619.75
8.2.30.0000.00817.70
8.2.20.0030.00717.45
8.2.10.0040.00417.75
8.2.00.0030.00617.70
8.1.270.0120.00623.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0070.01022.52
8.1.230.0080.00420.97
8.1.220.0030.00517.79
8.1.210.0030.00618.92
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0000.01118.10
8.1.170.0050.00318.70
8.1.160.0040.00418.87
8.1.150.0050.00318.49
8.1.140.0070.00017.33
8.1.130.0030.00317.75
8.1.120.0040.00417.38
8.1.110.0040.00417.41
8.1.100.0040.00417.43
8.1.90.0000.00717.29
8.1.80.0000.00717.28
8.1.70.0000.00717.27
8.1.60.0040.00717.62
8.1.50.0030.00517.48
8.1.40.0000.00717.57
8.1.30.0030.00517.59
8.1.20.0000.01017.63
8.1.10.0000.00817.49
8.1.00.0080.00017.49
8.0.300.0000.00719.94
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.13
8.0.260.0070.00016.89
8.0.250.0000.00716.95
8.0.240.0060.00316.99
8.0.230.0070.00016.85
8.0.220.0030.00316.96
8.0.210.0030.00316.79
8.0.200.0030.00316.84
8.0.190.0040.00416.80
8.0.180.0000.00816.88
8.0.170.0000.00916.79
8.0.160.0070.00016.97
8.0.150.0040.00416.82
8.0.140.0000.00716.91
8.0.130.0000.00513.30
8.0.120.0040.00416.85
8.0.110.0040.00416.76
8.0.100.0000.00716.95
8.0.90.0070.00016.75
8.0.80.0090.00616.85
8.0.70.0040.00416.85
8.0.60.0030.00516.93
8.0.50.0000.00716.93
8.0.30.0070.01117.22
8.0.20.0120.00617.36
8.0.10.0000.00716.91
8.0.00.0080.01116.83
7.4.330.0000.00512.88
7.4.320.0000.00616.53
7.4.300.0000.00616.46
7.4.290.0020.00516.50
7.4.280.0040.00416.55
7.4.270.0000.00716.44
7.4.260.0000.00613.28
7.4.250.0050.00316.50
7.4.240.0030.00316.51
7.4.230.0070.00016.34
7.4.220.0070.01316.43
7.4.210.0000.01516.63
7.4.200.0050.00216.36
7.4.190.0000.00716.77
7.4.160.0120.00416.55
7.4.150.0090.01316.37
7.4.140.0100.00716.32
7.4.130.0110.00716.53
7.4.120.0110.01116.48
7.4.110.0120.00616.57
7.4.100.0070.01016.56
7.4.90.0090.01516.40
7.4.80.0030.01319.39
7.4.70.0090.00616.57
7.4.60.0090.00616.55
7.4.50.0060.00616.55
7.4.40.0110.00716.24
7.4.30.0070.01016.42
7.4.00.0080.00815.07
7.3.330.0000.00613.44
7.3.320.0030.00313.34
7.3.310.0070.00016.40
7.3.300.0000.00616.36
7.3.290.0070.01216.33
7.3.280.0070.01016.38
7.3.270.0100.00716.41
7.3.260.0090.00916.64
7.3.250.0120.01016.38
7.3.240.0100.00716.55
7.3.230.0110.00816.59
7.3.210.0180.00016.37
7.3.200.0090.01516.36
7.3.190.0110.01116.45
7.3.180.0070.00916.53
7.3.170.0100.01016.34
7.3.160.0150.00616.50
7.3.120.0070.01114.71
7.3.110.0000.01814.49
7.3.100.0060.00915.00
7.3.90.0060.00314.82
7.3.80.0030.01414.77
7.3.70.0130.00014.84
7.3.60.0040.01114.61
7.3.50.0040.01114.64
7.3.40.0060.00914.71
7.3.30.0060.00614.77
7.3.20.0100.00316.80
7.3.10.0120.00316.55
7.3.00.0060.00316.24
7.2.330.0080.00816.65
7.2.320.0000.02116.59
7.2.310.0090.01316.56
7.2.300.0100.00716.53
7.2.290.0070.01016.32
7.2.250.0060.01214.88
7.2.240.0140.00715.06
7.2.230.0100.00714.69
7.2.220.0100.00714.69
7.2.210.0000.01514.80
7.2.200.0030.01014.96
7.2.190.0040.01115.02
7.2.180.0040.00414.95
7.2.170.0030.01014.89
7.2.60.0100.00316.68
7.1.330.0100.00315.74
7.1.320.0000.00915.74
7.1.310.0060.00615.77
7.1.300.0040.01115.62
7.1.290.0040.01115.66
7.1.280.0030.00515.75
7.1.270.0030.01015.80
7.1.260.0090.00015.37
7.1.200.0090.00615.75
7.1.70.0000.00917.09
7.1.60.0060.01919.30
7.1.50.0100.01316.37
7.1.00.0030.06722.43
7.0.200.0070.00716.82
7.0.140.0100.06721.92
7.0.120.0030.06022.16
7.0.60.0070.08020.02
7.0.50.0030.08717.98
7.0.40.0070.06720.11
7.0.30.0100.05020.33
7.0.20.0300.04720.17
7.0.10.0300.05320.20
7.0.00.0030.06720.05
5.6.280.0070.07021.15
5.6.210.0100.08020.56
5.6.200.0130.07718.29
5.6.190.0030.08320.48
5.6.180.0200.05020.46
5.6.170.0270.04020.62
5.6.160.0070.08320.39
5.6.150.0030.08318.19
5.6.140.0130.05318.29
5.6.130.0170.07018.17
5.6.120.0070.05021.09
5.6.110.0030.06021.02
5.6.100.0030.08320.99
5.6.90.0170.06321.12
5.6.80.0130.07320.53
5.6.70.0430.06720.50
5.5.350.0300.06320.31
5.5.340.0100.07717.97
5.5.330.0130.08020.42
5.5.320.0070.08020.41
5.5.310.0300.05720.32
5.5.300.0130.07018.07
5.5.290.0070.08718.07
5.5.280.0070.08720.77
5.5.270.0070.04720.77
5.5.260.0070.07320.96
5.5.250.0070.07720.62
5.5.240.0030.08320.27
5.4.450.1570.04719.57
5.4.440.1900.04319.47
5.4.430.1570.04019.54
5.4.420.2000.05719.51
5.4.410.1670.04019.25
5.4.400.1630.03718.96
5.4.390.1900.04319.00
5.4.380.1670.04019.17
5.4.370.1900.03719.14
5.4.360.1930.04019.07
5.4.350.2070.04319.15
5.4.340.1730.04319.16
5.4.320.1800.04319.16
5.4.310.1800.04719.21
5.4.300.1870.03319.08
5.4.290.1830.04019.22
5.4.280.1900.04319.13
5.4.270.1830.04019.06
5.4.260.1700.04718.85
5.4.250.0030.04019.21
5.4.240.0030.07319.21
5.4.230.0070.07719.13
5.4.220.0730.04718.86
5.4.210.1630.03019.16
5.4.200.1930.03718.97
5.4.190.1770.03019.07
5.4.180.1600.04019.21
5.4.170.1600.04319.09
5.4.160.1530.03719.04
5.4.150.1800.04319.13
5.4.140.1600.03316.34
5.4.130.1600.03316.30
5.4.120.1630.03316.34
5.4.110.1600.03716.46
5.4.100.1600.03316.48
5.4.90.1770.04316.45
5.4.80.1700.03016.60
5.4.70.1870.03716.44
5.4.60.1630.03016.26
5.4.50.1670.02716.22
5.4.40.1600.03316.25
5.4.30.1670.03716.42
5.4.20.1900.03716.30
5.4.10.1630.03716.53
5.4.00.1730.04315.80
5.3.290.1800.03714.67
5.3.280.1670.04014.68
5.3.270.1900.03314.53
5.3.260.1730.04014.61
5.3.250.1800.04714.60
5.3.240.1670.04014.62
5.3.230.1670.04014.51
5.3.220.1770.04314.69
5.3.210.1770.04014.48
5.3.200.1800.04714.58
5.3.190.1700.03314.47
5.3.180.1530.04014.43
5.3.170.1770.04314.79
5.3.160.1530.03714.65
5.3.150.1600.03014.69
5.3.140.1670.03314.54
5.3.130.1430.05714.57
5.3.120.1470.04014.67
5.3.110.0370.06314.78
5.3.100.0000.05014.13
5.3.90.0100.07014.25
5.3.80.0330.04013.93
5.3.70.1670.03713.95
5.3.60.1730.04314.02
5.3.50.1870.03314.07
5.3.40.1530.04314.18
5.3.30.1570.03713.97
5.3.20.1870.04013.62
5.3.10.1670.03713.68
5.3.00.1670.04013.54
5.2.170.1700.03311.27
5.2.160.1900.03011.11
5.2.150.1600.03311.21
5.2.140.1570.04711.20
5.2.130.1630.03011.24
5.2.120.1270.03711.20
5.2.110.1270.02711.16
5.2.100.1370.03311.14
5.2.90.1470.04011.23
5.2.80.1470.03311.23
5.2.70.1630.02711.19
5.2.60.1500.04011.13
5.2.50.1600.03711.10
5.2.40.1100.02711.23
5.2.30.1130.02311.09
5.2.20.0030.02710.89
5.2.10.0000.03010.98
5.2.00.0030.02710.70
5.1.60.0130.0339.88
5.1.50.1130.0279.89
5.1.40.1000.02010.06
5.1.30.1270.03310.41
5.1.20.1030.02010.49
5.1.10.1170.0179.96
5.1.00.1030.02010.00
5.0.50.0570.0208.77
5.0.40.0530.0238.54
5.0.30.0670.0338.32
5.0.20.0500.0178.36
5.0.10.0600.0208.16
5.0.00.0430.0338.21
4.4.90.0430.0208.14
4.4.80.0530.0178.14
4.4.70.0430.0178.14
4.4.60.0500.0178.14
4.4.50.0500.0138.14
4.4.40.0530.0278.14
4.4.30.0500.0138.14
4.4.20.0630.0178.14
4.4.10.0230.0178.14
4.4.00.0030.0208.14
4.3.110.0000.0178.14
4.3.100.0000.0138.14
4.3.90.0000.0208.14
4.3.80.0030.0238.14
4.3.70.0000.0138.14
4.3.60.0030.0138.14
4.3.50.0000.0178.14
4.3.40.0100.0278.14
4.3.30.0200.0178.14
4.3.20.0300.0208.14
4.3.10.0300.0138.14
4.3.00.0270.0138.14

preferences:
43.5 ms | 400 KiB | 5 Q