3v4l.org

run code in 500+ 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.5.30.0110.00618.10
8.5.20.0080.00820.32
8.5.10.0110.00816.98
8.5.00.0100.01219.82
8.4.180.0160.00719.81
8.4.170.0150.00721.63
8.4.160.0130.00923.74
8.4.150.0060.00417.83
8.4.140.0120.01017.98
8.4.130.0090.00318.91
8.4.120.0090.01124.10
8.4.110.0110.01020.64
8.4.100.0130.00519.00
8.4.90.0050.01122.22
8.4.80.0090.01218.72
8.4.70.0070.00217.81
8.4.60.0100.01017.94
8.4.50.0080.00418.77
8.4.40.0100.01017.71
8.4.30.0130.00619.00
8.4.20.0200.00321.40
8.4.10.0100.01317.91
8.3.300.0150.00818.64
8.3.290.0140.00820.84
8.3.280.0140.00618.52
8.3.270.0110.00816.68
8.3.260.0100.01016.64
8.3.250.0120.00618.66
8.3.240.0110.00916.86
8.3.230.0130.00616.65
8.3.220.0100.00818.73
8.3.210.0050.00318.57
8.3.200.0100.00816.81
8.3.190.0110.00917.13
8.3.180.0150.00516.57
8.3.170.0140.00417.36
8.3.160.0150.00318.71
8.3.150.0100.01017.01
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.300.0130.00820.54
8.2.290.0130.00620.37
8.2.280.0100.00816.66
8.2.270.0070.01117.36
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
8.1.340.0120.00817.81
8.1.320.0090.01016.26

preferences:
53.27 ms | 869 KiB | 5 Q