3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(public readonly int $bar) {} public function __set($var, $val) { echo '__set called'; } } $foo = new Foo(42); $foo->bar = 69;

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.1.90.0080.01217.30
8.1.80.0000.01317.39
8.1.70.0080.00417.31
8.1.60.0100.00317.46
8.1.50.0000.01217.41
8.1.40.0080.00417.47
8.1.30.0220.00017.57
8.1.20.0110.00617.65
8.1.10.0040.01117.44
8.1.00.0050.01117.51
8.0.220.0100.00616.84
8.0.210.0160.00016.73
8.0.200.0120.00516.96
8.0.190.0150.00216.90
8.0.180.0050.01016.87
8.0.170.0050.01116.85
8.0.160.0110.00516.82
8.0.150.0050.01016.77
8.0.140.0110.00516.71
8.0.130.0130.00216.65
8.0.120.0080.00816.89
8.0.110.0120.00416.79
8.0.100.0110.00516.85
8.0.90.0160.00016.77
8.0.80.0120.00516.76
8.0.70.0130.00316.72
8.0.60.0110.00616.72
8.0.50.0110.00516.70
8.0.30.0080.00816.79
8.0.20.0160.00016.81
8.0.10.0100.00616.86
7.4.300.0000.00716.49
7.4.290.0080.00816.34
7.4.280.0090.00916.45
7.4.270.0140.00316.23
7.4.260.0150.00316.43
7.4.250.0150.00416.45
7.4.240.0110.00716.47
7.4.230.0140.00316.45
7.4.220.0130.00316.25
7.4.210.0060.00916.33
7.4.200.0130.00316.45
7.4.190.0120.00416.50
7.4.180.0120.00316.50
7.4.160.0100.00616.42
7.4.150.0080.00816.41
7.4.140.0040.00416.20
7.4.130.0040.00416.23
7.4.120.0070.00216.11
7.4.110.0120.00016.23
7.4.100.0040.00416.16
7.4.90.0050.00316.21
7.4.80.0090.00016.13
7.4.70.0040.00416.13
7.4.60.0000.00916.19
7.4.50.0000.00916.25
7.4.40.0090.00316.14
7.4.30.0030.00616.05
7.4.20.0080.00816.20
7.4.10.0120.00416.23
7.4.00.0150.00016.27

preferences:
146 ms | 1394 KiB | 7 Q