3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(private string $value) {} public function __destruct() { var_dump($this->value); } } function test() { $a = new Foo('a'); $b = new Foo('b'); $c = new Foo('c'); print "Destructor order:\n"; } test();

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.4.120.0130.00720.71
8.4.110.0130.00817.55
8.4.100.0150.00617.77
8.4.90.0100.00920.81
8.4.80.0120.00118.98
8.4.70.0240.01018.43
8.4.60.0220.01019.42
8.4.50.0190.00918.50
8.4.40.0230.00618.89
8.4.30.0250.00818.42
8.4.20.0240.00919.43
8.4.10.0260.00820.04
8.3.250.0150.00619.00
8.3.240.0070.00616.56
8.3.230.0150.00416.77
8.3.220.0080.01019.03
8.3.210.0220.00817.24
8.3.200.0220.00617.23
8.3.190.0240.00817.52
8.3.180.0280.00818.51
8.3.170.0240.00617.75
8.3.160.0220.00417.41
8.3.150.0240.00817.39
8.3.140.0200.00717.34
8.3.130.0230.00317.42
8.3.120.0230.00818.50
8.3.110.0190.00518.19
8.3.100.0290.00417.42
8.3.90.0190.00622.42
8.3.80.0210.00717.28
8.3.70.0240.01017.35
8.3.60.0240.00817.41
8.3.50.0230.01018.96
8.3.40.0240.00618.45
8.3.30.0160.00618.30
8.3.20.0140.00221.13
8.3.10.0080.00521.37
8.3.00.0110.00622.11
8.2.290.0030.00516.66
8.2.280.0180.01018.16
8.2.270.0210.00718.24
8.2.260.0190.00517.63
8.2.250.0240.00517.47
8.2.240.0170.01017.43
8.2.230.0250.00419.50
8.2.220.0160.00721.06
8.2.210.0250.00222.42
8.2.200.0200.00717.16
8.2.190.0260.00617.32
8.2.180.0190.00721.99
8.2.170.0230.01020.52
8.2.160.0220.00620.52
8.2.150.0180.00721.87
8.2.140.0200.00521.37
8.2.130.0170.00722.11
8.2.120.0210.00619.54
8.2.110.0160.00520.11
8.2.100.0130.00217.97
8.2.90.0130.00617.85
8.2.80.0190.00418.46
8.2.70.0120.00617.85
8.2.60.0130.00618.05
8.2.50.0180.00618.07
8.2.40.0190.00719.07
8.2.30.0160.00518.03
8.2.20.0140.00319.21
8.2.10.0130.00918.03
8.2.00.0130.00818.59
8.1.330.0120.00715.91
8.1.320.0160.00918.04
8.1.310.0130.01018.18
8.1.300.0220.00717.97
8.1.290.0150.00924.45
8.1.280.0190.00821.99
8.1.270.0220.00721.03
8.1.260.0160.00822.21
8.1.250.0160.00623.08
8.1.240.0140.00619.52
8.1.230.0180.00617.82
8.1.220.0100.00917.90
8.1.210.0100.00418.42
8.1.200.0200.00417.66
8.1.190.0130.00917.65
8.1.180.0190.00418.08
8.1.170.0190.00518.28
8.1.160.0160.00618.43
8.1.150.0170.00518.32
8.1.140.0140.00917.66
8.1.130.0140.00817.72
8.1.120.0170.00617.73
8.1.110.0150.00717.64
8.1.100.0120.00917.67
8.1.90.0130.00817.73
8.1.80.0160.00817.70
8.1.70.0220.00517.67
8.1.60.0210.00817.81
8.1.50.0200.00817.67
8.1.40.0190.00717.75
8.1.30.0210.00717.77
8.1.20.0220.00617.81
8.1.10.0180.01017.74
8.1.00.0200.00417.69
8.0.300.0140.00518.44
8.0.290.0150.00817.41
8.0.280.0150.00618.22
8.0.270.0190.00517.47
8.0.260.0180.00717.45
8.0.250.0180.00517.48
8.0.240.0170.00517.50
8.0.230.0180.00617.46
8.0.220.0190.00617.44
8.0.210.0180.00817.42
8.0.200.0190.00617.38
8.0.190.0150.00417.39
8.0.180.0090.00817.45
8.0.170.0230.00317.45
8.0.160.0200.00817.40
8.0.150.0180.00217.37
8.0.140.0170.00217.37
8.0.130.0140.00817.41
8.0.120.0140.00417.43
8.0.110.0180.00617.35
8.0.100.0180.00517.32
8.0.90.0130.00217.30
8.0.80.0180.00217.31
8.0.70.0190.00317.40
8.0.60.0140.00217.37
8.0.50.0120.00417.39
8.0.30.0090.00717.42
8.0.20.0090.00617.44
8.0.10.0140.00517.41
7.4.330.0140.00316.81
7.4.320.0080.00417.28
7.4.300.0070.00717.25
7.4.290.0090.00417.17
7.4.280.0070.00717.05
7.4.270.0100.00417.23
7.4.260.0120.00717.27
7.4.250.0150.00317.20
7.4.240.0150.00517.17
7.4.230.0090.00917.24
7.4.220.0150.00817.18
7.4.210.0130.00917.21
7.4.200.0180.00817.16
7.4.190.0200.00117.22
7.4.180.0100.00417.27
7.4.160.0130.00417.16
7.4.150.0160.00217.21
7.4.140.0110.00417.21
7.4.130.0150.00017.20
7.4.120.0150.00117.14
7.4.110.0160.00517.07
7.4.100.0120.00517.16
7.4.90.0170.00417.18
7.4.80.0090.00417.16
7.4.70.0090.00617.14
7.4.60.0110.00217.14
7.4.50.0100.00316.93
7.4.40.0100.00517.09
7.4.30.0100.00617.04
7.4.20.0160.00617.06
7.4.10.0110.00417.08
7.4.00.0110.00317.16

preferences:
26.9 ms | 403 KiB | 5 Q