3v4l.org

run code in 500+ PHP versions simultaneously
<?php readonly class Foo { public function __construct( private string $bar, ){} public function __clone() { $this->bar = 'test2'; } } $f = new Foo('test'); $f2 = clone $f; var_dump($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.5.30.0080.00919.66
8.5.20.0090.00819.55
8.5.10.0080.01020.14
8.5.00.0140.00719.89
8.4.180.0130.01319.69
8.4.170.0180.01121.79
8.4.160.0140.00823.00
8.4.150.0070.00516.83
8.4.140.0100.01017.81
8.4.130.0070.00417.61
8.4.120.0030.00620.59
8.4.110.0050.00718.57
8.4.100.0130.00718.70
8.4.90.0080.00920.50
8.4.80.0060.00218.63
8.4.70.0080.01318.07
8.4.60.0080.00818.95
8.4.50.0100.00918.70
8.4.40.0060.01319.46
8.4.30.0120.00618.90
8.4.20.0100.01019.58
8.4.10.0090.00023.74
8.3.300.0100.01118.39
8.3.290.0120.01018.17
8.3.280.0110.01018.26
8.3.270.0100.00916.58
8.3.260.0080.01116.48
8.3.250.0130.00518.77
8.3.240.0070.00216.45
8.3.230.0140.00516.82
8.3.220.0130.00518.88
8.3.210.0080.01016.58
8.3.200.0070.00216.75
8.3.190.0100.01117.22
8.3.180.0110.01017.08
8.3.170.0070.01120.59
8.3.160.0110.00716.55
8.3.150.0120.00617.07
8.3.140.0110.00316.50
8.3.130.0000.00818.62
8.3.120.0050.00519.09
8.3.110.0110.00722.58
8.3.100.0050.00322.58
8.3.50.0060.00322.58
8.2.300.0150.00518.16
8.2.290.0110.00820.74
8.2.280.0040.00418.52
8.2.270.0070.01317.27
8.2.260.0150.00018.46
8.2.250.0080.00016.84
8.2.240.0040.00717.14
8.2.230.0030.00722.58
8.2.220.0040.00422.58
8.1.340.0080.01217.59
8.1.330.0130.00523.68
8.1.320.0090.01016.04
8.1.310.0000.01016.32
8.1.300.0150.00018.50

preferences:
42.48 ms | 723 KiB | 5 Q