3v4l.org

run code in 300+ PHP versions simultaneously
<?php // lint >= 8.1 declare(strict_types = 1); namespace Bug11495; class HelloWorld { private readonly string $foo; public function __construct() { $this->foo = 'bar'; } public function __clone() { $this->foo = 'baz'; $this->foo = 'baz'; } public function getFoo(): string { return $this->foo; } } $f = new HelloWorld(); $c = clone $f;

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.0070.01022.33
8.4.110.0090.00817.96
8.4.100.0060.00317.90
8.4.90.0090.01120.39
8.4.80.0110.00820.56
8.4.70.0100.01018.75
8.4.60.0050.00420.44
8.4.50.0090.01018.77
8.4.40.0100.01017.70
8.4.30.0100.01020.35
8.4.20.0140.00721.58
8.4.10.0080.00019.44
8.3.250.0100.00818.42
8.3.240.0110.00616.94
8.3.230.0140.00516.67
8.3.220.0100.00918.86
8.3.210.0120.00716.72
8.3.200.0150.00316.72
8.3.190.0060.01317.27
8.3.180.0090.00918.73
8.3.170.0050.00217.24
8.3.160.0120.00617.43
8.3.150.0040.00417.13
8.3.140.0090.00016.57
8.3.130.0080.00018.33
8.3.120.0060.01320.57
8.3.110.0030.00616.80
8.3.100.0380.01037.54
8.3.90.0390.00737.54
8.3.80.0370.01237.54
8.3.70.0430.00637.54
8.3.60.0420.00737.54
8.3.50.0350.01637.54
8.3.40.0340.00737.54
8.3.30.0310.01237.54
8.3.20.0310.00637.54
8.3.10.0250.01137.54
8.3.00.0230.00737.54
8.2.290.0130.00516.89
8.2.280.0060.00318.42
8.2.270.0120.00616.73
8.2.260.0120.00616.69
8.2.250.0020.00518.85
8.2.240.0080.00819.04
8.2.230.0100.01016.60
8.2.220.0120.00637.54
8.2.210.0110.00737.54
8.2.200.0170.00337.54
8.2.190.0290.00737.54
8.2.180.0190.01137.54
8.2.170.0270.00837.54
8.2.160.0340.00337.54
8.2.150.0180.00337.54
8.2.140.0210.00037.54
8.2.130.0220.00737.54
8.2.120.0130.01037.54
8.2.110.0200.00037.54
8.2.100.0210.00037.54
8.2.90.0190.01037.54
8.2.80.0330.01537.54
8.2.70.0320.00737.54
8.2.60.0290.00737.54
8.2.50.0290.00637.54
8.2.40.0370.00037.54
8.2.30.0310.00937.54
8.2.20.0510.00737.54
8.2.10.0410.00037.54
8.2.00.0320.00737.54
8.1.330.0100.01016.38
8.1.320.0130.00618.08
8.1.310.0180.00016.22
8.1.300.0070.00316.19
8.1.290.0300.01237.54
8.1.280.0330.00837.54
8.1.270.0340.00437.54
8.1.260.0450.00737.54
8.1.250.0380.00337.54
8.1.240.0340.00437.54
8.1.230.0260.01337.54
8.1.220.0310.01037.54
8.1.210.0290.01337.54
8.1.200.0360.01437.54
8.1.190.0270.01537.54
8.1.180.0220.01837.54
8.1.170.0390.00337.54
8.1.160.0300.01237.54
8.1.150.0230.01437.54
8.1.140.0340.00337.54
8.1.130.0350.00337.54
8.1.120.0250.01137.54
8.1.110.0330.00437.54
8.1.100.0260.01237.54
8.1.90.0210.01537.54
8.1.80.0310.00837.54
8.1.70.0290.00937.54
8.1.60.0270.01037.54
8.1.50.0420.00037.54
8.1.40.0370.00737.54
8.1.30.0400.00737.54
8.1.20.0360.00637.54
8.1.10.0240.01337.54
8.1.00.0310.01037.54

preferences:
27.53 ms | 403 KiB | 5 Q