3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Node { public function __construct(public array $children, public mixed $data) {} } $node = new Node([2], 1); var_dump($node);

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.3.70.0120.00316.75
8.3.60.0120.00918.56
8.3.50.0100.00718.23
8.3.40.0000.01421.74
8.3.30.0060.00918.74
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0110.00326.16
8.2.180.0150.00625.92
8.2.170.0100.00718.78
8.2.160.0080.00822.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.83
8.2.110.0000.00920.39
8.2.100.0030.00720.43
8.1.280.0120.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00618.82
8.1.230.0030.00718.49

preferences:
27.46 ms | 401 KiB | 5 Q