3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum AxisType {} enum AxisOrientation {} class IncompleteObject { public function __construct( public readonly int $id, public readonly AxisType $type, public readonly AxisOrientation $axisOrientation, public readonly array $ranges, public ?int $value ) { } } class CompleteObject { public function __construct( public readonly int $id, public readonly AxisType $type, public readonly AxisOrientation $axisOrientation, public readonly array $ranges, public readonly int $value ) { } }

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.120.0130.00720.52
8.4.110.0070.00222.38
8.4.100.0120.00917.68
8.4.90.0120.00818.88
8.4.80.0050.00419.29
8.4.70.0030.00617.47
8.4.60.0100.01018.32
8.4.50.0100.01019.34
8.4.40.0030.00617.55
8.4.30.0030.01620.41
8.4.20.0000.00824.00
8.4.10.0060.00323.62
8.3.250.0120.00719.01
8.3.240.0140.00616.64
8.3.230.0130.00616.73
8.3.220.0110.00818.51
8.3.210.0130.00816.60
8.3.200.0080.00116.29
8.3.190.0080.01217.01
8.3.180.0090.00916.43
8.3.170.0040.00418.77
8.3.160.0060.01316.41
8.3.150.0110.00716.97
8.3.140.0000.00817.17
8.3.130.0040.00418.29
8.3.120.0040.00419.00
8.3.110.0030.01316.79
8.3.100.0120.00616.52
8.3.50.0060.01216.50
8.2.290.0110.00820.20
8.2.280.0130.00918.50
8.2.270.0100.00717.08
8.2.260.0140.00418.70
8.2.250.0040.00418.51
8.2.240.0030.00519.04
8.2.230.0060.00316.18
8.2.220.0040.01116.44
8.2.40.0050.00618.00
8.1.330.0120.00619.96
8.1.320.0120.00715.91
8.1.310.0050.00316.73
8.1.300.0080.00018.35

preferences:
28.08 ms | 403 KiB | 5 Q