3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { private string $p = 'a' { get => 'c'; set => $value; } } $x = new x; $b = $x->f = 'b'; print_r($x->f); print_r($b);

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.90.0100.00917.01
8.5.80.0040.00418.27
8.5.70.0270.00416.66
8.4.240.0120.01019.49
8.4.230.0040.00819.70
8.4.220.0060.00519.56
8.4.90.0050.00417.87
8.3.330.0100.01118.32
8.3.320.0080.00818.37
8.3.180.0080.00216.86
8.3.50.0060.00416.80
8.2.320.0050.00618.00

preferences:
38.71 ms | 526 KiB | 5 Q