3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); /** * @return list<string> */ function generateList(string $name): array { $a = ['a', 'b', 'c', $name]; $b = ['d', 'e']; array_splice($a, 2, 0, $b); return $a; } $l = generateList('John'); var_dump(array_is_list($l)); var_dump($l);

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.10.0040.00316.73
8.5.00.0090.01320.13
8.4.150.0020.00114.05
8.4.140.0130.00817.40
8.4.130.0130.00718.60
8.4.120.0140.00622.34
8.4.110.0140.00718.89
8.4.100.0070.00417.49
8.4.90.0120.00920.34
8.4.80.0120.00724.21
8.4.70.0130.00720.37
8.4.60.0080.00820.33
8.4.50.0070.00318.59
8.4.40.0060.01317.42
8.4.30.0160.00320.49
8.4.20.0100.01021.16
8.4.10.0130.00719.01
8.3.280.0090.01018.27
8.3.270.0120.01016.61
8.3.260.0100.01016.29
8.3.250.0120.00617.25
8.3.240.0050.00416.54
8.3.230.0040.00316.59
8.3.220.0110.00618.65
8.3.210.0100.00516.38
8.3.200.0040.00516.34
8.3.190.0130.00617.09
8.3.180.0050.00318.63
8.3.170.0110.00717.13
8.3.160.0140.00320.69
8.3.150.0120.00317.15
8.3.140.0120.00418.61
8.3.130.0220.00618.16
8.3.120.0230.00318.38
8.3.110.0170.00018.45
8.3.100.0120.00917.99
8.3.90.0200.00016.18
8.3.80.0110.01116.32
8.3.70.0170.00316.49
8.3.60.0210.00016.48
8.3.50.0130.01016.37
8.3.40.0210.00017.04
8.3.30.0090.00717.44
8.3.20.0130.00417.48
8.3.10.0100.00717.23
8.3.00.0060.00619.19
8.2.290.0050.00617.24
8.2.280.0040.00420.11
8.2.270.0040.01516.44
8.2.260.0040.00417.33
8.2.250.0080.00018.31
8.2.240.0130.00416.54
8.2.230.0180.00016.51
8.2.220.0150.00418.49
8.2.210.0160.00316.05
8.2.200.0140.00416.66
8.2.190.0120.00616.75
8.2.180.0110.00716.15
8.2.170.0120.00817.48
8.2.160.0160.00317.68
8.2.150.0090.00917.35
8.2.140.0140.00517.47
8.2.130.0180.00017.40
8.2.120.0150.00617.18
8.2.110.0160.00418.95
8.2.100.0060.01217.50
8.2.90.0120.00617.63
8.2.80.0090.00917.16
8.2.70.0100.01017.45
8.2.60.0120.00617.44
8.2.50.0120.00617.36
8.2.40.0110.00517.58
8.2.30.0090.00917.31
8.2.20.0100.00717.22
8.2.10.0150.00417.41
8.2.00.0190.00017.28
8.1.330.0120.00717.87
8.1.320.0080.01215.94
8.1.310.0030.01416.61
8.1.300.0150.00416.14
8.1.290.0120.00416.29
8.1.280.0120.00816.28
8.1.270.0150.00517.25
8.1.260.0180.00417.27
8.1.250.0160.00517.07
8.1.240.0110.00716.75
8.1.230.0140.00416.89
8.1.220.0100.00716.95
8.1.210.0130.00416.99
8.1.200.0110.00817.01
8.1.190.0120.00416.74
8.1.180.0170.00016.92
8.1.170.0090.00917.04
8.1.160.0160.00216.95
8.1.150.0100.00717.09
8.1.140.0150.00216.93
8.1.130.0120.00416.88
8.1.120.0080.00817.12
8.1.110.0150.00317.04
8.1.100.0160.00017.14
8.1.90.0160.00017.07
8.1.80.0140.00317.11
8.1.70.0100.01016.91
8.1.60.0110.00817.29
8.1.50.0170.00317.08
8.1.40.0180.00317.23
8.1.30.0170.00317.18
8.1.20.0140.00617.48
8.1.10.0090.00917.10
8.1.00.0160.00317.30

preferences:
34.57 ms | 403 KiB | 5 Q