3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { self::__destruct(); } public function __destruct() { echo 'destructed'; } } $foo = new Foo(); //$foo = null;

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.70.0140.00718.25
8.3.60.0040.01516.61
8.3.50.0070.00817.49
8.3.40.0070.00718.76
8.3.30.0070.00718.46
8.3.20.0050.00318.60
8.3.10.0030.00620.59
8.3.00.0040.00717.38
8.2.180.0170.00316.38
8.2.170.0100.01022.96
8.2.160.0130.00721.24
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0080.00019.23
8.2.110.0030.00719.39
8.2.100.0110.00017.91
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0070.00317.38
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0030.00718.16
8.2.30.0040.00417.96
8.2.20.0040.00417.64
8.2.10.0080.00017.49
8.2.00.0040.00417.48
8.1.280.0110.00425.92
8.1.270.0060.00324.66
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00019.59
8.1.230.0070.00417.77
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00718.80
8.1.160.0030.00518.88
8.1.150.0050.00218.56
8.1.140.0070.00017.43
8.1.130.0030.00317.73
8.1.120.0000.00717.45
8.1.110.0000.00717.35
8.1.100.0030.00517.31
8.1.90.0000.00817.41
8.1.80.0000.00717.42
8.1.70.0040.00417.34
8.1.60.0000.00917.53
8.1.50.0000.00817.46
8.1.40.0000.00717.49
8.1.30.0030.00617.66
8.1.20.0040.00417.56
8.1.10.0000.00817.59
8.1.00.0000.00817.52
8.0.300.0040.00419.15
8.0.290.0070.00016.63
8.0.280.0030.00318.44
8.0.270.0000.00717.27
8.0.260.0030.00316.81
8.0.250.0030.00516.91
8.0.240.0060.00316.77
8.0.230.0070.00016.79
8.0.220.0000.00716.86
8.0.210.0000.00816.70
8.0.200.0040.00416.87
8.0.190.0050.00216.89
8.0.180.0040.00316.78
8.0.170.0000.00816.73
8.0.160.0050.00316.71
8.0.150.0060.00316.82
8.0.140.0070.00016.68
8.0.130.0050.00013.21
8.0.120.0000.00816.74
8.0.110.0000.00716.84
8.0.100.0000.00816.65
8.0.90.0040.00416.77
8.0.80.0060.01216.81
8.0.70.0070.00016.62
8.0.60.0070.00016.88
8.0.50.0020.00516.89
8.0.30.0100.01417.25
8.0.20.0100.01016.77
8.0.10.0040.00416.95
8.0.00.0140.00716.60
7.4.330.0020.00212.94
7.4.320.0030.00316.55
7.4.300.0000.00716.60
7.4.290.0030.00316.51
7.4.280.0080.00016.52
7.4.270.0000.00816.48
7.4.260.0080.00013.26
7.4.250.0030.00616.39
7.4.240.0060.00316.52
7.4.230.0000.00716.52
7.4.220.0140.00616.56
7.4.210.0080.00816.60
7.4.200.0030.00516.34
7.4.190.0000.00716.64
7.4.160.0080.01116.34
7.4.150.0070.01016.47
7.4.140.0060.01016.38
7.4.130.0080.00916.49
7.4.120.0120.00716.57
7.4.110.0030.01316.50
7.4.100.0100.00616.61
7.4.90.0110.00716.32
7.4.80.0060.01619.39
7.4.70.0130.00516.49
7.4.60.0030.01716.55
7.4.50.0000.00916.63
7.4.40.0090.00616.60
7.4.30.0140.00316.35
7.4.00.0070.01015.20
7.3.330.0070.00013.05
7.3.320.0050.00013.16
7.3.310.0030.00316.26
7.3.300.0030.00316.32
7.3.290.0030.01116.11
7.3.280.0070.00816.20
7.3.270.0140.00316.35
7.3.260.0080.01116.36
7.3.250.0140.00716.35
7.3.240.0030.01316.28
7.3.230.0090.00616.46
7.3.210.0130.00316.45
7.3.200.0040.01416.27
7.3.190.0070.01016.23
7.3.180.0120.00316.11
7.3.170.0040.01516.38
7.3.160.0090.01216.31
7.3.120.0030.01014.76
7.3.10.0060.00816.70
7.3.00.0030.01016.52
7.2.330.0090.00916.44
7.2.320.0160.00716.55
7.2.310.0080.01316.61
7.2.300.0030.01516.31
7.2.290.0090.00916.65
7.2.130.0030.01216.94
7.2.120.0060.00816.97
7.2.110.0080.00916.74
7.2.100.0080.00716.96
7.2.90.0060.01116.92
7.2.80.0050.00916.74
7.2.70.0090.00716.92
7.2.60.0080.00616.83
7.2.50.0070.00416.78
7.2.40.0070.00716.86
7.2.30.0020.01316.99
7.2.20.0080.00616.85
7.2.10.0030.01016.92
7.2.00.0110.00117.65
7.1.250.0140.00215.50
7.1.100.0230.01016.13
7.1.70.0030.00616.95
7.1.60.0100.01619.40
7.1.50.0000.01416.82
7.1.00.0000.08022.31
7.0.200.0570.00414.71
7.0.140.0030.07722.06
7.0.120.0000.07722.05
7.0.60.0300.06019.88
7.0.50.0030.05717.84
7.0.40.0100.03720.30
7.0.30.0000.05020.16
7.0.20.0100.06020.26
7.0.10.0100.08320.16
7.0.00.0070.05320.15
5.6.280.0030.07321.10
5.6.210.0130.03320.77
5.6.200.0000.05318.14
5.6.190.0030.04320.50
5.6.180.0030.05020.38
5.6.170.0100.07320.39
5.6.160.0170.07720.63
5.6.150.0100.06320.23
5.6.140.0170.07320.19
5.6.130.0030.04720.34
5.6.120.0030.06020.49
5.6.110.0170.07720.40
5.6.100.0130.08020.48
5.6.90.0170.07320.33
5.6.80.0070.07019.55
5.6.70.0000.06019.71
5.6.60.0070.05719.78
5.6.50.0070.08019.58
5.6.40.0030.08319.77
5.6.30.0030.04719.59
5.6.20.0100.05019.50
5.6.10.0170.06019.52
5.6.00.0070.08719.75
5.5.350.0100.03720.43
5.5.340.0070.08318.08
5.5.330.0100.03720.25
5.5.320.0030.04020.40
5.5.310.0130.06320.48
5.5.300.0070.06719.98
5.5.290.0030.08720.14
5.5.280.0000.04720.32
5.5.270.0130.07320.00
5.5.260.0030.04319.96
5.5.250.0070.07320.01
5.5.240.0100.06019.38
5.5.230.0070.08019.34
5.5.220.0170.06319.34
5.5.210.0100.07319.51
5.5.200.0070.08019.34
5.5.190.0030.07319.43
5.5.180.0130.06719.47
5.5.160.0130.06019.55
5.5.150.0130.04019.34
5.5.140.0000.04719.55
5.5.130.0100.07719.52
5.5.120.0070.08019.32
5.5.110.0070.08019.54
5.5.100.0130.06719.24
5.5.90.0170.06719.25
5.5.80.0070.08319.21
5.5.70.0070.08319.54
5.5.60.0100.03719.44
5.5.50.0000.07319.53
5.5.40.0030.06719.44
5.5.30.0100.07719.32
5.5.20.0030.06019.32
5.5.10.0030.05719.31
5.5.00.0070.07719.30
5.4.450.0070.08019.56
5.4.440.0100.04019.24
5.4.430.0070.05319.47
5.4.420.0070.03719.44
5.4.410.0030.04019.12
5.4.400.0130.03719.12
5.4.390.0100.04019.24
5.4.380.0070.06718.85
5.4.370.0100.04719.24
5.4.360.0070.07719.15
5.4.350.0030.06019.16
5.4.340.0100.04718.92
5.4.320.0170.06719.24
5.4.310.0070.03719.15
5.4.300.0030.03719.25
5.4.290.0030.04018.85
5.4.280.0030.04018.87
5.4.270.0330.03719.11
5.4.260.0100.06718.97
5.4.250.0030.08019.14
5.4.240.0070.07319.09
5.4.230.0100.06319.11
5.4.220.0100.06718.84
5.4.210.0030.05018.86
5.4.200.0100.07319.15
5.4.190.0100.07018.99
5.4.180.0130.07018.84
5.4.170.0030.04719.14
5.4.160.0100.03318.95
5.4.150.0130.06719.12
5.4.140.0070.06316.55
5.4.130.0130.04316.49
5.4.120.0000.04016.43
5.4.110.0030.05316.37
5.4.100.0030.06716.43
5.4.90.0000.08016.30
5.4.80.0130.07016.41
5.4.70.0100.06316.39
5.4.60.0100.03716.41
5.4.50.0070.07316.50
5.4.40.0170.07016.44
5.4.30.0130.06316.27
5.4.20.0000.04316.40
5.4.10.0100.07316.40
5.4.00.0070.05315.79
5.3.290.0000.04314.58
5.3.280.0030.05314.59
5.3.270.0030.07714.63
5.3.260.0170.07014.60
5.3.250.0000.08314.60
5.3.240.0100.07014.64
5.3.230.0000.04314.52
5.3.220.0070.06014.61
5.3.210.0030.04314.56
5.3.200.0030.04714.62
5.3.190.0030.08014.74
5.3.180.0100.06314.55
5.3.170.0100.06714.62
5.3.160.0070.06714.45
5.3.150.0170.04714.59
5.3.140.0000.05014.61
5.3.130.0130.05714.60
5.3.120.0030.05714.62
5.3.110.0100.03314.55
5.3.100.0100.03714.09
5.3.90.0030.03714.01
5.3.80.0070.03713.95
5.3.70.0070.04314.05
5.3.60.0000.08314.06
5.3.50.0070.07313.94
5.3.40.0070.07014.11
5.3.30.0000.04013.90
5.3.20.0100.03313.58
5.3.10.0100.04313.70
5.3.00.0000.04013.66
5.2.170.0070.04011.20
5.2.160.0030.06011.20
5.2.150.0130.04311.16
5.2.140.0000.03311.20
5.2.130.0070.06011.07
5.2.120.0070.06311.11
5.2.110.0130.02011.07
5.2.100.0100.05311.00
5.2.90.0070.03711.15
5.2.80.0030.06311.10
5.2.70.0070.04311.01
5.2.60.0000.06311.05
5.2.50.0000.05011.05
5.2.40.0000.05010.92
5.2.30.0070.04710.92
5.2.20.0070.06010.95
5.2.10.0070.03710.83
5.2.00.0000.05010.72
5.1.60.0030.04010.04
5.1.50.0000.0509.91
5.1.40.0030.0539.89
5.1.30.0030.05010.50
5.1.20.0100.04310.36
5.1.10.0030.06010.21
5.1.00.0030.03710.09
5.0.50.0000.0508.58
5.0.40.0100.0408.32
5.0.30.0070.0608.23
5.0.20.0000.0478.11
5.0.10.0030.0438.20
5.0.00.0100.0478.13
4.4.90.0000.0377.36
4.4.80.0000.0307.36
4.4.70.0030.0237.36
4.4.60.0070.0337.36
4.4.50.0000.0237.36
4.4.40.0070.0477.36
4.4.30.0100.0307.36
4.4.20.0000.0237.36
4.4.10.0030.0237.36
4.4.00.0030.0477.36
4.3.110.0000.0337.36
4.3.100.0030.0277.36
4.3.90.0100.0277.36
4.3.80.0030.0477.36
4.3.70.0000.0207.36
4.3.60.0000.0207.36
4.3.50.0030.0307.36
4.3.40.0030.0337.36
4.3.30.0030.0337.36
4.3.20.0000.0337.36
4.3.10.0000.0237.36
4.3.00.0000.0177.36

preferences:
46.57 ms | 401 KiB | 5 Q