3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $string = ''; private $appendString = false; public function __construct($appendString = false) { $this->appendString = $appendString; $this->string .= 'Costruito'; } public function __destruct() { echo 'ciao'; if ($this->appendString) { $this->string .= ' Distrutto'; } } public function get() { return $this->string; } } $x = new A(false); $y = new A(true); echo $x->get(); echo "\n"; echo $y->get();

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.0100.00318.43
8.3.50.0150.00721.09
8.3.40.0070.00718.85
8.3.30.0100.00320.20
8.3.20.0000.00820.35
8.3.10.0080.00021.89
8.3.00.0040.00422.32
8.2.180.0120.00316.63
8.2.170.0090.00622.96
8.2.160.0030.01022.16
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00020.61
8.2.110.0000.00920.53
8.2.100.0040.00717.84
8.2.90.0070.00019.34
8.2.80.0060.00318.05
8.2.70.0030.00617.63
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0000.00918.15
8.2.30.0050.00219.32
8.2.20.0040.00417.66
8.2.10.0000.00717.73
8.2.00.0000.00717.56
8.1.280.0040.01125.92
8.1.270.0000.00823.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0160.00623.88
8.1.230.0040.00722.05
8.1.220.0030.00518.77
8.1.210.0060.00319.03
8.1.200.0030.00617.23
8.1.190.0080.00017.41
8.1.180.0000.00818.10
8.1.170.0000.00718.58
8.1.160.0020.00518.76
8.1.150.0020.00518.48
8.1.140.0000.00717.45
8.1.130.0060.00317.94
8.1.120.0050.00317.31
8.1.110.0030.00517.42
8.1.100.0040.00417.38
8.1.90.0030.00617.43
8.1.80.0000.00717.44
8.1.70.0050.00217.38
8.1.60.0060.00317.51
8.1.50.0050.00217.56
8.1.40.0090.00617.32
8.1.30.0030.00517.63
8.1.20.0070.00317.62
8.1.10.0000.00717.59
8.1.00.0060.00317.40
8.0.300.0040.00420.04
8.0.290.0070.00017.28
8.0.280.0000.00718.35
8.0.270.0000.00817.25
8.0.260.0070.00316.74
8.0.250.0030.00516.95
8.0.240.0040.00716.97
8.0.230.0030.00316.79
8.0.220.0000.00716.88
8.0.210.0000.00716.76
8.0.200.0030.00316.78
8.0.190.0000.00716.77
8.0.180.0030.00516.70
8.0.170.0050.00216.84
8.0.160.0000.00816.91
8.0.150.0000.00816.81
8.0.140.0050.00516.77
8.0.130.0000.00513.30
8.0.120.0000.00816.78
8.0.110.0000.00716.86
8.0.100.0040.00416.84
8.0.90.0000.00716.83
8.0.80.0000.01516.81
8.0.70.0000.00816.63
8.0.60.0050.00316.70
8.0.50.0040.00416.89
8.0.30.0090.00917.17
8.0.20.0130.00517.40
8.0.10.0040.00416.79
8.0.00.0120.00816.82
7.4.330.0000.00616.74
7.4.320.0000.00716.60
7.4.300.0030.00316.42
7.4.290.0030.00316.53
7.4.280.0040.00416.57
7.4.270.0040.00416.41
7.4.260.0060.00013.22
7.4.250.0000.00716.52
7.4.240.0040.00416.50
7.4.230.0000.00716.34
7.4.220.0100.00716.64
7.4.210.0080.00716.63
7.4.200.0050.00216.41
7.4.190.0050.00316.73
7.4.160.0130.00316.46
7.4.150.0070.01017.40
7.4.140.0070.01217.86
7.4.130.0140.00316.59
7.4.120.0080.01016.49
7.4.110.0070.01016.47
7.4.100.0040.01316.50
7.4.90.0100.00716.54
7.4.80.0140.00319.39
7.4.70.0030.01316.52
7.4.60.0100.00716.57
7.4.50.0000.00816.61
7.4.40.0060.01022.77
7.4.30.0030.01316.25
7.4.00.0060.00615.20
7.3.330.0000.00513.01
7.3.320.0000.00613.17
7.3.310.0030.00316.13
7.3.300.0030.00316.11
7.3.290.0030.01016.26
7.3.280.0090.00616.22
7.3.270.0070.01017.40
7.3.260.0110.00918.24
7.3.250.0140.00716.49
7.3.240.0120.00916.31
7.3.230.0100.01316.39
7.3.210.0100.00716.32
7.3.200.0040.01919.39
7.3.190.0150.00316.16
7.3.180.0030.01316.17
7.3.170.0090.00916.44
7.3.160.0070.01416.14
7.3.120.0100.00714.71
7.2.330.0130.00616.76
7.2.320.0170.00016.51
7.2.310.0180.00616.68
7.2.300.0060.01016.80
7.2.290.0070.01116.64
7.2.00.0000.01419.27
7.1.200.0110.00415.51
7.1.100.0000.01317.77
7.1.70.0110.00416.78
7.1.60.0030.02019.17
7.1.50.0030.02016.84
7.1.00.0000.03722.57
7.0.200.0020.00516.58
7.0.140.0000.07722.18
7.0.100.0130.04320.04
7.0.90.0000.03719.93
7.0.80.0030.03719.94
7.0.70.0070.03019.94
7.0.60.0030.03720.06
7.0.50.0370.07020.34
7.0.40.0000.08720.17
7.0.30.0070.05320.17
7.0.20.0100.04020.04
7.0.10.0100.04720.11
7.0.00.0030.04020.13
5.6.280.0070.08721.07
5.6.250.0030.04720.76
5.6.240.0030.03720.68
5.6.230.0100.03720.68
5.6.220.0000.04320.63
5.6.210.0070.04020.78
5.6.200.0130.06021.17
5.6.190.0030.05021.10
5.6.180.0130.05021.02
5.6.170.0100.08020.91
5.6.160.0100.04721.13
5.6.150.0100.07721.02
5.6.140.0130.07721.01
5.6.130.0030.09321.01
5.6.120.0070.08321.13
5.6.110.0070.08320.92
5.6.100.0100.07021.00
5.6.90.0000.05021.14
5.6.80.0100.08020.46
5.6.70.0100.06720.54
5.6.60.0100.07720.47
5.6.50.0100.04720.46
5.6.40.0070.04020.43
5.6.30.0130.06020.52
5.6.20.0200.06720.39
5.6.10.0030.08720.39
5.6.00.0070.08720.50
5.5.380.0030.04720.36
5.5.370.0030.03720.40
5.5.360.0030.03320.56
5.5.350.0030.05720.43
5.5.340.0070.04720.82
5.5.330.0070.05320.89
5.5.320.0070.05320.80
5.5.310.0130.07020.90
5.5.300.0130.05020.91
5.5.290.0130.04020.77
5.5.280.0130.07720.82
5.5.270.0130.05320.86
5.5.260.0070.07320.89
5.5.250.0070.07720.66
5.5.240.0130.06320.28
5.5.230.0100.06720.24
5.5.220.0030.06320.18
5.5.210.0070.07720.13
5.5.200.0070.04020.17
5.5.190.0000.04720.25
5.5.180.0100.08720.15
5.5.160.0130.03320.17
5.5.150.0170.06319.99
5.5.140.0000.08320.20
5.5.130.0030.04020.13
5.5.120.0070.04320.24
5.5.110.0100.03720.20
5.5.100.0100.07320.09
5.5.90.0030.07720.09
5.5.80.0170.07320.14
5.5.70.0070.05020.05
5.5.60.0100.07720.05
5.5.50.0100.06320.13
5.5.40.0030.07020.13
5.5.30.0100.07020.10
5.5.20.0100.08020.14
5.5.10.0130.04020.03
5.5.00.0130.07020.12
5.4.450.0130.05319.23
5.4.440.0170.07019.53
5.4.430.0200.06019.23
5.4.420.0100.07719.50
5.4.410.0100.04719.30
5.4.400.0130.07318.95
5.4.390.0170.07019.05
5.4.380.0100.08019.09
5.4.370.0070.08019.18
5.4.360.0100.06319.04
5.4.350.0070.03719.23
5.4.340.0070.08019.21
5.4.320.0030.07318.85
5.4.310.0100.07719.02
5.4.300.0030.08019.02
5.4.290.0100.05019.23
5.4.280.0070.08019.12
5.4.270.0100.06018.84
5.4.260.0100.07019.00
5.4.250.0070.07318.89
5.4.240.0170.06719.13
5.4.230.0170.06319.02
5.4.220.0130.07019.15
5.4.210.0070.07718.92
5.4.200.0070.06318.84
5.4.190.0000.04718.83
5.4.180.0100.05718.89
5.4.170.0170.03318.84
5.4.160.0130.05718.83
5.4.150.0070.08018.94
5.4.140.0130.06716.40
5.4.130.0100.06716.25
5.4.120.0130.06016.25
5.4.110.0030.04716.29
5.4.100.0070.06316.47
5.4.90.0070.06716.46
5.4.80.0030.04716.49
5.4.70.0100.07316.45
5.4.60.0070.07316.44
5.4.50.0000.07316.38
5.4.40.0070.07716.51
5.4.30.0100.05716.46
5.4.20.0170.06016.36
5.4.10.0030.06716.49
5.4.00.0100.05715.93
5.3.290.0070.07314.82
5.3.280.0000.05714.74
5.3.270.0030.06314.68
5.3.260.0030.04714.76
5.3.250.0100.06314.67
5.3.240.0130.06014.60
5.3.230.0100.06714.66
5.3.220.0170.07314.68
5.3.210.0100.06714.55
5.3.200.0100.07314.59
5.3.190.0030.08014.54
5.3.180.0170.06314.68
5.3.170.0070.06314.52
5.3.160.0000.07014.54
5.3.150.0030.06714.50
5.3.140.0000.04714.52
5.3.130.0130.03014.64
5.3.120.0030.07314.67
5.3.110.0000.07314.48
5.3.100.0000.05014.16
5.3.90.0100.06714.11
5.3.80.0030.07713.94
5.3.70.0070.07314.07
5.3.60.0100.08313.95
5.3.50.0000.04314.04
5.3.40.0100.06313.96
5.3.30.0070.06313.95
5.3.20.0070.06013.72
5.3.10.0070.07313.65
5.3.00.0070.07313.76
5.2.170.0100.06011.27
5.2.160.0070.04711.27
5.2.150.0000.05311.04
5.2.140.0100.06011.18
5.2.130.0070.05710.98
5.2.120.0030.03711.16
5.2.110.0030.05711.20
5.2.100.0030.06711.19
5.2.90.0030.05011.03
5.2.80.0100.05711.13
5.2.70.0000.04311.04
5.2.60.0070.05711.14
5.2.50.0100.05710.91
5.2.40.0000.04711.03
5.2.30.0100.02711.09
5.2.20.0070.06010.89
5.2.10.0030.05710.82
5.2.00.0030.03310.70
5.1.60.0030.0309.85
5.1.50.0030.05010.12
5.1.40.0070.05010.09
5.1.30.0000.04010.35
5.1.20.0030.05310.46
5.1.10.0030.05310.07
5.1.00.0030.04310.11
5.0.50.0030.0378.40
5.0.40.0070.0308.46
5.0.30.0030.0578.27
5.0.20.0070.0438.30
5.0.10.0030.0308.27
5.0.00.0100.0578.04
4.4.90.0130.0278.04
4.4.80.0000.0308.04
4.4.70.0000.0208.04
4.4.60.0000.0378.04
4.4.50.0000.0278.04
4.4.40.0000.0308.04
4.4.30.0070.0308.04
4.4.20.0000.0378.04
4.4.10.0030.0338.04
4.4.00.0030.0278.04
4.3.110.0030.0338.04
4.3.100.0000.0208.04
4.3.90.0070.0308.04
4.3.80.0000.0378.04
4.3.70.0000.0278.04
4.3.60.0030.0278.04
4.3.50.0000.0338.04
4.3.40.0030.0438.04
4.3.30.0000.0378.04
4.3.20.0000.0178.04
4.3.10.0030.0208.04
4.3.00.0030.0338.04

preferences:
48.9 ms | 401 KiB | 5 Q