3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(readonly string $id) { } } $a = new A('test'); echo $a->id;

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.20.0080.00820.20
8.5.10.0120.00616.40
8.5.00.0110.01222.99
8.4.170.0100.01124.02
8.4.160.0120.01123.86
8.4.150.0080.00416.79
8.4.140.0130.00917.72
8.4.130.0050.00417.79
8.4.120.0080.00219.50
8.4.110.0400.01017.80
8.4.90.0050.00717.70
8.3.300.0130.00619.30
8.3.290.0120.00520.30
8.3.280.0010.00114.05
8.3.270.0110.00816.30
8.3.260.0100.00916.34
8.3.250.0060.00616.63
8.3.240.0060.00216.40
8.3.180.0060.00416.51
8.3.50.0130.00516.40
8.2.300.0120.01017.87
8.1.340.0060.00417.77

preferences:
29.57 ms | 403 KiB | 5 Q