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.4.120.0090.00520.44
8.4.110.0150.00522.49
8.4.100.0120.00917.89
8.4.90.0130.00718.02
8.4.80.0120.00517.90
8.4.70.0120.00817.69
8.4.60.0100.01118.64
8.4.50.0110.00918.76
8.4.40.0040.00417.76
8.4.30.0160.00320.25
8.4.20.0170.00319.75
8.4.10.0060.00317.73
8.3.250.0100.00718.65
8.3.240.0090.01016.43
8.3.230.0120.00716.41
8.3.220.0120.00616.93
8.3.210.0080.01216.63
8.3.200.0090.01216.51
8.3.190.0090.00817.12
8.3.180.0150.00416.52
8.3.170.0030.00616.84
8.3.160.0080.00822.79
8.3.150.0150.00316.98
8.3.140.0140.00416.57
8.3.130.0060.00318.61
8.3.120.0050.00319.02
8.3.110.0100.01016.50
8.3.100.0040.00424.06
8.3.90.0000.01126.77
8.3.80.0040.00416.63
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.290.0120.00620.50
8.2.280.0060.00218.61
8.2.270.0140.00417.21
8.2.260.0090.00618.46
8.2.250.0080.00316.44
8.2.240.0060.00318.86
8.2.230.0060.00320.94
8.2.220.0060.00337.54
8.2.210.0030.00626.77
8.2.200.0090.00016.38
8.2.190.0070.01116.63
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.330.0100.00821.63
8.1.320.0050.00616.22
8.1.310.0000.01116.36
8.1.300.0000.00820.43
8.1.290.0060.00318.88
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:
42.86 ms | 403 KiB | 5 Q