3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BlogPost { public function __construct(public string $name) {} } class State { const POSTS = [ new BLogPost('ab'), ]; }

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.0360.01317.44
8.3.140.0400.00716.50
8.3.130.0370.00416.28
8.3.120.0340.00616.46
8.3.110.0390.00316.34
8.3.100.0090.00916.70
8.3.90.0370.01016.08
8.3.80.0370.01116.20
8.3.70.0310.01516.55
8.3.60.0410.00016.66
8.3.50.0150.00516.51
8.3.40.0140.00717.18
8.3.30.0120.00717.25
8.3.20.0290.00717.44
8.3.10.0220.01517.32
8.3.00.0120.00917.57
8.2.260.0280.01116.28
8.2.250.0310.00716.60
8.2.240.0360.00416.65
8.2.230.0300.00916.40
8.2.220.0230.01716.69
8.2.210.0360.00316.43
8.2.200.0320.00616.47
8.2.190.0350.00416.16
8.2.180.0340.00316.75
8.2.170.0280.01317.59
8.2.160.0400.00017.42
8.2.150.0390.00717.45
8.2.140.0370.00617.34
8.2.130.0350.00717.36
8.2.120.0310.01017.30
8.2.110.0410.00017.29
8.2.100.0250.01417.33
8.2.90.0250.01517.45
8.2.80.0360.00317.46
8.2.70.0300.01017.12
8.2.60.0340.00817.20
8.2.50.0300.01117.35
8.2.40.0190.01917.32
8.2.30.0280.00817.38
8.2.20.0300.00817.29
8.2.10.0330.01017.32
8.2.00.0280.01017.27

preferences:
144.27 ms | 1446 KiB | 7 Q