3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); final class Person { public function __construct( public readonly string $first, public readonly string $last ) { } } $json = '{"first": "Cher"}'; $data = json_decode($json); $person = new Person($data->first, $data->last);

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.10.0100.01317.91
8.3.140.0000.00916.91
8.3.130.0090.00016.59
8.3.120.0110.01116.44
8.3.110.0170.00316.29
8.3.100.0180.00516.42
8.3.90.0200.00316.43
8.3.80.0190.00416.55
8.3.70.0190.00416.57
8.3.60.0210.00316.70
8.3.50.0060.00316.87
8.3.40.0160.00417.61
8.3.30.0180.00417.38
8.3.20.0120.00917.28
8.3.10.0240.00017.06
8.3.00.0150.00217.40
8.2.260.0000.01016.65
8.2.250.0110.00016.59
8.2.240.0160.00416.70
8.2.230.0110.00816.19
8.2.220.0190.00016.43
8.2.210.0190.00016.33
8.2.200.0190.00016.54
8.2.190.0150.00316.29
8.2.180.0150.00316.44
8.2.170.0140.00717.69
8.2.160.0260.00017.48
8.2.150.0140.00617.50
8.2.140.0120.00917.59
8.2.130.0160.00517.16
8.2.120.0170.00517.38
8.2.110.0180.00317.40
8.2.100.0180.01217.37
8.2.90.0190.00817.65
8.2.80.0260.00017.17
8.2.70.0170.00417.39
8.2.60.0190.01917.27
8.2.50.0270.00717.56
8.2.40.0230.01317.52
8.2.30.0320.00317.51
8.2.20.0300.00317.53
8.2.10.0310.00417.33
8.2.00.0260.01117.43

preferences:
27.55 ms | 403 KiB | 5 Q