3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyDestructableClass { function __construct() { print "In constructor\n <br>"; echo "$this->name ", " = MyDestructableClass <br>"; } function __destruct() { print "Destroying " . $this->name . "\n"; } } $obj = new MyDestructableClass(); ?>

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.0090.01218.31
8.3.50.0130.00321.98
8.3.40.0150.00318.84
8.3.30.0150.00318.57
8.3.20.0080.00018.60
8.3.10.0030.00620.87
8.3.00.0040.00419.46
8.2.180.0110.00716.63
8.2.170.0080.00622.96
8.2.160.0070.00720.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00821.02
8.2.110.0100.00020.39
8.2.100.0100.00017.71
8.2.90.0000.00819.15
8.2.80.0060.00319.46
8.2.70.0090.00317.50
8.2.60.0080.00017.92
8.2.50.0060.00318.07
8.2.40.0060.00318.05
8.2.30.0000.00721.25
8.2.20.0070.00017.55
8.2.10.0040.00417.58
8.2.00.0030.00817.55
8.1.280.0070.01325.92
8.1.270.0080.00023.99
8.1.260.0040.01126.35
8.1.250.0110.00428.09
8.1.240.0110.00020.67
8.1.230.0120.00020.98
8.1.220.0080.00018.77
8.1.210.0030.00618.89
8.1.200.0060.00317.38
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0000.00918.50
8.1.160.0050.00318.88
8.1.150.0060.00318.63
8.1.140.0030.00617.49
8.1.130.0030.00317.75
8.1.120.0090.00017.34
8.1.110.0000.00717.43
8.1.100.0080.00017.46
8.1.90.0000.00717.39
8.1.80.0050.00317.46
8.1.70.0000.00717.48
8.1.60.0090.00017.40
8.1.50.0040.00417.38
8.1.40.0000.00817.41
8.1.30.0040.00417.57
8.1.20.0030.00517.63
8.1.10.0040.00817.54
8.1.00.0070.00017.53
8.0.300.0070.00019.88
8.0.290.0000.00717.30
8.0.280.0070.00018.50
8.0.270.0000.00717.23
8.0.260.0030.00316.90
8.0.250.0040.00417.04
8.0.240.0000.00816.99
8.0.230.0000.00717.05
8.0.220.0000.00816.95
8.0.210.0030.00316.88
8.0.200.0000.00716.98
8.0.190.0080.00017.05
8.0.180.0000.00716.99
8.0.170.0050.00316.86
8.0.160.0000.00717.04
8.0.150.0070.00016.92
8.0.140.0000.00816.84
8.0.130.0030.00313.36
8.0.120.0050.00316.95
8.0.110.0020.00516.93
8.0.100.0030.00516.91
8.0.90.0000.00816.93
8.0.80.0090.00716.87
8.0.70.0030.00516.98
8.0.60.0050.00316.99
8.0.50.0050.00317.05
8.0.30.0120.00717.17
8.0.20.0060.01217.40
8.0.10.0070.00016.88
8.0.00.0150.00516.77
7.4.330.0030.00316.82
7.4.320.0000.00616.45
7.4.300.0000.00616.51
7.4.290.0030.00316.48
7.4.280.0080.00016.59
7.4.270.0000.00716.42
7.4.260.0000.00613.14
7.4.250.0000.00716.36
7.4.240.0030.00316.61
7.4.230.0040.00416.49
7.4.220.0100.01316.62
7.4.210.0100.00916.53
7.4.200.0030.00316.58
7.4.190.0030.00316.54
7.4.160.0070.01016.40
7.4.150.0150.00317.40
7.4.140.0160.00917.86
7.4.130.0120.00816.59
7.4.120.0080.01016.57
7.4.110.0160.00016.62
7.4.100.0090.00916.55
7.4.90.0090.00916.64
7.4.80.0080.00919.39
7.4.70.0090.00816.59
7.4.60.0040.01416.65
7.4.50.0030.00316.43
7.4.40.0110.00722.77
7.4.30.0150.00616.43
7.4.00.0070.01015.15
7.3.330.0020.00213.27
7.3.320.0060.00013.31
7.3.310.0050.00316.25
7.3.300.0000.00616.38
7.3.290.0100.01016.27
7.3.280.0080.01016.35
7.3.270.0070.01017.40
7.3.260.0080.01018.24
7.3.250.0100.01016.52
7.3.240.0060.00916.28
7.3.230.0110.00516.54
7.3.210.0090.01416.58
7.3.200.0110.01119.39
7.3.190.0180.00316.54
7.3.180.0120.00316.61
7.3.170.0070.00716.44
7.3.160.0090.00616.59
7.3.120.0050.01014.90
7.3.110.0040.01415.00
7.3.100.0000.01114.73
7.3.90.0040.00815.05
7.3.80.0060.00914.86
7.3.70.0000.01714.88
7.3.60.0070.00714.75
7.3.50.0030.01314.75
7.3.40.0100.00314.67
7.3.30.0000.01014.69
7.3.20.0040.01116.46
7.3.10.0070.01116.86
7.3.00.0000.01316.72
7.2.330.0110.00716.59
7.2.320.0030.01616.52
7.2.310.0120.00616.46
7.2.300.0150.00616.62
7.2.290.0130.00316.50
7.2.250.0040.01215.03
7.2.240.0060.01014.93
7.2.230.0060.00615.27
7.2.220.0090.00615.24
7.2.210.0060.00915.29
7.2.200.0070.00714.99
7.2.190.0070.00715.02
7.2.180.0030.01215.02
7.2.170.0060.00814.87
7.2.60.0030.01216.71
7.2.00.0000.01219.37
7.1.330.0070.00715.70
7.1.320.0100.00615.52
7.1.310.0130.00315.71
7.1.300.0040.01115.68
7.1.290.0000.01615.89
7.1.280.0060.00315.88
7.1.270.0070.01115.67
7.1.260.0030.00715.60
7.1.200.0000.01215.36
7.1.100.0030.01417.87
7.1.70.0000.00716.80
7.1.60.0030.00917.26
7.1.50.0040.00716.96
7.1.40.0080.00416.51
7.1.30.0040.00716.52
7.1.20.0060.00616.67
7.1.10.0000.01116.48
7.1.00.0080.00016.66
7.0.200.0030.00916.67
7.0.190.0000.00716.72
7.0.180.0000.00816.48
7.0.170.0040.00816.49
7.0.160.0100.00016.48
7.0.150.0000.00816.48
7.0.140.0050.00516.48
7.0.130.0000.00816.48
7.0.120.0040.00416.48
7.0.110.0000.00716.48
7.0.100.0070.00316.48
7.0.90.0040.00416.48
7.0.80.0000.00816.48
7.0.70.0120.00316.50
7.0.60.0100.00316.48
7.0.50.0030.00916.48
7.0.40.0030.00516.48
7.0.30.0030.00616.48
7.0.20.0090.00616.48
7.0.10.0070.00716.48
7.0.00.0050.00516.48
5.6.300.0200.05120.91
5.6.290.0070.04020.78
5.6.280.0030.04420.90
5.6.270.0100.04220.79
5.6.260.0070.03620.95
5.6.250.0300.04720.89
5.6.240.0070.04320.81
5.6.230.0070.04620.86
5.6.220.0060.04520.81
5.6.210.0030.05021.15
5.6.200.0030.04420.83
5.6.190.0000.04920.84
5.6.180.0030.04720.84
5.6.170.0040.04421.03
5.6.160.0170.03620.87
5.6.150.0000.06020.77
5.6.140.0040.05020.73
5.6.130.0030.04720.83
5.6.120.0120.03820.84
5.6.110.0070.04321.02
5.6.100.0090.03720.80
5.6.90.0090.03720.89
5.6.80.0030.04420.21
5.6.70.0100.03420.10
5.6.60.0060.03920.22
5.6.50.0040.04220.22
5.6.40.0000.04620.38
5.6.30.0000.04920.17
5.6.20.0060.04920.29
5.6.10.0070.04720.16
5.6.00.0030.04020.36
5.5.380.0070.04017.42
5.5.370.0060.04517.54
5.5.360.0060.04517.60
5.5.350.0040.05417.43
5.5.340.0070.03918.06
5.5.330.0120.03818.04
5.5.320.0000.04618.09
5.5.310.0030.05018.13
5.5.300.0100.04218.13
5.5.290.0000.04717.84
5.5.280.0070.04118.13
5.5.270.0160.04818.18
5.5.260.0030.04918.00
5.5.250.0100.04017.52
5.5.240.0000.04017.57
5.5.230.0100.03617.38
5.5.220.0000.04217.24
5.5.210.0070.03517.09
5.5.200.0060.03517.22
5.5.190.0000.04517.38
5.5.180.0040.04017.47
5.5.160.0030.04217.38
5.5.150.0060.03517.44
5.5.140.0060.03617.35
5.5.130.0000.04217.09
5.5.120.0040.03917.18
5.5.110.0030.03817.42
5.5.100.0000.04417.26
5.5.90.0060.03517.34
5.5.80.0030.04617.40
5.5.70.0000.04117.25
5.5.60.0100.04117.38
5.5.50.0030.04017.32
5.5.40.0070.03516.99
5.5.30.0000.04016.98
5.5.20.0000.04017.32
5.5.10.0040.03917.21
5.5.00.0030.09817.27
5.4.450.0040.05519.29
5.4.440.0090.03419.22
5.4.430.0030.04019.29
5.4.420.0000.07419.27
5.4.410.0000.04319.22
5.4.400.0100.03519.08
5.4.390.0100.03618.91
5.4.380.0060.03419.08
5.4.370.0100.03318.97
5.4.360.0100.03319.05
5.4.350.0030.04319.15
5.4.340.0090.03218.98
5.4.320.0030.04518.99
5.4.310.0000.04218.93
5.4.300.0030.03819.16
5.4.290.0070.03619.04
5.4.280.0000.04619.08
5.4.270.0060.03518.98
5.4.260.0040.03719.12
5.4.250.0070.03418.97
5.4.240.0090.03318.87
5.4.230.0070.04019.07
5.4.220.0090.03118.84
5.4.210.0100.03019.09
5.4.200.0000.04318.97
5.4.190.0000.04719.02
5.4.180.0000.04119.07
5.4.170.0000.04319.07
5.4.160.0000.04518.91
5.4.150.0130.03118.79
5.4.140.0120.04316.72
5.4.130.0070.04016.62
5.4.120.0060.04816.66
5.4.110.0040.03616.51
5.4.100.0000.03716.55
5.4.90.0060.03116.64
5.4.80.0030.03816.67
5.4.70.0000.04116.71
5.4.60.0060.03216.65
5.4.50.0030.03416.65
5.4.40.0000.04816.48
5.4.30.0090.04116.48
5.4.20.0100.03416.64
5.4.10.0070.03616.65
5.4.00.0130.05416.48
5.3.290.0030.05816.48
5.3.280.0060.03216.48
5.3.270.0000.04016.48
5.3.260.0030.04516.48
5.3.250.0090.03316.48
5.3.240.0030.04016.48
5.3.230.0030.04516.48
5.3.220.0000.04016.48
5.3.210.0000.04616.48
5.3.200.0090.03016.48
5.3.190.0040.04416.48
5.3.180.0000.06316.48
5.3.170.0060.03916.48
5.3.160.0060.03216.48
5.3.150.0040.07416.48
5.3.140.0070.03616.48
5.3.130.0070.03416.48
5.3.120.0000.04216.48
5.3.110.0030.04216.48
5.3.100.0040.03616.48
5.3.90.0030.04316.48
5.3.80.0030.04316.48
5.3.70.0000.03716.48
5.3.60.0070.03516.48
5.3.50.0000.03716.48
5.3.40.0100.03316.48
5.3.30.0070.03516.48
5.3.20.0060.03416.48
5.3.10.0030.07716.48
5.3.00.0030.03916.48
5.2.170.0030.02916.48
5.2.160.0060.03416.48
5.2.150.0070.02416.48
5.2.140.0030.03116.48
5.2.130.0030.03716.48
5.2.120.0060.02816.48
5.2.110.0060.03716.48
5.2.100.0070.02716.48
5.2.90.0000.03316.48
5.2.80.0000.04216.48
5.2.70.0030.04016.48
5.2.60.0000.03416.48
5.2.50.0060.02516.48
5.2.40.0060.02416.48
5.2.30.0000.03216.48
5.2.20.0030.03116.48
5.2.10.0090.02416.48
5.2.00.0000.03316.48
5.1.60.0030.02416.48
5.1.50.0060.02116.48
5.1.40.0030.03416.48
5.1.30.0130.02616.48
5.1.20.0040.02616.48
5.1.10.0030.02816.48
5.1.00.0070.02416.48
5.0.50.0060.01816.48
5.0.40.0040.02116.48
5.0.30.0060.02616.48
5.0.20.0060.01616.48
5.0.10.0040.02816.48
5.0.00.0000.03216.48
4.4.90.0000.01716.48
4.4.80.0000.01716.48
4.4.70.0000.01916.48
4.4.60.0040.03216.48
4.4.50.0040.01316.48
4.4.40.0000.02616.48
4.4.30.0000.01716.48
4.4.20.0030.01416.48
4.4.10.0030.01716.48
4.4.00.0030.02816.48
4.3.110.0040.01916.48
4.3.100.0050.01116.48
4.3.90.0030.01816.48
4.3.80.0000.02616.48
4.3.70.0060.01416.48
4.3.60.0000.02316.48
4.3.50.0040.02016.48
4.3.40.0000.03816.48
4.3.30.0030.01316.48
4.3.20.0000.01716.48
4.3.10.0000.02316.48
4.3.00.0040.01816.48

preferences:
41.68 ms | 401 KiB | 5 Q